/* --- VARIABLES Y ESTILOS GLOBALES --- */
:root {
    --primary-blue: #385D78;
    --secondary-blue: #45708E;
    --accent-gold: #CEA92C;
    --text-grey: #65737B;
    --bg-light: #f4f6f9;
    --white: #ffffff;
    --black: #212529;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-grey);
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-gold);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--white);
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- HEADER --- */
.header {
    background-color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.logo img {
    height: 60px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    padding-bottom: 5px;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-blue);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-blue);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 68, 90, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero .btn-primary:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-blue);
}


/* --- FIRMA SECTION --- */
#firma .section-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

#firma .section-text h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 40px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.service-card h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* --- NUESTRO FUNDADOR (EQUIPO) SECTION --- */
.team-grid-single {
    max-width: 800px;
    margin: 0 auto;
}
.team-member-single {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}
.team-member-single img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}
.team-member-info h5 {
    font-size: 1.5rem;
}
.team-member-info span {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}
.team-bio {
    font-size: 1rem;
    color: var(--text-grey);
}
.social-icons-team {
    margin-top: 15px;
}
.social-icons-team a {
    font-size: 1.8rem;
    color: var(--primary-blue);
}
.social-icons-team a:hover {
    color: var(--accent-gold);
}


/* --- CONTACT SECTION --- */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--primary-blue);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.contact-info h4 {
    margin-bottom: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}

.contact-info p i {
    color: var(--accent-gold);
    font-size: 1.2rem;
    width: 20px;
}

.social-icons a {
    font-size: 2rem;
    margin-right: 15px;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding-top: 50px;
}

.footer a {
    color: var(--white);
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-logo img {
    height: 55px;
}

.footer-nav a {
    margin-left: 20px;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- ANIMATIONS ON SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ESTILOS PARA LA SECCIÓN DE FEEDS SOCIALES (CORREGIDO) --- */
.social-feeds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* <<-- Crea 3 columnas de igual tamaño */
    gap: 30px;
    align-items: stretch; /* Estira los elementos para que tengan la misma altura */
}

.feed-item {
    width: 100%; /* El item ocupará todo el espacio de su columna */
    /* Se elimina el max-width para que el widget pueda crecer */
}

.feed-item h4 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
}

/* --- ESTILOS PARA EL BOTÓN DE TIKTOK --- */
.tiktok-call-to-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 40px;
    border: 1px solid #eee;
    box-sizing: border-box;
}

.btn-tiktok {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    color: #ffffff;
    padding: 20px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-tiktok:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: scale(1.05);
}

.btn-tiktok i {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    #firma .section-image {
        order: -1;
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    /* <<-- NUEVO: Hace que los feeds se pongan uno debajo del otro en tablets */
    .social-feeds-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: flex;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .main-nav ul li a::after {
        display: none;
    }

    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-padding {
        padding: 60px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-nav a {
        margin: 0 10px;
    }

    .team-member-single {
        flex-direction: column;
        text-align: center;
    }

    .team-member-single img {
        width: 180px;
        height: 180px;
    }
}

/* --- ESTILOS PARA EL BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float-button {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float-button i {
    margin-top: 15px; /* Centra el ícono verticalmente */
}

.whatsapp-float-button:hover {
    transform: scale(1.1);
    background-color: #128C7E; /* Un verde más oscuro al pasar el mouse */
}