@font-face {
    font-family: "Be Vietnam Pro";
    src: url("./assets/fonts/Be_Vietnam_Pro/BeVietnamPro-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("./assets/fonts/Be_Vietnam_Pro/BeVietnamPro-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("./assets/fonts/Be_Vietnam_Pro/BeVietnamPro-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("./assets/fonts/Be_Vietnam_Pro/BeVietnamPro-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("./assets/fonts/Be_Vietnam_Pro/BeVietnamPro-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("./assets/fonts/Be_Vietnam_Pro/BeVietnamPro-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-blue: #0b2e59;
    --primary-blue-strong: #03224a;
    --accent-red: #d01f1f;
    --surface: #f4f5f7;
    --surface-soft: #eef2f7;
    --text-dark: #10263f;
    --text-muted: #4f6074;
    --white: #ffffff;
    --line: #d3dae5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Be Vietnam Pro", sans-serif;
    color: var(--text-dark);
    background: var(--surface);
    line-height: 1.5;
}

.site-shell {
    width: 100%;
    background: var(--surface);
}

.page-content {
    padding: 0 2.2rem 3rem;
}

h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 3.3vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
}

p {
    color: var(--text-muted);
}

a {
    color: inherit;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.9rem 1.5rem;
    pointer-events: none;
}

.navbar {
    position: relative;
    min-height: 5.2rem;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2.5rem 0 23rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(12, 18, 26, 0.13);
    pointer-events: all;
}

.navbar::after {
    display: none;
}

.logo {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 1rem);
    min-width: 20rem;
    padding: 0 1.4rem;
    background: var(--white);
    border-radius: 1rem;
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(12, 18, 26, 0.08);
}

.logo img {
    width: 100%;
    max-width: 15rem;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.7rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-red);
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
    margin-top: -5rem;
}

.hero img {
    width: 100%;
    height: clamp(260px, 45vw, 470px);
    object-fit: cover;
    display: block;
}

/* ─── BADGE ───────────────────────────────────────────────── */
.badge {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    border: 1px solid #f05a4f;
    color: #f05a4f;
    border-radius: 999px;
    padding: 0.22rem 0.8rem;
    margin-bottom: 1rem;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    border-radius: 999px;
    border: 0;
    text-decoration: none;
    padding: 0.5rem 1.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-red {
    background: var(--accent-red);
    color: var(--white);
}

.btn-red:hover {
    background: #af1717;
}

.btn-blue {
    background: var(--primary-blue);
    color: var(--white);
}

/* ─── INDEX: ALTERNATING CONTENT SECTIONS ────────────────── */
.home-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
    align-items: center;
    padding: 3rem 2.2rem;
}

.home-section.reverse {
    direction: rtl;
}

.home-section.reverse > * {
    direction: ltr;
}

.home-section img {
    width: 100%;
    height: clamp(220px, 30vw, 380px);
    object-fit: cover;
    border-radius: 1rem;
    display: block;
}

.home-section-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    margin-bottom: 0.85rem;
}

.home-section-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
    max-width: 38rem;
}

/* ─── INDEX: SEPARATOR ───────────────────────────────────── */
.home-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 2.2rem 1.5rem;
}

.home-separator img {
    width: min(24rem, 70%);
}

/* ─── INDEX: GALLERY STRIP ───────────────────────────────── */
.home-gallery-section {
    padding: 0 2.2rem 3rem;
    text-align: center;
}

.home-gallery-section .badge {
    display: inline-block;
}

.home-gallery-section h2 {
    margin-bottom: 1.4rem;
}

.home-gallery-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-bottom: 1.6rem;
}

.home-gallery-strip::-webkit-scrollbar {
    height: 4px;
}

.home-gallery-strip::-webkit-scrollbar-track {
    background: var(--line);
    border-radius: 2px;
}

.home-gallery-strip::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 2px;
}

.home-gallery-strip img {
    flex: 0 0 auto;
    width: clamp(220px, 28vw, 360px);
    height: clamp(160px, 22vw, 280px);
    object-fit: cover;
    border-radius: 1rem;
    scroll-snap-align: start;
    display: block;
}

/* ─── NOSOTROS: SPLIT + STATS ─────────────────────────────── */
.split-section {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.4rem;
    padding: 2.2rem 0;
    align-items: start;
}

.split-content p {
    margin-bottom: 0.95rem;
}

.stats-container {
    display: grid;
    gap: 1.2rem;
}

.stat-item {
    border-bottom: 2px solid #9eb3cf;
    padding-bottom: 0.8rem;
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
}

.stat-number {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1;
}

.stat-text {
    color: var(--text-muted);
    font-size: 1.4rem;
}

.values-section {
    padding: 0.5rem 0 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    margin-top: 1.2rem;
}

