/* ============================================
   GRAVITY ESTUDIO CREATIVO — CSS v5.1
   Identidad: Azul #013565 + Amarillo #ffc300
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;0,800;1,700&family=Barlow+Condensed:wght@500;600;700;800&display=swap');

:root {
    --yellow:        #ffc300;
    --yellow-dark:   #d4a200;
    --yellow-glow:   rgba(255, 195, 0, 0.22);
    --yellow-subtle: rgba(255, 195, 0, 0.12);

    --blue:          #013565;
    --blue-dark:     #012348;
    --blue-light:    rgba(1, 53, 101, 0.08);
    --blue-glow:     rgba(1, 53, 101, 0.2);

    --ink:           #013565;
    --ink-2:         #012348;
    --ink-3:         rgba(1, 53, 101, 0.75);

    --white:         #ffffff;
    --off-white:     #faf9f5;
    --surface:       #f0efe8;
    --surface-2:     #e8e7df;

    --border:        rgba(1, 53, 101, 0.12);
    --border-2:      rgba(1, 53, 101, 0.22);

    --font-display:  'Barlow Condensed', sans-serif;
    --font-body:     'Plus Jakarta Sans', sans-serif;

    --r-xs:  6px;
    --r-sm:  12px;
    --r-md:  16px;
    --r-lg:  24px;
    --r-xl:  36px;

    --ease:   cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --slow:   cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-sm: 0 2px 10px rgba(1, 53, 101, 0.07);
    --shadow-md: 0 6px 28px rgba(1, 53, 101, 0.12);
    --shadow-lg: 0 20px 60px rgba(1, 53, 101, 0.18);

    /* Altura real del navbar — usada para compensar el hero */
    --navbar-h: 70px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.loading { overflow: hidden; }
body { font-family: var(--font-body); background: var(--off-white); color: var(--blue); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
* { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--blue);
    display: flex; align-items: center; justify-content: center;
    opacity: 1; visibility: visible;
    transition: opacity 0.55s cubic-bezier(0.4,0,1,1), visibility 0.55s cubic-bezier(0.4,0,1,1);
}
.loader-hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

.loader-content {
    display: flex; flex-direction: column; align-items: center; gap: 0;
    animation: gravityDrop 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes gravityDrop {
    0%   { opacity: 0; transform: translateY(-60px); }
    65%  { opacity: 1; transform: translateY(6px); }
    82%  { transform: translateY(-3px); }
    100% { opacity: 1; transform: translateY(0); }
}

.loader-logo {
    width: 260px; height: auto; max-height: 140px;
    object-fit: contain;
    background: var(--yellow);
    padding: 1.5rem 2rem;
    border-radius: var(--r-md);
    animation: logoSettle 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes logoSettle {
    0%   { box-shadow: 0 0 0 rgba(255,195,0,0); }
    70%  { box-shadow: 0 18px 40px rgba(255,195,0,0.35); }
    100% { box-shadow: 0 8px 24px rgba(255,195,0,0.18); }
}

.loader-tagline {
    margin-top: 20px;
    font-family: var(--font-display); font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 5px;
    color: rgba(255,255,255,0.4);
    animation: taglineRise 0.5s 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.loader-tagline span { color: var(--yellow); }

@keyframes taglineRise {
    from { opacity: 0; transform: translateY(10px); letter-spacing: 8px; }
    to   { opacity: 1; transform: translateY(0);    letter-spacing: 5px; }
}

.loader-line-container {
    width: 82px; height: 2px;
    background: rgba(255,255,255,0.12);
    border-radius: 99px; overflow: hidden;
    position: relative; margin-top: 16px;
    animation: barAppear 0.3s 0.65s var(--ease) both;
}
@keyframes barAppear { from { opacity: 0; } to { opacity: 1; } }

.loader-line {
    position: absolute; top: 0; left: 0;
    width: 0%; height: 100%;
    background: var(--yellow); border-radius: 99px;
    animation: barFill 0.9s 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes barFill { 0% { width: 0%; } 100% { width: 100%; } }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 6%;
    height: var(--navbar-h);
    background: var(--yellow);
    border-bottom: 2px solid rgba(1,53,101,0.12);
    transition: box-shadow 0.3s var(--ease);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(1,53,101,0.15); }

.main-logo { height: 46px; width: auto; max-width: 200px; object-fit: contain; }

.nav-links { display: flex; list-style: none; align-items: center; gap: 2rem; }

.nav-links a {
    font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--blue);
    transition: color 0.2s var(--ease); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -3px; left: 0;
    width: 0; height: 2px; background: var(--blue); border-radius: 99px;
    transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--blue-dark); }
.nav-links a:hover::after { width: 100%; }

.btn-nav {
    background: var(--blue) !important; color: var(--yellow) !important;
    padding: 0.55rem 1.4rem; border-radius: var(--r-xs);
    transition: background 0.2s var(--ease), transform 0.2s var(--spring) !important;
}
.btn-nav::after { display: none !important; }
.btn-nav:hover { background: var(--blue-dark) !important; color: var(--white) !important; transform: translateY(-2px); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; z-index: 1100; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; transition: all 0.3s var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: flex !important; flex-direction: column;
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--yellow); align-items: center; justify-content: center;
        gap: 2.5rem; z-index: 1050;
        opacity: 0; pointer-events: none; transform: translateY(-16px);
        transition: opacity 0.35s var(--slow), transform 0.35s var(--slow);
    }
    .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .nav-links a { font-size: 1.3rem; color: var(--blue); }
    .btn-nav { padding: 0.8rem 2.5rem !important; }
}

