/* --- 1. CONFIGURACIÓN, VARIABLES Y RESET --- */
:root {
    --primary: #608052;        /* Verde Habitus */
    --accent: #7ca36b;         /* Verde Acento */
    --dark: #2c3e26;           /* Verde Profundo */
    --light-bg: #f4f7f2;       
    --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 para sección Conocenos */
    --primary-dark: #61784A;   
    --accent-green: #61784A;     
    --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: var(--light-bg);
    color: var(--text);
    line-height: 1.6;
}

/* --- 2. HEADER & NAVEGACIÓN (COPIADO TAL CUAL) --- */
.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);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px; /* SEPARACIÓN EXACTA */
    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;
}

/* Diseño de botones de icono */
.nav-icon-btn, .back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white) !important;
    border-radius: 15px; 
    font-size: 1.6rem !important;
    transition: var(--transition);
    text-decoration: none;
    backdrop-filter: blur(8px);
    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. EXPERTOS (TARJETAS) --- */
.experts-container {
    padding-top: 80px;
    text-align: center;
}

.experts-container h2 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.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);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.expert-image-wrapper {
    height: 600px;
    overflow: hidden;
}

.expert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.expert-card:hover .expert-img {
    transform: scale(1.08);
}

.expert-info {
    padding: 40px;
}

.expert-info h3 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.expert-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more-link {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition);
}

.read-more-link:hover {
    color: var(--primary-dark);
    letter-spacing: 1px;
}

/* --- 5. 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;
}

.social-icons a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* --- 6. MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .about-content { grid-template-columns: 1fr; }
    .about-image { order: -1; }
}

@media (max-width: 768px) {
    /* Aquí se mantiene la estructura responsiva exacta del primer archivo */
    .navbar { flex-direction: column; gap: 20px; }
    .nav-links { gap: 35px; } /* Mantenemos el gap original si quieres la misma separación */
    .nav-icon-btn, .back-arrow { width: 42px; height: 42px; font-size: 1.4rem !important; }
    .footer-container { flex-direction: column; text-align: center; }
}