:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-300: #7dd3fc;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --sky-800: #075985;
    --sky-900: #0c4a6e;
    --white: #ffffff;
    --text: #0f172a;
    --text-soft: #475569;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 8px 24px rgba(2, 132, 199, 0.1);
    --shadow-lg: 0 20px 50px rgba(2, 132, 199, 0.18);
    --radius: 14px;
    --radius-lg: 22px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============= HEADER & TOPBAR ============= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    min-height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.logo-img {
    height: 56px;
    max-width: 290px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14.5px;
    color: var(--text-soft);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--sky-700);
    background: var(--sky-50);
}

.btn-topbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
}

.btn-topbar:hover {
    background: linear-gradient(135deg, var(--sky-600), var(--sky-700)) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
    color: #ffffff !important;
}

.btn-topbar svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-topbar:hover svg {
    transform: translateX(2px);
}

.desktop-only {
    display: inline-flex;
}

.mobile-only {
    display: none;
}

.menu-toggle {
    display: none;
}

/* ============= HERO CAROUSEL ============= */
.hero {
    position: relative;
    min-height: 620px;
    height: 84vh;
    max-height: 780px;
    background: var(--sky-900);
    overflow: hidden;
    user-select: none;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.hero-slide.active .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(12, 74, 110, 0.92) 0%,
            rgba(2, 132, 199, 0.70) 52%,
            rgba(12, 74, 110, 0.55) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    padding: 80px 24px;
    max-width: 820px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(18px);
}

.hero h1 {
    font-size: clamp(2.3rem, 5.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(22px);
}

.hero h1 span {
    color: var(--sky-300);
    background: linear-gradient(90deg, #7dd3fc, #bae6fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    max-width: 640px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.65;
    opacity: 0;
    transform: translateY(22px);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(22px);
}

/* Animations for active slide elements */
.hero-slide.active .hero-badge {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-slide.active h1 {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

.hero-slide.active p {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

.hero-slide.active .hero-cta {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Nav Buttons */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.38);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    color: #ffffff;
}

.hero-nav-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

/* Carousel Indicators */
.hero-indicators {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 14px;
    background: rgba(12, 74, 110, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.indicator-dot {
    width: 34px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    padding: 0;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.indicator-dot.active {
    width: 52px;
    background: rgba(255, 255, 255, 0.35);
}

.indicator-progress {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--sky-400);
    border-radius: 999px;
}

.indicator-dot.active .indicator-progress {
    animation: indicatorFill 5.5s linear forwards;
}

@keyframes indicatorFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--sky-500);
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: var(--sky-600);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.7);
}

/* ============= INTRO ============= */
.intro {
    padding: 85px 0;
    background: linear-gradient(180deg, var(--sky-50), var(--white));
}

.intro-inner {
    max-width: 900px;
    text-align: center;
}

.intro h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 18px;
    color: var(--sky-900);
    font-weight: 700;
}

.intro p {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 720px;
    margin: 0 auto 40px;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat {
    background: white;
    padding: 28px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--sky-100);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--sky-600);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-soft);
}

/* ============= SECTION HEADS ============= */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-eyebrow {
    display: inline-block;
    color: var(--sky-600);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-eyebrow.light {
    color: var(--sky-300);
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    color: var(--sky-900);
    font-weight: 700;
    line-height: 1.2;
}

.section-head h2 span {
    color: var(--sky-500);
}

.section-sub {
    margin-top: 16px;
    color: var(--text-soft);
    font-size: 1.05rem;
}

/* ============= SERVICIOS ============= */
.servicios {
    padding: 100px 0;
    background: var(--white);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.servicio-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--sky-100);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.servicio-img {
    height: 260px;
    overflow: hidden;
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servicio-card:hover .servicio-img img {
    transform: scale(1.05);
}

.servicio-content {
    padding: 32px 30px;
}

.servicio-icon {
    width: 60px;
    height: 60px;
    background: var(--sky-50);
    color: var(--sky-600);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.servicio-content h3 {
    font-size: 1.5rem;
    color: var(--sky-900);
    margin-bottom: 14px;
    font-weight: 700;
}

.servicio-content p {
    color: var(--text-soft);
    margin-bottom: 12px;
    font-size: 0.98rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.check-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--text);
    font-size: 0.95rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    background: var(--sky-100);
    color: var(--sky-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

/* ============= EQUIPOS ============= */
.equipos {
    padding: 100px 0;
    background: var(--sky-50);
}

.equipos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 880px;
    margin: 0 auto;
}

.equipo-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--sky-100);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.equipo-img {
    height: 220px;
    overflow: hidden;
}

.equipo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipo-card:hover .equipo-img img {
    transform: scale(1.04);
}

.equipo-info {
    padding: 24px 26px;
}

.equipo-info h4 {
    font-size: 1.15rem;
    color: var(--sky-900);
    margin-bottom: 6px;
}

.equipo-tag {
    display: inline-block;
    background: var(--sky-100);
    color: var(--sky-700);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.equipo-info p {
    color: var(--text-soft);
    font-size: 0.92rem;
}

/* ============= GALERIA ============= */
.galeria {
    padding: 100px 0;
    background: var(--white);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 14px;
}

.gal-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 0;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background: var(--sky-900);
}

.gal-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 74, 110, 0.2) 0%, rgba(2, 132, 199, 0.45) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.gal-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.gal-item:hover::after {
    opacity: 1;
}

.gal-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.gal-item:hover img {
    transform: scale(1.08);
}

.g-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.g-4 {
    grid-column: span 2;
}

.g-6 {
    grid-row: span 2;
}

/* ============= CONTACTO ============= */
.contacto {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--sky-700), var(--sky-900));
    color: white;
}