/* ============================================
   HERO — FIX: el contenido no queda tapado por el navbar
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center;
}

.hero-video-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    z-index: 0;
}



/* iOS — ocultar controles nativos del video */
.hero-video-bg::-webkit-media-controls,
.hero-video-bg::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}
.hero-video-bg {
    pointer-events: none;
    object-fit: cover;
    background-color: #012348;
}

.hero-content {
    position: relative; z-index: 2;
    max-width: 860px;
    /* FIX NAVBAR: padding-top igual a la altura del navbar para que
       el contenido quede centrado visualmente debajo de él */
    padding: var(--navbar-h) 6% 0;
    animation: fadeSlideUp 0.9s 0.2s var(--slow) both;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--yellow); color: var(--blue);
    font-size: 0.68rem; font-weight: 800; letter-spacing: 2.5px;
    text-transform: uppercase; padding: 0.4rem 1rem;
    border-radius: var(--r-xs); margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 7.5rem);
    font-weight: 800; line-height: 0.9; letter-spacing: -1px;
    text-transform: uppercase; color: var(--white); margin-bottom: 1.5rem;
}
.hero-content h1 em { font-style: italic; color: var(--yellow); }

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 400;
    color: rgba(255,255,255,0.9);
    max-width: 640px; margin: 0 auto 2.5rem; line-height: 1.65;
}

.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem; }

.hero-stat-text {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.8vw, 1.4rem); font-weight: 700;
    color: rgba(255,255,255,0.85); letter-spacing: 1px; text-transform: uppercase;
}
.hero-stat-text span { color: var(--yellow); font-weight: 800; }

/* ============================================
   BOTONES
   ============================================ */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--yellow); color: var(--blue);
    font-family: var(--font-body); font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 1rem 2.2rem; border-radius: var(--r-xs);
    border: 2px solid var(--yellow); cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease),
                transform 0.2s var(--spring), box-shadow 0.2s var(--ease);
}
.btn-primary:hover { background: var(--blue); border-color: var(--blue); color: var(--yellow); transform: translateY(-3px); box-shadow: 0 10px 24px var(--blue-glow); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; color: var(--white);
    font-family: var(--font-body); font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 1rem 2.2rem; border-radius: var(--r-xs);
    border: 2px solid rgba(255,255,255,0.5); cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--spring);
}
.btn-secondary:hover { border-color: var(--yellow); background: rgba(255,195,0,0.12); color: var(--yellow); transform: translateY(-3px); }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header { text-align: center; margin-bottom: 4rem; }

.section-tag {
    display: inline-flex; align-items: center; gap: 0.8rem;
    font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 2.5px; color: var(--blue); margin-bottom: 0.8rem;
}
.section-tag::before, .section-tag::after {
    content: ''; display: block; width: 28px; height: 1.5px;
    background: var(--yellow); border-radius: 99px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 800;
    text-transform: uppercase; letter-spacing: -0.5px; line-height: 0.95;
    color: var(--blue); margin-bottom: 1rem;
}
.section-header p { font-size: 0.95rem; color: var(--blue); opacity: 0.75; max-width: 520px; margin: 0 auto; line-height: 1.75; }

