/* --- 1. CONFIGURACIÓN, VARIABLES Y RESET --- */
:root {
    /* Colores y Estilos del primer código (Navegación) */
    --primary: #608052;        /* Verde Habitus */
    --accent: #7ca36b;         /* Verde Acento */
    --dark: #2c3e26;           /* Verde Profundo */
    --light-bg: #ffffff;       
    --white: #ffffff;
    --text: #3d4c39;           
    --text-muted: #778473;     
    --shadow: 0 20px 40px rgba(0,0,0,0.08);
    --radius: 30px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Variables del segundo código (Contenido y Perfiles) */
    --primary-dark:  #61784A;   
    --accent-green: #61784A;     
    --soft-green: #b5c99a;       
    --bg-light: #f9fbf7;         
    --text-main: #333333;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- 2. HEADER & NAVEGACIÓN ESTILO APP (COPIA EXACTA) --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.281)), 
                url('../img/descarga (6).jfif') center/cover no-repeat;
    padding: 0 8%;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    z-index: 10;
}

.logo img {
    height: 80px;
    filter: brightness(0) invert(1);
}

/* MENÚ DE ICONOS CON SEPARACIÓN DE 35PX */
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px; /* Separación idéntica al original */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 1.0rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.95;
}

/* Botones de icono (Home, Talleres, Login, FAQ) */
.nav-icon-btn, .back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12); /* Fondo traslúcido */
    color: var(--white) !important;
    border-radius: 15px; /* Bordes estilo App */
    font-size: 1.6rem !important;
    transition: var(--transition);
    text-decoration: none;
    backdrop-filter: blur(8px); /* Efecto cristal */
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-icon-btn:hover, .back-arrow:hover {
    background: var(--primary);
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* --- 3. SECCIÓN SOBRE NOSOTROS --- */
.about-us-section {
    padding: 100px 8%;
}

.about-intro {
    text-align: center;
    margin-bottom: 80px;
}

.about-intro h4 {
    color: var(--accent-green);
    letter-spacing: 5px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.about-intro h2 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--primary-dark);
    font-weight: 700;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.05rem;
    text-align: justify;
}

.about-image img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

/* --- 4. DISEÑO ESPECÍFICO PERFIL (SERGIO Y LALO) --- */
.profile-detail-section {
    padding: 100px 8%;
    background-color: var(--white);
}

.profile-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.profile-main-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.profile-quote {
    margin-top: 30px;
    padding: 25px;
    background-color: var(--bg-light);
    border-left: 5px solid var(--accent-green);
    border-radius: 0 20px 20px 0;
    font-style: italic;
    color: var(--primary-dark);
}

.profile-info-content h1 {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.1;
}

.divider {
    width: 100px;
    height: 4px;
    background: var(--soft-green);
    margin: 25px 0;
}

.bio-text h3 {
    color: var(--primary-dark);
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.specialties-list {
    list-style: none;
    margin-top: 25px;
}

.specialties-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}

.specialties-list i {
    color: var(--accent-green);
    font-size: 1.4rem;
}

/* GALERÍA DE PERFIL */
.profile-gallery-container {
    max-width: 650px;
    margin-top: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.gallery-grid img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.profile-actions {
    margin-top: 45px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(96, 128, 82, 0.2);
}

.profile-social a {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-right: 35px;
    transition: var(--transition);
}

.profile-social a:hover {
    color: var(--accent-green);
}

/* --- 5. TARJETAS DE EXPERTOS --- */
.experts-container {
    padding-top: 80px;
    text-align: center;
}

.expert-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.expert-card {
    background: var(--white);
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transition: var(--transition);
    text-align: left;
}

.expert-card:hover {
    transform: translateY(-12px);
}

.expert-image-wrapper {
    height: 600px;
    overflow: hidden;
}

.expert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* --- 6. FOOTER --- */
.site-footer {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.281)), 
                url('../img/descarga (6).jfif') center/cover no-repeat;
    color: var(--white);
    padding: 70px 8% 30px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.8rem;
    transition: 0.3s;
}

/* --- 7. RESPONSIVO --- */
@media (max-width: 1024px) {
    .profile-grid { gap: 40px; }
}

@media (max-width: 992px) {
    .about-content, .profile-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 20px; }
    /* Se mantiene el gap de 35px para la separación de iconos en móvil */
    .nav-links { gap: 35px; flex-wrap: wrap; justify-content: center; }
    .nav-icon-btn, .back-arrow { width: 42px; height: 42px; font-size: 1.4rem !important; }
    .footer-container { flex-direction: column; text-align: center; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-actions { flex-direction: column; align-items: flex-start; }
}