/* --- VARIABLES Y RESET --- */
:root {
    --primary-color: #373743; /* Azul marino muy oscuro */
    --secondary-color: #22c596; /* Cian vibrante */
    --text-dark: #333333;
    --text-light: #f4f4f9;
    --bg-light: #ffffff;
    --bg-dark: #373743; /* Un tono más claro que el primario */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1, h2, h3, h4, a.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}
cite {
    font-size: 20px;
}
.space {
    display: block;
    padding-bottom: 25px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}
.section-padding2 {
    padding: 100px 0 0 0;
}


.text-center { text-align: center; }
.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }
.text-white { color: white; }

/* --- COMPONENTES --- */
/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2e756c);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.btn-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Títulos de Sección */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.bg-dark .section-title {
    color: var(--secondary-color);
}

.line-separator {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-bottom: 30px;
}

.line-separator.center {
    margin-left: auto;
    margin-right: auto;
}

.separator-light {
    background-color: rgba(255,255,255,0.3);
}

/* --- HEADER Y NAVEGACIÓN --- */
.header {
    height: var(--nav-height);
    background-color: var(--primary-color);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* .logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
} */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.accent-point {
    color: var(--secondary-color);
}

.nav-links ul {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--secondary-color);
    padding: 8px 20px !important;
    border-radius: 4px;
}
.btn-contact:hover {
    background-color: #2e756c;
    color: white;
}
.btn-contact::after { display: none; } /* Quitar la línea del botón */

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- SECCIÓN HERO (INICIO) --- */
.hero-section {
    height: 100vh;
    background-image: url('assets/img/fondo.jpeg'); /* Imagen de fondo de Unsplash */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: left;
    padding-top: var(--nav-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(31, 31, 43, 0.85), rgba(35, 35, 48, 0.95));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-highlight {
    color: var(--secondary-color);
}

.lead-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: #d0d0d0;
}

.hero-btns .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

/* --- SECCIÓN NOSOTROS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.stats-grid {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.stat-desc {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- SECCIÓN SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05); /* Fondo translúcido */
    padding: 40px 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    font-size: 0.95rem;
    color: #ccc;
}

/* --- SECCIÓN CONTACTO --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* Formulario Estilizado */
.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
    font-family: var(--font-body);
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Efecto "Floating Label" del formulario */
.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--secondary-color);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
}

/* .footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    color: white;
} */
 .footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    align-items: center;
}

.footer-logo img {
    height: 25px;
    width: auto;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    margin: 0 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ... (Todo el código CSS anterior) ... */

/* --- SECCIÓN EQUIPO (NUEVO) --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    text-align: center;
    background-color: white; /* Fondo blanco limpio */
    padding-bottom: 20px;
}

/* Contenedor de la imagen circular */
.team-img-box {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px; /* Centrado horizontal */
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f0f2f5; /* Borde gris muy claro inicial */
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.team-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay con redes sociales al hacer hover */
.team-social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8); /* Color primario semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Oculto por defecto */
    transform: translateY(20px); /* Desplazado ligeramente hacia abajo */
    transition: all 0.4s ease;
}

.team-social-overlay a {
    color: white;
    background-color: var(--secondary-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.team-social-overlay a:hover {
    background-color: #0086a1; /* Un tono más oscuro del cian */
}

/* Efectos Hover en la tarjeta */
.team-card:hover .team-img-box {
    border-color: var(--secondary-color); /* El borde cambia al color acento */
    transform: translateY(-5px);
}

.team-card:hover .team-social-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Información del miembro */
.team-info h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-role {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.team-bio {
    font-size: 0.95rem;
    color: #666;
    padding: 0 15px;
    line-height: 1.5;
}

/* ... (Continúa con las Media Queries existentes) ... */

/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger-menu { display: block; }
    
    .nav-links {
        position: absolute;
        top: var(--nav-height);
        right: -100%; /* Oculto fuera de la pantalla */
        background-color: var(--primary-color);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        transition: right 0.4s ease;
        text-align: center;
        padding-top: 50px;
    }

    .nav-links.active {
        right: 0; /* Visible */
    }

    .nav-links ul {
        flex-direction: column;
    }

    .nav-links li {
        margin: 25px 0;
    }
    
    .btn-contact {
        display: inline-block; /* Para que respete el padding en móvil */
    }

    .hero-content h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .contact-wrapper { padding: 25px; }
}