/* ============================================
   CLIENTES — Slider
   ============================================ */
.clients { padding: 100px 0; background: var(--off-white); overflow: hidden; }
.clients .section-header { padding: 0 6%; margin-bottom: 3rem; }

.clients-track-wrapper { position: relative; overflow: hidden; }
.clients-track-wrapper::before, .clients-track-wrapper::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.clients-track-wrapper::before { left: 0; background: linear-gradient(to right, var(--off-white), transparent); }
.clients-track-wrapper::after  { right: 0; background: linear-gradient(to left,  var(--off-white), transparent); }

.clients-track { display: flex; gap: 1rem; width: max-content; animation: clientsScroll 45s linear infinite; padding: 0.5rem 0; }
.clients-track:hover { animation-play-state: paused; }

@keyframes clientsScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.client-logo {
    flex-shrink: 0; width: 170px; height: 80px;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
    letter-spacing: 1.5px; color: var(--blue); text-transform: uppercase;
    transition: filter 0.3s var(--ease), border-color 0.3s, transform 0.3s var(--spring), box-shadow 0.3s;
}
.client-logo:hover { filter: grayscale(0) opacity(1); border-color: var(--yellow); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.client-logo img { max-height: 44px; max-width: 120px; object-fit: contain; filter: inherit; }

/* ============================================
   SERVICIOS — Grid tipo portfolio (3 cols, 1 large)
   ============================================ */
.services { padding: 120px 6%; background: var(--blue); }
.services .section-header h2    { color: var(--yellow); }
.services .section-tag          { color: rgba(255,255,255,0.7); }
.services .section-tag::before,
.services .section-tag::after   { background: var(--yellow); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
    max-width: 1200px; margin: 0 auto;
}

/* El item grande ocupa 2 filas — igual que portfolio-item.large */
.service-large { grid-row: span 2; aspect-ratio: unset !important; }

.service-item {
    aspect-ratio: 4/3;
    border-radius: var(--r-md);
    position: relative; overflow: hidden; cursor: pointer;
    background: var(--blue-dark);
    transition: transform 0.3s var(--spring);
}
.service-item:hover { transform: scale(1.02); }

.service-item-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; opacity: 0.45;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.service-item:hover .service-item-bg { opacity: 0.3; transform: scale(1.05); }

/* Overlay — solo oscurece la imagen, sin texto */
.service-item-overlay {
    position: absolute; inset: 0;
    background: rgba(1, 26, 50, 0.3);
    transition: background 0.35s var(--ease);
    z-index: 1;
    pointer-events: none;
}
.service-item:hover .service-item-overlay {
    background: rgba(1, 26, 50, 0.55);
}

.service-item-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(1,26,50,0.97) 0%, rgba(1,26,50,0.7) 60%, transparent 100%);
    z-index: 2;
    transition: padding 0.35s var(--ease);
}

/* En hover el content crece para dar espacio al texto */
.service-item:hover .service-item-content {
    padding-bottom: 1.8rem;
}

.service-cat {
    display: inline-block;
    font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2.5px;
    color: var(--blue); background: var(--yellow);
    padding: 0.2rem 0.7rem; border-radius: var(--r-xs);
    margin-bottom: 0.5rem;
}

.service-item h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.3px;
    color: var(--white); line-height: 1.1;
    margin-bottom: 0;
}

/* Texto descriptivo — oculto, aparece debajo del h3 en hover */
.service-desc {
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition:
        max-height 0.4s var(--ease),
        opacity    0.35s var(--ease) 0.05s,
        transform  0.35s var(--ease) 0.05s,
        margin-top 0.35s var(--ease);
}

.service-item:hover .service-desc {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 0.6rem;
}

/* Touch */
.service-item.touch-active .service-item-overlay {
    background: rgba(1, 26, 50, 0.55);
}
.service-item.touch-active .service-desc {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 0.6rem;
}
.service-item.touch-active .service-item-content {
    padding-bottom: 1.8rem;
}
.service-item.touch-active { transform: scale(1.02); }

