html {
    scroll-behavior: smooth;
}

body {
    background-color: rgba(228, 222, 222, 0.986); 
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

header {
    display: flex;
    height: 165px;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
}

/* LOGO */
.imagen2 {
    height: 100%;
    width: auto;
    object-fit: contain;
    margin-right: auto;
}

#andromeda {
    text-align: center;
    margin: 0;
    padding: 2%;
    color: #110f07;
    letter-spacing: 10px;
    font-size: 50px;
    text-shadow: -2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: skewX(-5deg);
    animation: reflejo 4s infinite;
}

#sub {
    margin: 0;
    padding: 6px;
    color: #110f07;
    letter-spacing: 5px;
}

nav {
    width: 100%;
    border-radius: 8px;
    background-color: #fff;
    height: auto;
}

nav ul {
    flex-wrap: wrap;
    display: flex;
    padding: 1%;
    justify-content: space-evenly;
    text-align: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

nav li {
    list-style: none;
    padding: 5px;
}

nav a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
    cursor: pointer;
    padding: 10px 10px;
    border-radius: 20px;
}

/* CONTENEDOR */
.container {
    background: url(../imagenes/flor12c.jpg) no-repeat center center fixed;
    background-size: cover;
    margin-top: 10px;
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    min-height: 620px;
    border-radius: 10px;
}

.contact {
    color: white;
    padding-top: 85px; 
}

.container img {
    width: 200px;
}

.info {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px auto;
    text-align: center;
}

.datos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.datos p {
    font-size: 1rem;
}

.datos > p > i {
    color: crimson;
    margin-right: 10px;
    font-size: 25px;
}

.links a {
    font-size: 1.5rem;
    color: rgb(224, 205, 182);
    transition: color 0.3s, transform 0.3s;
}

/* FOOTER ORIGINAL */
.footer-container {
    max-width: 1200px;
    margin: 0 221px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 80px;
    padding-top: 20px;
}

.site-footer {
    background-color: #040404bd;
    color: #fdfaf7;
    margin: 10px;
    padding: 40px 20px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
}

.footer-section h4 {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: rgb(224, 205, 182);
    font-weight: 700;
}

.footer-section {
    margin-left: 0;
    width: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    font-size: 12px;
    color: #b0b0b0;
    margin-left: 0;
    width: 100%;
}

.footer-section p, .footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    line-height: 1.5;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
}

.social-icons a {
    font-size: 1.5rem;
    color: #E0CDB6;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
    text-decoration: none;
}

.social-icons a:hover {
    color: #ffffff;
    transform: translateY(-3px);
    text-decoration: none;
}

nav ul li a:hover {
    color: #145da0;
    transition: color 0.3s ease;
    background-color: #f7f7f7;
    border-color: #255a97 solid 8px;
}

/* ANIMACIONES */
@keyframes reflejo {
    0% { text-shadow: -4px 2px 4px rgba(0, 0, 0, 0.5); }
    50% { text-shadow: -8px 4px 8px rgba(0, 0, 0, 0.8); }
    100% { text-shadow: -6px 2px 4px rgba(0, 0, 0, 0.5); }
}

/* 📱 RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    #andromeda {
        font-size: 35px;
        letter-spacing: 5px;
        margin-left: 0;
    }
    #sub {
        font-size: 18px;
        text-align: center;
    }
    nav ul {
        flex-direction: row;
        gap: 10px;
    }
    .container {
        min-height: 500px;
        background-position: center top;
    }
    .imagen2 {
        max-width: 167px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    #andromeda {
        font-size: 30px;
    }
    #sub {
        font-size: 16px;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .info {
        margin: 20px auto;
        gap: 15px;
    }
    .datos p {
        font-size: 0.9rem;
    }
    .contact {
        padding-top: 40px;
        font-size: 22px;
    }
    .footer-section {
        margin-left: 0;
        text-align: center;
        font-size: small;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-bottom {
        margin-top: 10px;
    }
    .imagen2 {
        max-width: 10%;
        margin-right: 0%;
        border-radius: 8px;
    }
    .container {
        background-position: center center;
    }
}

@media (max-width: 480px) {
    #andromeda {
        font-size: 24px;
        letter-spacing: 3px;
    }
    #sub {
        font-size: 14px;
    }
    .container {
        padding: 10px;
        min-height: 400px;
        background-position: center center;
    }
    .contact {
        font-size: 18px;
        padding-top: 20px;
    }
    .datos p {
        font-size: 0.8rem;
    }
    .links a {
        font-size: 1.2rem;
    }
    .footer-section h4 {
        font-size: 1.2rem;
    }
    .imagen2 {
        max-width: 90px;
    }

    /* ✅ Ajuste Footer en móviles */
    .footer-container {
        margin: 0 auto;              /* Centrado */
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        text-align: center;
        margin: 0 auto;
        max-width: 300px;
    }

    .footer-links li {
        margin: 5px 0;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 12px;
        margin-top: 10px;
        padding-top: 10px;
    }
}
