/* Base y Reset */
:root {
    /* Paleta de Colores: Blanco, Oro Oscuro, Negro/Gris */
    --color-primary: #A38B4E; /* Oro Oscuro / Bronce Dorado para acentos */
    --color-secondary: #846E3A; /* Tono de Oro más oscuro (para hover) */
    --color-background-light: #fff; /* Blanco para fondos principales (Body, Header) */
    --color-dark: #333; /* Negro/Gris oscuro para texto principal (títulos, navegación) */
    --color-text-body: #444; /* Gris oscuro para el cuerpo del texto */
    --color-section-bg: #f7f7f7; /* Gris muy claro para secciones alternas (Profile, Gallery) */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Habilita el desplazamiento suave en toda la página */
html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-dark); /* Texto principal en Negro/Gris Oscuro */
    background-color: var(--color-background-light); /* Fondo de página Blanco */
}

a {
    color: var(--color-primary); /* Enlaces en Oro Oscuro */
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary); /* Oro Oscuro más profundo al pasar el ratón */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Tipografía */
h1, h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.5em;
    line-height: 1.1;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary); /* Títulos de sección en Oro Oscuro */
    text-transform: uppercase;
}

/* Header (Cabecera) */
.site-header {
    background-color: var(--color-background-light); /* Fondo Blanco */
    padding: 15px 0;
    border-bottom: 1px solid #ddd; /* Borde gris claro */
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark); /* Letras oscuras */
}

.brand span {
    color: var(--color-primary); /* "ALONDRA" en Oro Oscuro */
}

/* Navegación */
.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    font-weight: 500;
    color: var(--color-dark); /* Texto de navegación en Negro/Oscuro */
    padding: 5px 0;
}

/* Social Icons */
.socials {
    display: flex;
}

.socials .ico {
    margin-left: 15px;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease-in-out; 
}

/* Efecto hover: cambia el color de relleno del rectángulo del SVG */
.socials .ico:hover svg rect {
    fill: var(--color-primary); /* Cambia el fondo del icono a Oro Oscuro */
}

/* Perfil */
.profile {
    text-align: center;
    padding: 40px 0;
    background-color: var(--color-section-bg); /* Fondo de la sección de perfil en Gris Muy Claro */
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--color-primary); /* Borde de la foto en Oro Oscuro */
}

.name {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin: 0;
}

.role {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text-body); 
    margin-top: 5px;
}

/* Secciones Generales */
.section {
    padding: 60px 0;
}

/* Biografía con imagen de fondo y opacidad */
.bio {
    position: relative; 
    z-index: 1; 
    background-color: var(--color-background-light); 
    padding: 60px 0;
}

.bio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/ft8.jpg'); /* Ruta de tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15; /* Opacidad del 15% */
    z-index: -1; 
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-body); 
    position: relative; 
    z-index: 2; 
    background-color: rgba(255, 255, 255, 0.7); /* Ligero fondo blanco para mejor lectura */
    padding: 20px;
    border-radius: 8px;
}

.bio-content p {
    margin-bottom: 1.5rem;
}

/* --- ESTILOS DE LA GALERÍA ESTÁTICA (GRID) --- */
.gallery {
    background-color: var(--color-section-bg); 
}

.grid {
    display: grid;
    /* Mostrar 3 columnas en escritorio y se ajustan dinámicamente */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 auto;
    max-width: 1000px; 
}

.gallery-item {
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    /* Altura para mantener la proporción 1080x1430 en escritorio */
    height: 440px; 
    object-fit: cover; 
    display: block;
    
    /* Efecto de Zoom: Base y Transición */
    transition: transform 0.4s ease-in-out; 
}

/* Zoom al pasar el cursor */
.gallery-item:hover img {
    transform: scale(1.1); /* Hace la imagen 10% más grande */
}
/* Fin de estilos de la galería */


/* Contacto */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: var(--color-background-light); 
}

.field {
    margin-bottom: 1.5rem;
}

.field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-dark); 
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc; 
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    background-color: #fff; 
    color: var(--color-dark);
}

.field textarea {
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-primary); 
    color: #fff; 
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--color-secondary); 
}

.form-status {
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--color-dark); 
    color: #fff; 
    font-size: 0.9rem;
    border-top: 1px solid var(--color-dark);
}

/* --- ESTILOS PARA EL BOTÓN VOLVER ARRIBA --- */

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary); 
    color: var(--color-dark); 
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 99; 
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--color-secondary); 
}

#back-to-top svg {
    fill: var(--color-dark); 
}


/* ###################################################### */
/* ############### RESPONSIVE / MÓVIL CSS ############### */
/* ###################################################### */

@media (max-width: 768px) {
    /* Ajustes del Header */
    .header-inner {
        flex-wrap: wrap;
        padding-top: 10px;
    }
    
    .brand {
        order: 1;
        flex-basis: 50%;
    }
    
    .nav-toggle {
        display: flex; /* Mostrar el botón hamburguesa */
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        order: 2;
        flex-direction: column;
        justify-content: space-around;
        height: 20px;
    }
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--color-dark); 
        transition: all 0.3s linear;
        transform-origin: 1px;
    }

    .socials {
        display: none; /* Ocultar íconos sociales en el header móvil */
    }

    .main-nav {
        display: none; /* Ocultar menú por defecto */
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    .main-nav.is-open {
        display: block; /* Mostrar menú al hacer toggle */
    }
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        border-top: 1px solid #ddd;
        padding-top: 10px;
    }
    .main-nav li {
        margin: 10px 0;
    }

    /* Galería en Móvil: Volvemos a un grid simple de 1 columna */
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item img {
        height: 480px; /* Altura aumentada para mostrar la foto completa */
    }

    /* Ajuste de Tipografía y Padding */
    .section-title {
        font-size: 2rem;
    }
    .name {
        font-size: 2rem;
    }
    .bio-content {
        padding: 15px;
    }
    
    /* Posicionamiento del botón Volver Arriba */
    #back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
}