/* service-item como enlace — quitar estilos de <a> */
a.service-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Botón CTA que aparece en hover */
.service-item-cta {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yellow);
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.5rem 1.2rem;
    border-radius: var(--r-xs);
    white-space: nowrap;
    z-index: 3;
    transition: bottom 0.35s var(--ease) 0.05s, opacity 0.35s var(--ease) 0.05s;
    opacity: 0;
    pointer-events: none;
}

.service-item:hover .service-item-cta,
.service-item.touch-active .service-item-cta {
    bottom: 1.2rem;
    opacity: 1;
}

/* En móvil siempre visible */
@media (max-width: 640px) {
    .service-item-cta {
        bottom: 0.6rem !important;
        opacity: 1 !important;
        font-size: 0.62rem;
        padding: 0.4rem 0.9rem;
    }
}
@media (max-width: 640px) {
    .services { padding: 70px 4%; }
    .services-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .service-large { grid-column: span 1 !important; grid-row: span 1 !important; aspect-ratio: 4/3 !important; }
    .service-desc { max-height: 100px !important; opacity: 1 !important; transform: translateY(0) !important; margin-top: 0.5rem !important; }
    .service-item-content { padding-bottom: 1.5rem !important; }
}

/* ============================================
   PACKS
   ============================================ */
.packs { padding: 120px 6%; background: var(--off-white); }

.packs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: start; max-width: 1200px; margin: 0 auto; }

.pack-card {
    background: var(--white); border-radius: var(--r-md);
    border: 1.5px solid var(--border); padding: 2rem 1.6rem;
    position: relative;
    transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pack-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue); }

.pack-featured {
    background: var(--blue); border-color: var(--blue);
    transform: scale(1.04); box-shadow: var(--shadow-lg);
}
.pack-featured.revealed { transform: scale(1.04); }
.pack-featured:hover { transform: scale(1.04) translateY(-6px); border-color: var(--yellow); }

.pack-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--yellow); color: var(--blue);
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    padding: 0.28rem 0.9rem; border-radius: 99px; white-space: nowrap;
}

.pack-header { margin-bottom: 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.pack-featured .pack-header { border-bottom-color: rgba(255,255,255,0.1); }

.pack-label { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; text-transform: uppercase; color: var(--blue); line-height: 1; letter-spacing: -0.5px; margin-bottom: 0.3rem; }
.pack-featured .pack-label { color: var(--yellow); }

.pack-desc { font-size: 0.78rem; color: var(--blue); opacity: 0.65; }
.pack-featured .pack-desc { color: rgba(255,255,255,0.45); opacity: 1; }

.pack-features { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.8rem; }
.pack-features li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.82rem; color: var(--blue); opacity: 0.85; line-height: 1.4; }
.pack-features li svg { flex-shrink: 0; margin-top: 1px; color: var(--blue); }
.pack-featured .pack-features li { color: rgba(255,255,255,0.75); opacity: 1; }
.pack-featured .pack-features li svg { color: var(--yellow); }

.feature-highlight strong { color: var(--blue); font-weight: 700; }
.pack-featured .feature-highlight strong { color: var(--yellow); }

.pack-cta {
    display: block; text-align: center;
    background: var(--yellow-subtle); color: var(--blue);
    font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    padding: 0.85rem; border-radius: var(--r-xs);
    border: 1.5px solid var(--border);
    transition: all 0.2s var(--ease);
}
.pack-cta:hover { background: var(--blue); color: var(--yellow); border-color: var(--blue); transform: translateY(-2px); }
.pack-featured .pack-cta { background: var(--yellow); color: var(--blue); border-color: var(--yellow); }
.pack-featured .pack-cta:hover { background: var(--white); color: var(--blue); border-color: var(--white); }

.packs-note { text-align: center; margin-top: 2.5rem; font-size: 0.85rem; color: var(--blue); opacity: 0.8; }
.packs-note2 { text-align: center; margin-top: 0.6rem; font-size: 0.85rem; }
.packs-note2 a { color: var(--blue); font-weight: 700; border-bottom: 1.5px solid var(--yellow); padding-bottom: 1px; }
.packs-note2 a:hover { color: var(--yellow-dark); }
.packs-note a { color: var(--blue); font-weight: 700; border-bottom: 1.5px solid var(--yellow); padding-bottom: 1px; }
.packs-note a:hover { color: var(--yellow-dark); }