.value-card {
    background: linear-gradient(145deg, #1f5fab, #0a3c78);
    color: var(--white);
    border-radius: 1.3rem;
    text-align: center;
    padding: 2rem 1.2rem;
}

.value-card img {
    width: 2rem;
    height: 2rem;
}

.value-card h3 {
    color: var(--white);
    margin: 0.8rem 0 0.4rem;
}

.value-card p {
    color: #d8e5f6;
    font-size: 0.94rem;
}

/* ─── SERVICIOS ───────────────────────────────────────────── */
.services-header {
    padding: 2rem 0 1.7rem;
    max-width: 62rem;
}

.services-header p {
    font-size: 1.1rem;
}

.services-container {
    display: grid;
    gap: 0.95rem;
    margin-bottom: 2.8rem;
}

.service-row {
    display: grid;
    grid-template-columns: 0.8fr 2fr;
    gap: 0.95rem;
}

.service-row.reverse {
    grid-template-columns: 2fr 0.8fr;
    direction: ltr;
}

.service-blue-card {
    background: #1f5fab;
    color: var(--white);
    border-radius: 1.25rem;
    padding: 1.7rem 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profesionalismo {
  background: #0B54A3;
}

.honradez {
  background: #054080;
}

.espiritu {
  background: #013266;
}

.service-blue-card img {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.7rem;
}

.service-blue-card h3 {
    color: var(--white);
    margin-bottom: 0.6rem;
}

.service-blue-card p {
    color: #d8e5f6;
}

.service-img {
    width: 100%;
    min-height: 15.8rem;
    border-radius: 1.25rem;
    object-fit: cover;
    display: block;
}

.cta-banner {
    background: var(--accent-red);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--white);
    margin: 1.2rem -2.2rem -3rem;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 0.9rem;
}

.cta-banner .btn {
    background: #ff6a47;
    color: var(--white);
}

/* ─── CONTACTANOS ─────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 1.4rem;
    padding: 2.2rem 0;
}

.contact-info p {
    font-size: 1.3rem;
    margin-bottom: 0.45rem;
}

.contact-details-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 1.2rem;
}

.contact-details-grid h4 {
    margin-bottom: 0.45rem;
    font-size: 1.18rem;
    color: #25374d;
}

.contact-details-grid p {
    font-size: 1.03rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.3rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary-blue);
    transition: background 0.2s ease;
}

.social-links a:hover {
    background: var(--accent-red);
}

.social-links img {
    width: 1rem;
    height: 1rem;
}

.contact-form-card {
    background: #dce5ef;
    border-radius: 1.5rem;
    padding: 1.4rem;
}

.contact-form-card h3 {
    color: #17304f;
    font-size: 2.4rem;
}

.contact-form-card > p {
    margin: 0.45rem 0 1.2rem;
}

.form-group {
    margin-bottom: 0.72rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.form-control {
    width: 100%;
    border: 0;
    border-radius: 0.55rem;
    background: #f7fafc;
    padding: 0.72rem 0.8rem;
    font-family: inherit;
    color: var(--text-dark);
}

textarea.form-control {
    resize: vertical;
    min-height: 5.8rem;
}

.contact-submit {
    display: flex;
    justify-content: center;
}

.contact-submit .btn {
    min-width: 7rem;
    min-height: 2rem;
    font-size: 0.94rem;
}

.team-testimonial-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1.9fr;
    gap: 1rem;
    align-items: start;
    padding-bottom: 2.2rem;
}

.team-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 1.35rem;
    border: 2px solid #4776aa;
}

.team-card h4 {
    margin-top: 0.55rem;
    color: var(--text-dark);
    font-size: 2rem;
}

.team-card p {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.55rem;
}

.testimonial-card {
    background: #f7f7f9;
    border: 2px solid #d5d5d7;
    border-radius: 1.2rem;
    padding: 1.6rem;
    text-align: center;
}

.testimonial-author {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #b06ce8;
    color: var(--white);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card p {
    font-size: 2rem;
    color: #222f43;
}

.stars {
    margin-top: 1rem;
    letter-spacing: 0.28em;
    color: #f6c936;
}

.map-section {
    padding-bottom: 2.8rem;
}

.map-section h2 {
    margin-bottom: 1.2rem;
}

.map-frame {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 1.35rem;
    filter: grayscale(6%);
}

/* ─── GALERIA ─────────────────────────────────────────────── */
.gallery-header {
    padding: 2rem 0 1.5rem;
    text-align: center;
}

.gallery-controls {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;
}

.filter-btn {
    border: 0;
    border-radius: 999px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.35rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-red);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 16rem;
    grid-auto-flow: row dense;
    gap: 0.75rem;
    padding-bottom: 2.7rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
    transition: opacity 0.2s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Explicit size modifiers */
.gi-wide { grid-column: span 2; }
.gi-tall { grid-row: span 2; }

.gallery-item.is-hidden {
    display: none;
}

/* ─── LEGAL PAGES ─────────────────────────────────────────── */
.legal-container {
    text-align: center;
    max-width: 60rem;
    margin: 0 auto;
    padding: 2.2rem 0 2.8rem;
}

.legal-container h1 {
    margin-bottom: 1rem;
}

.legal-container > p {
    margin-bottom: 1.4rem;
}

.legal-section {
    margin: 2.2rem 0;
}

.legal-section h4 {
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 0.6rem;
    font-size: 1.7rem;
}

.separator-svg {
    width: min(38rem, 85%);
    display: block;
    margin: 2rem auto;
}

.home-separator img {
    width: min(38rem, 85%);
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer {
    background: var(--primary-blue-strong);
    color: var(--white);
    padding: 2rem 2.2rem 1.3rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.footer-brand img {
    width: 100%;
    max-width: 14rem;
    background: var(--white);
    border-radius: 0.32rem;
    padding: 0.5rem 0.7rem;
}

.footer-col h4 {
    margin-bottom: 0.6rem;
    color: #edf4ff;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.25rem;
}

.footer-col a,
.footer-col p {
    color: #b7c8df;
    text-decoration: none;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-social {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.45rem;
}

.footer-social img {
    width: 1.05rem;
    height: 1.05rem;
}

.footer-divider {
    height: 2px;
    background: rgba(190, 208, 230, 0.45);
    margin: 1.1rem 0 0.8rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #c6d4e6;
    font-size: 0.86rem;
}

.footer-bottom p {
  color: #edf4ff;
}

.footer-bottom a {
    color: #d6e4f8;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* Hamburger hidden on desktop by default */
.hamburger { display: none; }
.mobile-menu { display: none; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .navbar {
        justify-content: center;
        padding: 0 1.5rem 0 17rem;
    }

    .logo {
        min-width: 15rem;
    }

    .logo img {
        max-width: 12rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .home-section,
    .contact-layout,
    .split-section {
        grid-template-columns: 1fr;
    }

    .home-section.reverse {
        direction: ltr;
    }

    .services-container,
    .team-testimonial-section {
        gap: 1.2rem;
    }

    .service-row,
    .service-row.reverse,
    .values-grid,
    .footer-top,
    .team-testimonial-section {
        grid-template-columns: 1fr;
    }

    .service-row.reverse {
        display: flex;
        flex-direction: column;
    }

    .service-row.reverse .service-blue-card {
        order: 1;
    }

    .service-row.reverse .service-img {
        order: 2;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 13rem;
    }

    .gi-wide { grid-column: span 2; }
    .gi-tall { grid-row: span 2; }
}

@media (max-width: 800px) {
    .site-shell {
        max-width: none;
    }

    .navbar-wrapper {
        position: sticky;
        top: 0;
        padding: 0.6rem 0.8rem;
    }

    .navbar {
        padding: 0.6rem 0.9rem;
        border-radius: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: auto;
    }

    .logo {
        position: static;
        transform: none;
        min-width: auto;
        width: auto;
        height: auto;
        border-radius: 0.6rem;
        box-shadow: none;
        padding: 0.35rem 0.8rem;
        flex-shrink: 0;
    }

    .logo img {
        max-width: 9rem;
        display: block;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 2.4rem;
        height: 2.4rem;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.3rem;
        border-radius: 0.5rem;
        transition: background 0.2s;
    }

    .hamburger:hover {
        background: var(--surface-soft);
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2.5px;
        background: var(--primary-blue);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .mobile-menu {
        display: none;
        flex-direction: column;
        background: var(--white);
        border-radius: 1rem;
        margin: 0.3rem 0;
        padding: 0.4rem 1.2rem;
        box-shadow: 0 4px 20px rgba(12,18,26,0.12);
        gap: 0;
    }

    .mobile-menu.open {
        display: flex;
    }

    .mobile-menu a {
        text-decoration: none;
        color: var(--primary-blue);
        font-weight: 600;
        font-size: 1.05rem;
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--line);
        transition: color 0.2s;
    }

    .mobile-menu a:last-child {
        border-bottom: none;
    }

    .mobile-menu a:hover,
    .mobile-menu a.active {
        color: var(--accent-red);
    }

    .hero {
        margin-top: -4rem;
    }

    .page-content {
        padding: 0 1rem 2rem;
    }

    .home-section {
        padding: 2rem 1rem;
    }

    .home-separator,
    .home-gallery-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .quick-links,
    .contact-details-grid,
    .form-row,
    .footer-bottom {
        grid-template-columns: 1fr;
        display: grid;
    }

    .footer-bottom {
        justify-content: flex-start;
    }

    .cta-banner {
        margin: 1.2rem -1rem -2rem;
    }

    .stat-text,
    .contact-info p,
    .team-card h4,
    .team-card p,
    .testimonial-card p,
    .legal-section h4,
    .contact-form-card h3 {
        font-size: revert;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 10rem;
    }

    .gi-wide { grid-column: span 2; }
    .gi-tall { grid-row: span 1; }

    .service-row,
    .service-row.reverse {
        display: flex;
        flex-direction: column;
    }

    .service-row .service-blue-card,
    .service-row.reverse .service-blue-card {
        order: 1;
    }

    .service-row .service-img,
    .service-row.reverse .service-img {
        order: 2;
    }
}