.contacto-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacto-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin: 12px 0 18px;
    font-weight: 700;
}

.contacto-text>p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky-200);
}

.info-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.info-item span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.5;
}

.contacto-form {
    background: white;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacto-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sky-900);
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--text);
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--sky-400);
    box-shadow: 0 0 0 3px var(--sky-100);
}

.contacto-form .btn {
    margin-top: 6px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contacto-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-status {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
    display: none;
    font-weight: 500;
}

.form-status.active {
    display: block;
}

.form-status.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-status.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ============= FOOTER ============= */
.site-footer {
    background: #082f49;
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 0;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-logo {
    height: 38px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-brand span {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.84rem;
}

/* ============= GALLERY MODAL / LIGHTBOX ============= */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.gallery-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: zoom-out;
}

.modal-wrapper {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.gallery-modal.open .modal-content {
    transform: scale(1);
}

.modal-img-container {
    max-width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    background: #091728;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    border-radius: 12px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 14px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-caption {
    font-size: 0.96rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.2px;
}

.modal-counter {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sky-300);
    background: rgba(14, 165, 233, 0.25);
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

/* Modal Navigation Buttons */
.modal-btn {
    position: absolute;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.38);
    transform: scale(1.1);
    color: #ffffff;
}

.modal-btn:active {
    transform: scale(0.95);
}

.modal-close {
    top: -55px;
    right: 0;
}

.modal-prev {
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.modal-next {
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 900px) {
    .site-header {
        position: sticky;
    }

    .header-inner {
        padding: 10px 20px;
        min-height: 68px;
    }

    .logo-img {
        height: 46px;
        max-width: 240px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        gap: 6px;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 16px;
        font-size: 15px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-flex;
        margin-top: 10px;
        justify-content: center;
        text-align: center;
        width: 100%;
        padding: 12px 18px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        padding: 8px;
    }

    .menu-toggle span {
        width: 22px;
        height: 2px;
        background: var(--sky-700);
        border-radius: 2px;
        transition: transform 0.2s ease;
    }

    .hero {
        min-height: 520px;
        height: calc(100svh - 68px);
        max-height: 720px;
    }

    .hero-overlay {
        background: linear-gradient(180deg,
                rgba(12, 74, 110, 0.92) 0%,
                rgba(2, 132, 199, 0.76) 50%,
                rgba(12, 74, 110, 0.94) 100%);
    }

    .hero-content {
        padding: 40px 20px 75px;
        max-width: 100%;
    }

    .hero-nav-btn {
        width: 44px;
        height: 44px;
    }

    .hero-prev {
        left: 12px;
    }

    .hero-next {
        right: 12px;
    }

    .hero-indicators {
        bottom: 20px;
        padding: 6px 12px;
        gap: 8px;
    }

    .servicios-grid,
    .equipos-grid,
    .contacto-inner {
        grid-template-columns: 1fr;
    }

    .intro-stats {
        grid-template-columns: 1fr;
    }

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .g-1,
    .g-4 {
        grid-column: span 2;
    }

    .g-6 {
        grid-row: span 1;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-prev {
        left: 10px;
        background: rgba(12, 74, 110, 0.65);
    }

    .modal-next {
        right: 10px;
        background: rgba(12, 74, 110, 0.65);
    }

    .modal-close {
        top: 10px;
        right: 10px;
        background: rgba(12, 74, 110, 0.75);
    }

    .modal-img-container {
        max-height: 70vh;
    }

    .modal-img {
        max-height: 70vh;
    }
}

@media (max-width: 540px) {
    .header-inner {
        padding: 8px 16px;
        min-height: 60px;
    }

    .logo-img {
        height: 38px;
        max-width: 200px;
    }

    .hero {
        min-height: 490px;
        height: calc(100svh - 60px);
        max-height: 640px;
    }

    .hero-content {
        padding: 24px 16px 65px;
    }

    .hero-badge {
        font-size: 11.5px;
        padding: 4px 12px;
        margin-bottom: 12px;
    }

    .hero h1 {
        font-size: clamp(1.55rem, 6.2vw, 1.95rem);
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 0.90rem;
        line-height: 1.45;
        margin-bottom: 20px;
    }

    .hero-cta {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;
    }

    .hero-cta .btn {
        flex: 1;
        padding: 11px 12px;
        font-size: 13.5px;
        text-align: center;
        white-space: nowrap;
    }

    .hero-nav-btn {
        display: none;
    }

    /* On tiny screens, users swipe or tap indicators */
    .hero-indicators {
        bottom: 15px;
        padding: 5px 10px;
        gap: 6px;
    }

    .indicator-dot {
        width: 20px;
        height: 4.5px;
    }

    .indicator-dot.active {
        width: 34px;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .g-1,
    .g-4 {
        grid-column: span 1;
    }

    .modal-btn {
        width: 42px;
        height: 42px;
    }

    .modal-img-container {
        max-height: 60vh;
    }

    .modal-img {
        max-height: 60vh;
    }

    .modal-footer {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
        padding: 10px 14px;
    }

    .modal-caption {
        font-size: 0.88rem;
    }
}

@media (max-width: 380px) {
    .hero-content {
        padding: 20px 14px 60px;
    }

    .hero h1 {
        font-size: 1.45rem;
    }

    .hero p {
        font-size: 0.86rem;
        margin-bottom: 16px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 8px;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 13px;
    }
}