@media (max-width: 1050px) {
    .packs-grid { grid-template-columns: repeat(2, 1fr); }
    .pack-featured { transform: scale(1); }
    .pack-featured.revealed { transform: scale(1); }
    .pack-featured:hover { transform: translateY(-6px); }
}
@media (max-width: 580px) {
    .packs { padding: 80px 5%; }
    .packs-grid { grid-template-columns: 1fr; }
}

/* ============================================
   EQUIPO
   ============================================ */
/* ============================================
   EQUIPO — Foto full width con titular + stats
   ============================================ */
/* ============================================
   EQUIPO — Texto arriba, foto abajo completa
   ============================================ */
.team {
    background: var(--off-white);
    width: 100%;
}

.team-top {
    text-align: center;
    padding: 60px 6% 32px;
    background: var(--off-white);
}

.team-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--blue);
    opacity: 0.45;
    margin-bottom: 1rem;
}

.team-top h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -0.5px;
    color: var(--blue);
    margin: 0;
}

.team-top h2 span { color: var(--yellow); }

.team-bottom {
    width: 100%;
    display: block;
    line-height: 0;
    background: var(--off-white);
    /* aspect-ratio exacto de la imagen 1921x901 */
    aspect-ratio: 1921 / 901;
    overflow: hidden;
}

.team-photo-group {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}


/* ============================================
   CONTACTO
   ============================================ */
.contact { padding: 120px 6%; background: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; max-width: 1080px; margin: 0 auto; }

.contact-text .section-tag { display: inline-flex; margin-bottom: 1rem; }
.contact-text h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; text-transform: uppercase; line-height: 0.95; color: var(--blue); margin-bottom: 1.2rem; }
.contact-text > p { font-size: 0.92rem; color: var(--blue); opacity: 0.8; line-height: 1.75; margin-bottom: 2rem; }

.social-links { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.social-link {
    display: inline-flex; align-items: center; gap: 0.8rem;
    font-size: 0.88rem; font-weight: 700; color: var(--blue);
    padding: 0.7rem 1rem; border-radius: var(--r-xs);
    border: 1.5px solid var(--border); background: var(--off-white);
    transition: all 0.25s var(--ease);
}
.social-link:hover { border-color: var(--yellow); background: var(--yellow-subtle); transform: translateX(4px); }
.social-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-link.facebook svg { color: #1877F2; }
.social-link.instagram svg { color: #E1306C; }
.social-link.tiktok svg { color: #010101; }
.social-link.whatsapp svg { color: #25D366; }

.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%; padding: 0.85rem 1.1rem;
    background: var(--off-white); border: 1.5px solid var(--border);
    border-radius: var(--r-xs); font-family: var(--font-body); font-size: 0.88rem;
    color: var(--blue); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none; -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23013565' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
    padding-right: 2.5rem; cursor: pointer; color: var(--blue);
}
.contact-form .btn-primary { width: 100%; justify-content: center; }

.form-success {
    display: none; text-align: center; padding: 2rem;
    background: rgba(1,53,101,0.06); border: 1.5px solid var(--blue);
    border-radius: var(--r-md); color: var(--blue); font-weight: 600;
}

@media (max-width: 880px) { .contact-inner { grid-template-columns: 1fr; gap: 3rem; } }
@media (max-width: 580px) { .contact { padding: 80px 5%; } .form-row { grid-template-columns: 1fr; } }

/* ============================================
   FOOTER — Fondo Amarillo
   ============================================ */
.footer { background: var(--yellow); }

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 6%; flex-wrap: wrap; }

.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-logo { height: 72px; width: auto; max-width: 300px; object-fit: contain; border-radius: 8px; }
.footer-brand p { font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-transform: uppercase; color: var(--blue); line-height: 1.3; letter-spacing: 0.5px; }
.footer-brand p span { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; text-transform: none; color: var(--blue-dark); opacity: 0.75; }

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); transition: opacity 0.2s; }
.footer-links a:hover { opacity: 0.65; text-decoration: underline; }

.footer-social { display: flex; gap: 0.8rem; align-items: center; }
.footer-social a {
    width: 38px; height: 38px; background: var(--blue);
    border-radius: var(--r-xs); display: flex; align-items: center; justify-content: center;
    color: var(--yellow); transition: background 0.2s var(--ease), transform 0.2s var(--spring);
}
.footer-social a:hover { background: var(--blue-dark); transform: translateY(-3px); }

.footer-bottom { border-top: 1.5px solid rgba(1,53,101,0.15); padding: 1.2rem 6%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.78rem; color: var(--blue); font-weight: 500; opacity: 0.75; }

@media (max-width: 880px) {
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================
   WHATSAPP — Paleta Gravity (azul + amarillo)
   ============================================ */
.wap-widget {
    position: fixed; bottom: 28px; right: 28px;
    z-index: 9000; width: 60px; height: 60px;
}

/* Botón: azul con ícono amarillo */
.wap-btn {
    width: 60px; height: 60px;
    background: var(--blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px var(--blue-glow);
    cursor: pointer; position: relative;
    transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease), background 0.2s;
}
.wap-btn:hover { transform: scale(1.1); background: var(--blue-dark); box-shadow: 0 8px 32px var(--blue-glow); }
.wap-btn:active { transform: scale(0.93); background: var(--yellow); }

.wap-icon-wa, .wap-icon-close {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    color: var(--yellow); /* ícono en amarillo sobre azul */
    transition: opacity 0.25s, transform 0.3s;
}
.wap-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.6); color: var(--white); }

