:root {
    /* Color Tokens */
    --primary: #003087;
    /* Deep Blue */
    --accent: #FF0000;
    /* Terracotta Adjusted for AA */
    --secondary-soft: #E9C46A;
    /* Soft Yellow */
    --secondary-fresh: #2A9D8F;
    /* Teal */
    --bg-white: #FFFFFF;
    --bg-light: #F7F9FC;
    --text-primary: #333333;
    --text-muted: #666666;
    --text-on-accent: #FFFFFF;

    /* Typography */
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing & Radius */
    --radius-pill: 50px;
    --radius-card: 20px;
    --max-width: 1200px;
    --header-height: 180px;

    /* Shadows */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
    padding-top: var(--header-height);
    /* Header is fixed */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-on-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-social {
    display: none;
    /* Hidden on mobile by default */
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    margin-right: auto;
}

.social-badge {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-badge i {
    font-size: 18px;
    line-height: 1;
}

.social-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: rgba(0, 48, 135, 0.08);
    /* Derived from --primary */
    color: var(--primary);
}

.social-badge:focus-visible {
    outline: 3px solid rgba(0, 48, 135, 0.35);
    outline-offset: 2px;
}

.menu-social {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.mobile-only {
    display: block;
}

@media (min-width: 992px) {
    .header-social {
        display: flex;
    }

    .mobile-only {
        display: none;
    }
}

.logo {
    height: 150px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    color: var(--primary);
}

.main-nav .btn {
    margin-left: 1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero */
.hero-section {
    padding: 4rem 0 0;
    background-color: var(--bg-light);
    overflow: hidden;
    position: relative;
    text-align: center;
    /* Mobile First Centered */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .hero-section {
        text-align: left;
        padding-top: 6rem;
    }

    .hero-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero-text {
        width: 50%;
        padding-right: 2rem;
    }

    .hero-image {
        width: 45%;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 600px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

/* Sections */
section {
    padding: 4rem 0;
    position: relative;
}

/* Wave SVG */
.wave-top,
.wave-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.wave-top {
    top: -1px;
    transform: rotate(180deg);
}

.wave-bottom {
    bottom: -1px;
}

.wave-bottom svg,
.wave-top svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-bottom path,
.wave-top path {
    fill: var(--bg-white);
}

/* Nosotros */
.nosotros-section {
    background-color: var(--bg-white);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.bg-soft {
    background-color: rgba(233, 196, 106, 0.2);
}

.bg-fresh {
    background-color: rgba(42, 157, 143, 0.2);
}

.bg-accent {
    background-color: rgba(255, 0, 0, 0.1);
}

/* Uses new accent */

/* Niveles */
.niveles-section {
    background-color: var(--bg-light);
    padding-top: 6rem;
}

.levels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .levels-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.level-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.level-card:hover {
    transform: translateY(-5px);
}

.level-image {
    height: 200px;
    overflow: hidden;
}

.level-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.level-content {
    padding: 2rem;
}

.level-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.level-content .subtitle {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Servicios */
.servicios-section {
    background-color: var(--bg-white);
}

/* Just white bg */

.services-list {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-card);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Galeria */
.galeria-section {
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* MOBILE 2 COLS STRICT */
    gap: 10px;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    /* Square crop */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Ubicacion */
.ubicacion-section {
    background-color: var(--bg-white);
    padding: 6rem 0;
}

.location-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.map-embed {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    line-height: 0;
}

.map-embed iframe {
    display: block;
}

@media (min-width: 992px) {
    .location-wrapper {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .location-content {
        width: 40%;
    }

    .map-embed {
        width: 55%;
    }
}

/* Contacto */
.contacto-section {
    background-color: var(--primary);
    color: white;
}

.contacto-section h2,
.contacto-section h3 {
    color: white;
}

.contacto-section a {
    color: var(--secondary-soft);
    text-decoration: underline;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .contact-wrapper {
        flex-direction: row;
    }

    .contact-info {
        width: 40%;
    }

    .contact-form-container {
        width: 60%;
    }
}

.contact-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-card);
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background-color: #1a3a4f;
    /* Darker Blue */
    color: white;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.legal-note {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        padding: 6rem 2rem;
        transition: 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .main-nav .btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}