.wap-btn.open .wap-icon-wa    { opacity: 0; transform: rotate(90deg) scale(0.6); }
.wap-btn.open .wap-icon-close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Burbuja: amarilla con número azul */
.wap-bubble {
    position: absolute; top: -4px; right: -4px;
    width: 20px; height: 20px;
    background: var(--yellow); color: var(--blue);
    border-radius: 50%; font-size: 0.68rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--off-white);
    animation: bubblePulse 2s ease-in-out infinite;
}
@keyframes bubblePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* Panel: encabezado en azul, body en crema */
.wap-panel {
    position: absolute; bottom: calc(100% + 16px); right: 0;
    background: var(--white); border-radius: var(--r-lg);
    box-shadow: 0 12px 50px var(--blue-glow);
    width: 320px; overflow: hidden;
    opacity: 0; transform: translateY(16px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--spring);
    transform-origin: bottom right;
}
.wap-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.wap-header {
    background: var(--blue); /* azul Gravity */
    padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.8rem;
}
/* Wrapper externo — contiene avatar + punto verde */
.wap-avatar-wrap {
    position: relative;
    width: 44px; height: 44px;
    flex-shrink: 0;
}

/* Círculo de la imagen — overflow:hidden recorta limpio */
.wap-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.wap-avatar-placeholder {
    position: absolute; inset: 0;
    background: var(--yellow);
    color: var(--blue);
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

.wap-avatar img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 4px;
    background: var(--yellow);
    z-index: 1;
}

/* Punto verde — posicionado sobre el wrapper externo */
.wap-status {
    position: absolute;
    bottom: 0; right: 0;
    width: 11px; height: 11px;
    background: #8adb40;
    border-radius: 50%;
    border: 2px solid var(--blue);
    z-index: 2;
}

.wap-header-info strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--yellow); }
.wap-header-info span   { font-size: 0.72rem; color: rgba(255,255,255,0.7); }

.wap-close-panel { margin-left: auto; color: rgba(255,255,255,0.7); padding: 4px; transition: color 0.2s; }
.wap-close-panel:hover { color: var(--yellow); }

.wap-messages { padding: 1rem; background: var(--surface); min-height: 120px; display: flex; flex-direction: column; gap: 0.5rem; }
.wap-time { text-align: center; font-size: 0.65rem; color: var(--ink-3); font-weight: 600; margin-bottom: 0.25rem; }

.wap-msg { max-width: 88%; animation: msgIn 0.4s var(--slow) both; }
.wap-msg-in { align-self: flex-start; }
.wap-msg p { background: var(--white); padding: 0.6rem 0.85rem; border-radius: 0 12px 12px 12px; font-size: 0.83rem; color: var(--blue); line-height: 1.5; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.wap-quicklinks { padding: 0.75rem 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; background: var(--surface); border-top: 1px solid var(--border); }
.wap-quick {
    font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
    padding: 0.35rem 0.75rem; border-radius: 99px;
    background: var(--white); color: var(--blue); border: 1.5px solid var(--border-2);
    transition: all 0.2s;
}
.wap-quick:hover { background: var(--yellow); border-color: var(--yellow); color: var(--blue); }
.wap-quick:active { background: var(--blue); border-color: var(--blue); color: var(--yellow); }

.wap-input-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: var(--surface-2); border-top: 1px solid var(--border); }
.wap-input-row input { flex: 1; border: 1.5px solid var(--border); background: var(--white); border-radius: 22px; padding: 0.55rem 1rem; font-family: var(--font-body); font-size: 0.83rem; outline: none; color: var(--blue); transition: border-color 0.2s; }
.wap-input-row input:focus { border-color: var(--blue); }
.wap-input-row input::placeholder { color: var(--ink-3); }

.wap-send { width: 36px; height: 36px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--yellow); flex-shrink: 0; transition: background 0.2s, transform 0.2s; }
.wap-send:hover { background: var(--blue-dark); transform: scale(1.1); }
.wap-send:active { background: var(--yellow); color: var(--blue); }

@media (max-width: 480px) {
    .wap-widget { bottom: 16px; right: 16px; }
    .wap-panel { width: calc(100vw - 32px); right: 0; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0; transform: translateY(32px);
    transition: opacity 0.7s var(--slow), transform 0.7s var(--slow);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Touch: deshabilitar hover pegado */
@media (hover: none) and (pointer: coarse) {
    /* Servicios: hover desactivado — lo maneja touch-active en el JS */
    .service-item:hover { transform: none; }
    .service-item:hover .service-item-overlay { background: rgba(1,26,50,0.3); }
    .service-item:hover .service-item-content { padding-bottom: 1.5rem; }
    .service-item:hover .service-desc { max-height: 0; opacity: 0; margin-top: 0; }

    .pack-card:hover     { transform: none; box-shadow: none; border-color: var(--border); }
    .pack-featured:hover { transform: scale(1.04); }

    .btn-primary:hover  { transform: none; box-shadow: none; }
    .btn-primary:active { transform: scale(0.96); }
    .btn-secondary:hover { transform: none; }
    .btn-secondary:active { transform: scale(0.96); }

    .wap-btn:hover { transform: none; background: var(--blue); }
    .wap-btn:active { transform: scale(0.92); background: var(--yellow); }
    .wap-btn:active .wap-icon-wa { color: var(--blue); }
}

/* ============================================
   RESPONSIVE GLOBAL — Mobile First
   ============================================ */

/* ── TABLET GRANDE: hasta 1050px ── */
@media (max-width: 1050px) {
    .packs-grid { grid-template-columns: repeat(2, 1fr); }
    .pack-featured { transform: scale(1); }
    .pack-featured.revealed { transform: scale(1); }
    .pack-featured:hover { transform: translateY(-6px); }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-large { grid-column: span 2 !important; grid-row: span 1 !important; aspect-ratio: 16/7 !important; }
}

/* ── TABLET: hasta 768px ── */
@media (max-width: 768px) {
    :root { --navbar-h: 64px; }

    .navbar { padding: 0 5%; }
    .hamburger { display: flex; }

    .hero-content { padding: var(--navbar-h) 5% 0; }
    .hero-content h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
    .hero-subtitle { font-size: 1rem; }
    .cta-group { gap: 0.75rem; }
    .hero-stat-text { font-size: 0.9rem; }

    .clients { padding: 70px 0; }
    .services { padding: 80px 5%; }
    .packs { padding: 80px 5%; }
    .contact { padding: 80px 5%; }

    .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
    .form-row { grid-template-columns: 1fr 1fr; }

    .team-top { padding: 48px 5% 24px; }
    .team-top h2 { font-size: clamp(1.3rem, 4.5vw, 2.2rem); }
    .team-bottom { max-height: none; aspect-ratio: 1921 / 901; }
    .team-photo-group { height: auto; }

    .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 2.5rem 5%; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 1rem 5%; gap: 0.3rem; }
    .footer-links { gap: 1rem; }
    .footer-logo { height: 56px; }
}

/* ── MÓVIL: hasta 640px ── */
@media (max-width: 640px) {
    :root { --navbar-h: 60px; }

    .navbar { padding: 0 4%; }

    .hero-content { padding: var(--navbar-h) 4% 0; }
    .hero-content h1 { font-size: clamp(2rem, 10vw, 3rem); letter-spacing: -0.5px; line-height: 0.95; }
    .hero-badge { font-size: 0.62rem; padding: 0.35rem 0.85rem; }
    .hero-subtitle { font-size: 0.9rem; margin-bottom: 2rem; }
    .cta-group { flex-direction: column; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
    .hero-stat-text { font-size: 0.82rem; }

    .section-header { margin-bottom: 2.5rem; }
    .section-header h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }

    .clients { padding: 60px 0; }
    .client-logo { width: 130px; height: 64px; font-size: 0.75rem; }

    .services { padding: 70px 4%; }
    .services-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .service-large { grid-column: span 1 !important; grid-row: span 1 !important; aspect-ratio: 4/3 !important; }
    .service-desc { max-height: 100px !important; opacity: 1 !important; transform: translateY(0) !important; margin-top: 0.5rem !important; }
    .service-item-content { padding-bottom: 1.5rem !important; }

    .packs { padding: 70px 4%; }
    .packs-grid { grid-template-columns: 1fr; gap: 1rem; }
    .pack-featured { transform: none; }
    .pack-featured.revealed { transform: none; }

    .team-top { padding: 40px 4% 20px; }
    .team-top h2 { font-size: clamp(1.2rem, 5.5vw, 1.8rem); }
    .team-bottom { aspect-ratio: 721 / 1281; }
    .team-photo-group { object-position: center center; }

    .contact { padding: 70px 4%; }
    .contact-inner { gap: 2.5rem; }
    .contact-text h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .form-row { grid-template-columns: 1fr; }
    .social-link { font-size: 0.82rem; padding: 0.6rem 0.9rem; }

    .footer-inner { padding: 2rem 4%; gap: 1.5rem; }
    .footer-bottom { padding: 1rem 4%; }
    .footer-logo { height: 48px; }
    .footer-links { gap: 0.8rem; flex-wrap: wrap; }
    .footer-links a { font-size: 0.72rem; }
    .footer-social a { width: 34px; height: 34px; }
    .footer-bottom p { font-size: 0.72rem; }

    .wap-widget { bottom: 16px; right: 16px; }
    .wap-btn { width: 54px; height: 54px; }
    .wap-panel { width: calc(100vw - 32px); right: 0; }
}

/* ── MÓVIL PEQUEÑO: hasta 380px (iPhone SE) ── */
@media (max-width: 380px) {
    :root { --navbar-h: 56px; }

    .hero-content h1 { font-size: clamp(1.8rem, 11vw, 2.4rem); }
    .hero-badge { font-size: 0.58rem; letter-spacing: 1.5px; }
    .hero-stat-text { font-size: 0.75rem; }

    .section-header h2 { font-size: clamp(1.6rem, 9vw, 2rem); }

    .services { padding: 60px 4%; }
    .packs { padding: 60px 4%; }
    .contact { padding: 60px 4%; }
    .pack-label { font-size: 1.8rem; }

    .team-top { padding: 32px 4% 16px; }
    .team-top h2 { font-size: clamp(1rem, 5.5vw, 1.5rem); }
    .team-bottom { aspect-ratio: 721 / 1281; }
    .team-photo-group { object-position: center center; }

    .footer-logo { height: 40px; }

    .wap-panel { width: calc(100vw - 24px); bottom: calc(100% + 10px); }
    .wap-btn { width: 50px; height: 50px; }
}

/* ============================================
   INSTAGRAM FEED
   ============================================ */
.instagram-feed {
    padding: 100px 6%;
    background: var(--off-white);
}
 
.instagram-feed .section-header h2 {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--blue);
}
 
.instagram-widget {
    max-width: 1200px;
    margin: 0 auto;
}
 
.instagram-widget behold-widget {
    display: block;
    width: 100%;
}
 
.instagram-cta {
    text-align: center;
    margin-top: 2.5rem;
}
 
@media (max-width: 640px) {
    .instagram-feed { padding: 70px 4%; }
}

/* Por defecto, la imagen de móvil está oculta */
.mobile-only {
    display: none;
}

/* Cuando la pantalla es de 600px o menos (Móvil) */
@media (max-width: 600px) {
    .desktop-only {
        display: none !important; /* Escondemos el video */
    }
    .mobile-only {
        display: block !important; /* Mostramos el picture */
    }
    .mobile-only img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
}
 