*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --bg:#ffffff;
    --panel:#eef2f3;
    --surface:#ffffff;
    --surface-2:#f4f7f8;
    --tech-hover:#e8f3fb;
    --border:#e7ebec;
    --text:#19334f;
    --text-2:#415b72;
    --text-3:#3f5568;
    --accent:#0a4f87;
    --accent-strong:#0a4f87;
    --accent-dark:#19334f;
    --turq:#2c90aa;
    --window:#0d1424;
    --window-head:#111a2e;
    --window-border:#1f2b45;
    --shadow:0 4px 18px rgba(2,6,23,.06);
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:clip;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
    outline:3px solid #0f82dc;
    outline-offset:2px;
}

.card,
.stats > div,
.mini-card,
.step,
.team-card,
.tech-item,
.contact-form{
    box-shadow:var(--shadow);
}

::selection{
    background:#0f82dc;
    color:white;
}

/* ===== Fondos difuminados ===== */
.blur{
    position:fixed;
    width:450px;
    height:450px;
    border-radius:50%;
    filter:blur(150px);
    z-index:-1;
}

.blur1{
    background:#0f82dc55;
    left:-150px;
    top:-100px;
}

.blur2{
    background:#65cfd344;
    right:-150px;
    bottom:-100px;
}

/* ===== Header ===== */
header{
    position:sticky;
    top:0;
    z-index:100;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 8%;
    transition:padding .3s ease, background .3s ease, box-shadow .3s ease;
}

header.scrolled{
    padding:14px 8%;
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(15,23,42,.08);
    box-shadow:0 8px 30px rgba(2,6,23,.08);
}

.logo{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size:24px;
    font-weight:800;
    text-decoration:none;
    color:var(--text);
    letter-spacing:-.5px;
}

.logo .brand b{
    color:#0f82dc;
    font-weight:800;
}

.logo img{
    display:block;
    height:40px;
    width:auto;
}

nav{
    display:flex;
    align-items:center;
    gap:32px;
}

nav a{
    color:var(--text-2);
    text-decoration:none;
    font-size:15px;
    font-weight:500;
    transition:color .25s ease;
}

nav a:hover{
    color:var(--text);
}

.nav-cta{
    background:#19334f;
    padding:9px 20px;
    border-radius:999px;
    color:white !important;
    font-weight:600;
    transition:transform .25s ease, box-shadow .25s ease;
}

.nav-cta:hover{
    transform:translateY(-2px);
    background:#0f82dc;
    box-shadow:0 10px 25px #0f82dc66;
}

/* ===== Menú móvil ===== */
.menu-toggle{
    display:none;
    flex-direction:column;
    gap:6px;
    background:none;
    border:none;
    cursor:pointer;
    padding:6px;
}

.menu-toggle span{
    width:26px;
    height:2px;
    background:var(--text);
    border-radius:2px;
    transition:.3s ease;
}

.menu-toggle.open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity:0; }
.menu-toggle.open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero{
    position:relative;
    min-height:88vh;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:40px 8% 80px;
    gap:60px;
}

.hero-text,
.hero-card{
    position:relative;
    z-index:1;
}

.hero-bg{
    position:absolute;
    inset:-40px 0 0;
    z-index:0;
    background-image:
        linear-gradient(rgba(15,23,42,.06) 1px,transparent 1px),
        linear-gradient(90deg,rgba(15,23,42,.06) 1px,transparent 1px);
    background-size:46px 46px;
    -webkit-mask-image:radial-gradient(ellipse 75% 65% at 50% 32%,#000 35%,transparent 78%);
    mask-image:radial-gradient(ellipse 75% 65% at 50% 32%,#000 35%,transparent 78%);
    pointer-events:none;
}

.hero-glow{
    position:absolute;
    top:-12%;
    left:42%;
    transform:translateX(-50%);
    width:720px;
    height:520px;
    max-width:90%;
    z-index:0;
    background:radial-gradient(circle,#0f82dc40,transparent 62%);
    filter:blur(50px);
    pointer-events:none;
}

.hero-text{
    max-width:600px;
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#fff;
    background:linear-gradient(90deg,#19334f,#0a5a95);
    padding:9px 18px;
    border-radius:999px;
    font-size:14px;
    font-weight:600;
    box-shadow:0 8px 24px #19334f44;
}

.badge i{
    font-size:16px;
}

.hero h1{
    margin-top:24px;
    font-size:64px;
    font-weight:800;
    line-height:1.12;
    letter-spacing:-1.5px;
}

.hero h1 span{
    display:block;
    padding-bottom:.12em;
    line-height:1.2;
    background:linear-gradient(90deg,#0a5a95,#2c90aa);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero p{
    margin:28px 0;
    color:var(--text-2);
    font-size:18px;
    line-height:1.7;
}

.buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
    width:100%;
}

.hero .buttons{
    justify-content:flex-start;
    width:auto;
}

.primary{
    background:#19334f;
    padding:16px 32px;
    border-radius:12px;
    color:white;
    text-decoration:none;
    font-weight:600;
    transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.primary:hover{
    transform:translateY(-3px);
    background:#0f82dc;
    box-shadow:0 15px 35px #0f82dc55;
}

.secondary{
    border:1px solid var(--border);
    padding:16px 32px;
    border-radius:12px;
    color:var(--text);
    text-decoration:none;
    font-weight:600;
    transition:border-color .25s ease, background .25s ease, transform .25s ease;
}

.secondary:hover{
    border-color:#0f82dc;
    background:rgba(15,23,42,.04);
    transform:translateY(-3px);
}

.hero-trust{
    display:flex;
    flex-wrap:wrap;
    gap:22px;
    margin-top:30px;
    color:var(--text-2);
    font-size:14px;
    font-weight:500;
}

/* ===== Ventana de código ===== */
.window{
    background:var(--window);
    border:1px solid var(--window-border);
    border-radius:16px;
    padding:0;
    width:480px;
    overflow:hidden;
    box-shadow:0 30px 70px #00000088;
    animation:float 6s ease-in-out infinite;
}

@keyframes float{
    0%,100%{ transform:translateY(0); }
    50%{ transform:translateY(-14px); }
}

.dots{
    display:flex;
    align-items:center;
    gap:8px;
    padding:16px 20px;
    background:var(--window-head);
    border-bottom:1px solid var(--window-border);
}

.dots span{
    width:12px;
    height:12px;
    border-radius:50%;
    background:#555;
}

.dots span:nth-child(1){ background:#ff5f56; }
.dots span:nth-child(2){ background:#ffbd2e; }
.dots span:nth-child(3){ background:#27c93f; }

.dots em{
    margin-left:auto;
    font-style:normal;
    font-size:13px;
    color:#64748b;
}

pre{
    padding:24px;
    font-size:16px;
    line-height:1.9;
    font-family:"Courier New",monospace;
}

pre .tag{ color:#65cfd3; }
pre .txt{ color:#e2e8f0; }

/* ===== Stats ===== */
.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    padding:80px 8%;
    text-align:center;
}

.stats > div{
    padding:30px 20px;
    background:var(--surface-2);
    border:1px solid var(--border);
    border-radius:18px;
    transition:transform .3s ease, border-color .3s ease;
}

.stats > div:hover{
    transform:translateY(-6px);
    border-color:#0f82dc;
}

.stats h2{
    font-size:44px;
    font-weight:800;
    background:linear-gradient(90deg,#0a5a95,#2c90aa);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}

.stats p{
    margin-top:6px;
    color:var(--text-2);
}

/* ===== Encabezados de sección ===== */
.section-tag{
    display:block;
    text-align:center;
    color:#0a5a95;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
    font-size:13px;
    margin-bottom:12px;
}

.section-sub{
    text-align:center;
    color:var(--text-2);
    max-width:560px;
    margin:14px auto 0;
    font-size:17px;
}

/* ===== Servicios ===== */
.services{
    padding:110px 8%;
}

.services h2{
    text-align:center;
    font-size:44px;
    font-weight:800;
    letter-spacing:-1px;
}

.cards{
    margin-top:56px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:32px;
    align-items:stretch;
}

.card{
    background:var(--surface);
    border:1px solid var(--border);
    padding:34px;
    border-radius:20px;
    transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.card:hover{
    transform:translateY(-10px);
    border-color:#0f82dc;
    box-shadow:0 20px 45px rgba(2,6,23,.12);
}

.card-icon{
    font-size:40px;
    line-height:1;
    margin-bottom:16px;
    color:#0f82dc;
}

.card h3{
    font-size:20px;
    font-weight:700;
}

.card p{
    margin-top:14px;
    color:var(--text-2);
    line-height:1.6;
}

.package-card{
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    height:100%;
}

.package-card.featured{
    border-color:#0f82dc;
    box-shadow:var(--shadow);
}

.package-top{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    gap:4px;
    margin-bottom:10px;
    align-items:flex-start;
}

.package-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    align-self:flex-start;
    width:fit-content;
    max-width:max-content;
    padding:7px 12px;
    border-radius:999px;
    background:#eaf5ff;
    color:#0a5a95;
    font-size:12px;
    font-weight:700;
    letter-spacing:.4px;
    text-transform:uppercase;
}

.package-price{
    margin-top:2px;
    font-size:16px;
    font-weight:700;
    color:var(--text);
}

.package-card > p{
    margin-top:0;
    line-height:1.55;
    min-height:3.1em;
}

.package-card .card-list{
    position:relative;
    z-index:1;
    margin-top:20px;
    padding-top:20px;
    border-top:1px solid var(--border);
}

/* ===== Nosotros ===== */
.about{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    align-items:center;
    gap:60px;
    padding:100px 8%;
}

.about-text .section-tag{
    text-align:left;
    margin-bottom:14px;
}

.about-text h2{
    font-size:40px;
    font-weight:800;
    line-height:1.15;
    letter-spacing:-1px;
}

.about-text > p{
    margin:22px 0;
    color:var(--text-2);
    font-size:17px;
    line-height:1.75;
}

.about-list{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.about-list li{
    position:relative;
    padding-left:30px;
    color:var(--text-2);
}

.about-list li::before{
    content:"✓";
    position:absolute;
    left:0;
    top:0;
    width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#0f82dc;
    color:white;
    border-radius:50%;
    font-size:12px;
    font-weight:700;
}

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.mini-card{
    background:var(--surface-2);
    border:1px solid var(--border);
    border-radius:18px;
    padding:30px 24px;
    text-align:center;
    transition:transform .3s ease, border-color .3s ease;
}

.mini-card:hover{
    transform:translateY(-6px);
    border-color:#65cfd3;
}

.mini-card h3{
    font-size:34px;
    font-weight:800;
    background:linear-gradient(90deg,#0a5a95,#2c90aa);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}

.mini-card p{
    margin-top:6px;
    color:var(--text-2);
    font-size:14px;
}

/* ===== CTA ===== */
.cta{
    padding:100px 8%;
}

.cta-inner{
    background:linear-gradient(135deg,#19334f,#0f82dc);
    border-radius:28px;
    padding:70px 40px;
    text-align:center;
    box-shadow:0 30px 70px #19334f44;
}

.cta h2{
    font-size:44px;
    font-weight:800;
    letter-spacing:-1px;
    color:#fff;
}

.cta p{
    margin:18px auto 34px;
    max-width:520px;
    color:#d9ecfb;
    font-size:18px;
}

.cta .primary{
    background:white;
    color:#19334f;
}

.cta .primary:hover{
    background:#f1f5f9;
    box-shadow:0 15px 35px #00000044;
}

/* ===== Footer ===== */
footer{
    padding:70px 8% 34px;
    border-top:1px solid rgba(15,23,42,.08);
    background:var(--panel);
}

.footer-grid{
    display:grid;
    grid-template-columns:1.6fr 1fr 1fr 1.2fr;
    gap:40px;
    padding-bottom:40px;
    border-bottom:1px solid rgba(15,23,42,.07);
}

.footer-col{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.footer-col h4{
    font-size:15px;
    font-weight:700;
    margin-bottom:4px;
    color:var(--text);
}

.footer-col a,
.footer-col span{
    color:var(--text-2);
    text-decoration:none;
    font-size:14px;
    transition:color .25s ease;
}

.footer-col a:hover{
    color:#0f82dc;
}

.footer-brand .logo{
    display:flex;
    align-items:baseline;
    gap:7px;
    font-size:20px;
    margin-bottom:10px;
    color:var(--text);
    font-weight:500;
}

.footer-brand .logo img{
    height:52px;
    width:auto;
}

.footer-brand .logo span{
    font-size:34px;
    background:linear-gradient(90deg,#0a5a95,#2c90aa);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    font-weight:800;
    letter-spacing:-1px;
}

.footer-brand p{
    color:var(--text-2);
    font-size:14px;
    line-height:1.7;
    max-width:320px;
}

.socials{
    display:flex;
    gap:12px;
    margin-top:8px;
}

.socials a{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--surface);
    border:1px solid var(--border);
    color:var(--text-2);
    font-size:18px;
    font-weight:600;
    text-decoration:none;
    transition:transform .25s ease, background .25s ease, border-color .25s ease;
}

.socials a:hover{
    transform:translateY(-3px);
    background:#0f82dc;
    border-color:#0f82dc;
    color:white;
}

.footer-btn{
    display:inline-block;
    margin-top:6px;
    padding:10px 18px;
    background:#19334f;
    color:white !important;
    border-radius:10px;
    font-weight:600;
    text-align:center;
    width:fit-content;
    transition:transform .25s ease, box-shadow .25s ease;
}

.footer-btn:hover{
    transform:translateY(-2px);
    background:#0f82dc;
    box-shadow:0 10px 25px #0f82dc55;
}

.footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:14px;
    padding-top:26px;
    color:var(--text-3);
    font-size:14px;
}

.footer-legal{
    display:flex;
    gap:22px;
}

.footer-legal a{
    color:var(--text-3);
    text-decoration:none;
    transition:color .25s ease;
}

.footer-legal a:hover{
    color:var(--text-2);
}

/* ===== Enlace activo en la navegación ===== */
nav a.active{
    color:var(--text);
}

nav a.active::after{
    content:"";
    display:block;
    height:2px;
    margin-top:4px;
    border-radius:2px;
    background:linear-gradient(90deg,#0f82dc,#65cfd3);
}

/* ===== Hero de páginas internas ===== */
.page-hero{
    text-align:center;
    padding:80px 8% 40px;
    max-width:820px;
    margin:0 auto;
}

.page-hero h1{
    margin-top:22px;
    font-size:56px;
    font-weight:800;
    letter-spacing:-1.5px;
    line-height:1.1;
}

.page-hero h1 span{
    background:linear-gradient(90deg,#0a5a95,#2c90aa);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}

.page-hero p{
    margin-top:22px;
    color:var(--text-2);
    font-size:18px;
    line-height:1.7;
}

.page-hero .buttons{
    margin-top:28px;
    gap:20px;
}

/* ===== Lista dentro de tarjetas de servicio ===== */
.card-list{
    list-style:none;
    margin-top:18px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.card-list li{
    position:relative;
    padding-left:24px;
    color:var(--text-2);
    font-size:14px;
}

.card-list li::before{
    content:"→";
    position:absolute;
    left:0;
    color:#0f82dc;
    font-weight:700;
}

/* ===== Stack tecnológico ===== */
.tech{
    padding:84px 8%;
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%,#0f82dc14,transparent 70%),
        var(--panel);
    border-top:1px solid rgba(15,23,42,.07);
    border-bottom:1px solid rgba(15,23,42,.07);
}

.tech h2{
    text-align:center;
    font-size:40px;
    font-weight:800;
    letter-spacing:-1px;
}

.tech-grid{
    margin-top:50px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
    gap:18px;
    max-width:940px;
    margin-left:auto;
    margin-right:auto;
}

.tech-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    padding:24px 14px;
    min-height:108px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:18px;
    transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.tech-item:hover{
    transform:translateY(-8px);
    border-color:#0f82dc;
    background:var(--tech-hover);
    box-shadow:0 18px 40px #00000066;
}

.tech-item i{
    font-size:44px;
    line-height:1;
    color:#0f82dc;
    transition:transform .3s ease;
}

.tech-item:hover i{
    transform:scale(1.12);
}

/* Color de marca de cada tecnología */
.tech-item .bxl-react{ color:#61dafb; }
.tech-item .bxl-typescript{ color:#3178c6; }
.tech-item .bxl-javascript{ color:#f0db4f; }
.tech-item .bxl-php{ color:#777bb4; }
.tech-item .bxl-css3{ color:#1572b6; }
.tech-item .bxl-html5{ color:#e34f26; }
.tech-item .bxl-tailwind-css{ color:#06b6d4; }
.tech-item .bxl-bootstrap{ color:#7952b3; }
.tech-item .bxl-wordpress{ color:#21759b; }
.tech-item .laravel-ico{ width:44px; height:44px; color:#ff2d20; transition:transform .3s ease; }
.tech-item:hover .laravel-ico{ transform:scale(1.12); }
.tech-item img{ width:44px; height:44px; object-fit:contain; transition:transform .3s ease; }
.tech-item:hover img{ transform:scale(1.12); }

.tech-item span{
    font-size:13px;
    font-weight:600;
    color:var(--text-2);
}

/* ===== Proceso ===== */
.process{
    padding:100px 8%;
}

.process h2{
    text-align:center;
    font-size:40px;
    font-weight:800;
    letter-spacing:-1px;
}

.steps{
    margin-top:56px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:26px;
}

.step{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:20px;
    padding:34px;
    transition:transform .3s ease, border-color .3s ease;
}

.step:hover{
    transform:translateY(-8px);
    border-color:#0f82dc;
}

.step span{
    font-size:34px;
    font-weight:800;
    background:linear-gradient(90deg,#0f82dc,#65cfd3);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}

.step h3{
    margin-top:12px;
    font-size:19px;
}

.step p{
    margin-top:10px;
    color:var(--text-2);
    line-height:1.6;
}

/* ===== Valores y equipo ===== */
.values,
.team{
    padding:100px 8%;
}

.values h2,
.team h2{
    text-align:center;
    font-size:40px;
    font-weight:800;
    letter-spacing:-1px;
}

.team-grid{
    margin-top:56px;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:26px;
    max-width:720px;
    margin-left:auto;
    margin-right:auto;
}

.team-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:20px;
    padding:40px 30px;
    text-align:center;
    transition:transform .3s ease, border-color .3s ease;
}

.team-card:hover{
    transform:translateY(-8px);
    border-color:#65cfd3;
}

.avatar{
    width:72px;
    height:72px;
    margin:0 auto 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-weight:800;
    font-size:20px;
    color:white;
    background:linear-gradient(135deg,#19334f,#0f82dc);
}

.team-card h3{
    font-size:19px;
}

.team-card span{
    display:block;
    margin-top:6px;
    color:var(--text-2);
    font-size:14px;
}

/* ===== Contacto ===== */
.contact{
    display:grid;
    grid-template-columns:1fr 1.2fr;
    gap:50px;
    padding:60px 8% 100px;
    align-items:start;
}

.contact-info h2{
    font-size:30px;
    font-weight:800;
    letter-spacing:-.5px;
}

.contact-info > p{
    margin:16px 0 30px;
    color:var(--text-2);
    line-height:1.7;
}

.contact-list{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:22px;
    margin-bottom:30px;
}

.contact-list li{
    display:flex;
    gap:16px;
    align-items:flex-start;
}

.ci-icon{
    font-size:20px;
    width:44px;
    height:44px;
    flex:0 0 44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:var(--surface);
    border:1px solid var(--border);
    color:#0f82dc;
}

.contact-list strong{
    display:block;
    font-size:14px;
    color:var(--text);
    margin-bottom:2px;
}

.contact-list a,
.contact-list div span{
    color:var(--text-2);
    text-decoration:none;
    font-size:15px;
}

.contact-list a:hover{
    color:#0f82dc;
}

.contact-form{
    background:var(--surface-2);
    border:1px solid var(--border);
    border-radius:22px;
    padding:36px;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.field label{
    font-size:14px;
    font-weight:600;
    color:var(--text);
}

.field input,
.field select,
.field textarea{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:12px;
    padding:14px 16px;
    color:var(--text);
    font-family:inherit;
    font-size:15px;
    transition:border-color .25s ease, box-shadow .25s ease;
}

.field input::placeholder,
.field textarea::placeholder{
    color:var(--text-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus{
    outline:none;
    border-color:#0f82dc;
    box-shadow:0 0 0 3px #0f82dc33;
}

.field textarea{
    resize:vertical;
}

.field input.invalid,
.field textarea.invalid,
.field select.invalid{
    border-color:#ef4444;
    box-shadow:0 0 0 3px #ef444433;
}

.contact-form .primary{
    border:none;
    cursor:pointer;
    font-size:16px;
    font-family:inherit;
    text-align:center;
}

.contact-form .primary:disabled{
    opacity:.75;
    cursor:not-allowed;
}

.form-status{
    min-height:48px;
    padding:0;
    border-radius:12px;
    border:1px solid transparent;
    background:transparent;
    color:transparent;
    font-size:14px;
    font-weight:600;
    line-height:1.5;
    display:flex;
    align-items:center;
    gap:10px;
    transition:all .25s ease;
}

.form-status .status-icon{
    width:22px;
    height:22px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    flex:0 0 22px;
}

.form-status .status-text{
    flex:1;
}

.form-status:not(:empty){
    padding:12px 14px;
    background:#eef6fc;
    border-color:#cce6f8;
    color:#23455f;
    animation:status-pop .28s ease;
}

.form-status:not(:empty) .status-icon{
    background:#d8ebf9;
    color:#1d5f8a;
}

.form-status.ok{
    background:#ecfdf3;
    border-color:#bbf7d0;
    color:#0f5132;
}

.form-status.ok .status-icon{
    background:#d1fae5;
    color:#0f5132;
}

.form-status.error{
    background:#fef2f2;
    border-color:#fecaca;
    color:#991b1b;
}

.form-status.error .status-icon{
    background:#fee2e2;
    color:#991b1b;
}

@keyframes status-pop{
    from{ opacity:0; transform:translateY(4px); }
    to{ opacity:1; transform:translateY(0); }
}

/* ===== Animación de aparición ===== */
.reveal{
    opacity:0;
    transform:translateY(30px);
    transition:opacity .7s ease, transform .7s ease;
}

.reveal.show{
    opacity:1;
    transform:translateY(0);
}

/* El contenido del primer viewport no debe esperar al observer. */
.hero .reveal,
.page-hero.reveal{
    opacity:1;
    transform:none;
    transition:none;
}

@media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }

    .reveal,
    .reveal.show,
    .err-astronaut,
    .window,
    .whatsapp-float::before{
        animation:none !important;
        transition:none !important;
        transform:none !important;
        opacity:1;
    }
}

@supports (content-visibility: auto){
    .cards,
    .tech-grid,
    .steps,
    .team-grid,
    .faq-list{
        content-visibility:auto;
        contain-intrinsic-size:1px 620px;
    }
}

/* Aparición escalonada dentro de rejillas */
.stats > .reveal:nth-child(2),
.cards > .reveal:nth-child(2),
.tech-grid > .reveal:nth-child(2),
.steps > .reveal:nth-child(2){ transition-delay:.08s; }

.stats > .reveal:nth-child(3),
.cards > .reveal:nth-child(3),
.tech-grid > .reveal:nth-child(3),
.steps > .reveal:nth-child(3){ transition-delay:.16s; }

.stats > .reveal:nth-child(4),
.cards > .reveal:nth-child(4),
.tech-grid > .reveal:nth-child(4),
.steps > .reveal:nth-child(4){ transition-delay:.24s; }

.tech-grid > .reveal:nth-child(5){ transition-delay:.32s; }
.tech-grid > .reveal:nth-child(6){ transition-delay:.40s; }
.tech-grid > .reveal:nth-child(7){ transition-delay:.48s; }
.tech-grid > .reveal:nth-child(8){ transition-delay:.56s; }

/* ===== Página 404 ===== */
.error-404{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:60px 20px;
}

.error-404 .wrap{
    position:relative;
    z-index:2;
    max-width:640px;
}

.error-404 .logo{
    margin-bottom:30px;
}

.err-astronaut{
    display:inline-block;
    margin-bottom:14px;
    cursor:pointer;
    animation:err-float 5s ease-in-out infinite;
    filter:drop-shadow(0 16px 30px rgba(15,130,220,.28));
}

.err-astronaut svg{
    width:84px;
    height:84px;
    display:block;
}

@keyframes err-float{
    0%,100%{ transform:translateY(0) rotate(-6deg); }
    50%{ transform:translateY(-22px) rotate(6deg); }
}

.err-code{
    position:relative;
    font-size:clamp(110px,26vw,210px);
    font-weight:900;
    line-height:.9;
    letter-spacing:-6px;
    background:linear-gradient(135deg,#0f82dc,#65cfd3);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    user-select:none;
    cursor:pointer;
}

.err-code::before,
.err-code::after{
    content:"404";
    position:absolute;
    inset:0;
    opacity:0;
}

.err-code.glitch::before{
    animation:glitch1 .35s steps(2) 2;
    color:#ff4d6d;
    -webkit-text-fill-color:#ff4d6d;
}

.err-code.glitch::after{
    animation:glitch2 .35s steps(2) 2;
    color:#0f82dc;
    -webkit-text-fill-color:#0f82dc;
}

@keyframes glitch1{
    0%{ opacity:.8; transform:translate(0,0); }
    50%{ opacity:.8; transform:translate(-6px,3px); }
    100%{ opacity:0; transform:translate(0,0); }
}

@keyframes glitch2{
    0%{ opacity:.8; transform:translate(0,0); }
    50%{ opacity:.8; transform:translate(6px,-3px); }
    100%{ opacity:0; transform:translate(0,0); }
}

.error-404 h1{
    margin-top:10px;
    font-size:clamp(24px,5vw,38px);
    font-weight:800;
    letter-spacing:-1px;
    color:var(--text);
}

.error-404 h1 span{
    background:linear-gradient(90deg,#0f82dc,#65cfd3);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}

.err-text{
    margin:18px auto 0;
    color:var(--text-2);
    font-size:17px;
    line-height:1.6;
    max-width:480px;
}

.error-404 .buttons{
    justify-content:center;
    margin-top:32px;
}

/* ===== Preguntas frecuentes (FAQ) ===== */
.faq{
    padding:100px 8%;
}

.faq h2{
    text-align:center;
    font-size:40px;
    font-weight:800;
    letter-spacing:-1px;
}

.faq-list{
    max-width:760px;
    margin:48px auto 0;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.faq-item{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:16px;
    padding:0 22px;
    box-shadow:var(--shadow);
}

.faq-item summary{
    cursor:pointer;
    list-style:none;
    padding:20px 0;
    font-weight:700;
    color:var(--text);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
}

.faq-item summary::-webkit-details-marker{
    display:none;
}

.faq-item summary::after{
    content:"+";
    font-size:24px;
    line-height:1;
    color:#0f82dc;
    font-weight:700;
    transition:transform .25s ease;
}

.faq-item[open] summary::after{
    transform:rotate(45deg);
}

.faq-item p{
    padding:0 0 20px;
    color:var(--text-2);
    line-height:1.7;
}

/* ===== Botón flotante de WhatsApp ===== */
.whatsapp-float{
    position:fixed;
    right:24px;
    bottom:calc(24px + env(safe-area-inset-bottom,0px));
    z-index:200;
    width:58px;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#25d366;
    color:#fff;
    border-radius:50%;
    font-size:32px;
    text-decoration:none;
    box-shadow:0 10px 30px rgba(37,211,102,.45);
    transition:transform .25s ease, box-shadow .25s ease;
    transform:translateZ(0);
    will-change:transform;
    -webkit-backface-visibility:hidden;
    backface-visibility:hidden;
}

.whatsapp-float::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:50%;
    background:#25d366;
    z-index:-1;
    animation:wa-pulse 2.4s ease-out infinite;
}

.whatsapp-float:hover{
    transform:scale(1.08) translateY(-2px);
    box-shadow:0 14px 36px rgba(37,211,102,.55);
}

.whatsapp-float svg{
    width:30px;
    height:30px;
}

@keyframes wa-pulse{
    0%{ transform:scale(1); opacity:.5; }
    70%,100%{ transform:scale(1.9); opacity:0; }
}

/* ===== Responsive ===== */
@media(max-width:900px){

    .blur,
    .hero-glow{
        display:none;
    }

    .window{
        animation:none;
    }

    header{
        justify-content:center;
    }

    .menu-toggle{
        display:flex;
        position:absolute;
        right:8%;
        top:50%;
        transform:translateY(-50%);
        z-index:101;
    }

    nav{
        position:fixed;
        top:0;
        right:0;
        height:100vh;
        width:min(75%,300px);
        flex-direction:column;
        justify-content:center;
        gap:26px;
        background:rgba(255,255,255,.97);
        backdrop-filter:blur(16px);
        border-left:1px solid rgba(15,23,42,.08);
        transform:translateX(100%);
        transition:transform .35s ease;
        z-index:99;
    }

    nav.open{
        transform:translateX(0);
    }

    nav a{
        font-size:20px;
    }

    nav a.active::after{
        display:none;
    }

    .hero{
        flex-direction:column;
        text-align:center;
        padding-top:50px;
        gap:50px;
    }

    .services,
    .tech,
    .process,
    .values,
    .team,
    .about,
    .faq,
    .cta{
        padding-left:6%;
        padding-right:6%;
    }

    .page-hero{
        padding:60px 6% 28px;
    }

    .page-hero h1{
        font-size:36px;
    }

    .page-hero p{
        font-size:16px;
    }

    .hero-trust{
        justify-content:center;
    }

    .buttons{
        justify-content:center;
        gap:14px;
        margin-top:20px;
    }

    .window{
        width:100%;
        max-width:480px;
    }

    .stats{
        grid-template-columns:1fr 1fr;
    }

    .cards{
        grid-template-columns:1fr 1fr;
    }

    .package-card{
        min-height:auto;
    }

    .package-card > p{
        min-height:0;
    }

    .tech{
        padding-top:78px;
        padding-bottom:78px;
    }

    .tech-grid{
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:14px;
    }

    .tech-item{
        min-height:96px;
        padding:20px 12px;
    }

    .tech-item i,
    .tech-item .laravel-ico,
    .tech-item img{
        width:38px;
        height:38px;
        font-size:38px;
    }

    .about{
        grid-template-columns:1fr;
        gap:40px;
    }

    .about-grid{
        grid-template-columns:1fr 1fr;
    }

    .mini-card{
        padding:24px 18px;
    }

    .about-text h2{
        font-size:32px;
    }

    .hero h1{
        font-size:44px;
    }

    .page-hero h1{
        font-size:40px;
    }

    .cta h2{
        font-size:32px;
    }

    .steps{
        grid-template-columns:1fr 1fr;
    }

    .team-grid{
        grid-template-columns:1fr;
    }

    .contact{
        grid-template-columns:1fr;
        gap:40px;
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
        gap:34px;
    }

    .whatsapp-float{
        right:18px;
        bottom:calc(18px + env(safe-area-inset-bottom,0px));
        width:52px;
        height:52px;
        font-size:29px;
    }
}

@media(max-width:560px){

    header{
        padding:18px 6%;
    }

    .logo{
        font-size:18px;
    }

    .logo img{
        height:34px;
    }

    .menu-toggle{
        right:6%;
    }

    .hero{
        padding:34px 6% 56px;
        gap:34px;
    }

    .hero h1{
        font-size:36px;
        line-height:1.08;
    }

    .hero p{
        font-size:16px;
        margin:22px 0;
    }

    .buttons{
        gap:12px;
        margin-top:18px;
    }

    .buttons{
        flex-direction:column;
        align-items:stretch;
        gap:14px;
        margin-top:20px;
    }

    .buttons a{
        width:100%;
        text-align:center;
        padding-top:15px;
        padding-bottom:15px;
    }

    .hero-trust{
        gap:12px 18px;
        font-size:13px;
    }

    .window{
        max-width:100%;
    }

    .window pre{
        font-size:14px;
        line-height:1.7;
        padding:18px;
    }

    .services,
    .tech,
    .process,
    .values,
    .team,
    .about,
    .faq,
    .cta{
        padding-top:72px;
        padding-bottom:72px;
        padding-left:6%;
        padding-right:6%;
    }

    .page-hero{
        padding:52px 6% 20px;
    }

    .page-hero h1{
        font-size:32px;
    }

    .page-hero p{
        font-size:15px;
        margin-top:16px;
    }

    .stats,
    .cards{
        grid-template-columns:1fr;
    }

    .services#paquetes .cards{
        gap:12px;
    }

    .package-card{
        padding:20px 16px;
    }

    .package-top{
        gap:1px;
        margin-bottom:6px;
    }

    .package-badge{
        padding:5px 9px;
        font-size:10px;
    }

    .package-top h3{
        font-size:17px;
    }

    .package-price{
        font-size:13px;
    }

    .package-card > p{
        font-size:13px;
        line-height:1.35;
    }

    .package-card .card-list{
        margin-top:12px;
        padding-top:12px;
        gap:6px;
    }

    .package-card .card-list li:nth-child(n+4){
        display:none;
    }

    .package-card .card-list li{
        font-size:12px;
        line-height:1.35;
    }

    .tech{
        padding-top:72px;
        padding-bottom:72px;
        padding-left:6%;
        padding-right:6%;
    }

    .tech-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:12px;
        margin-top:34px;
    }

    .tech-item{
        padding:18px 10px;
        min-height:88px;
        border-radius:16px;
        gap:8px;
    }

    .tech-item i,
    .tech-item .laravel-ico,
    .tech-item img{
        width:32px;
        height:32px;
        font-size:32px;
    }

    .tech-item span{
        font-size:12px;
    }

    .about-grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .mini-card{
        padding:22px 18px;
    }

    .mini-card h3{
        font-size:30px;
    }

    .mini-card p{
        font-size:13px;
    }

    .card,
    .step,
    .team-card,
    .contact-form,
    .contact-info{
        padding:26px 20px;
    }

    .section-tag{
        margin-bottom:10px;
        font-size:12px;
        letter-spacing:1.6px;
    }

    .services h2,
    .tech h2,
    .process h2,
    .values h2,
    .team h2,
    .faq h2,
    .about-text h2{
        font-size:30px;
    }

    .steps{
        grid-template-columns:1fr;
        gap:18px;
    }

    .footer-grid{
        grid-template-columns:1fr;
        gap:28px;
    }

    .footer-bottom{
        flex-direction:column;
        text-align:center;
    }

    .cta-inner{
        padding:44px 22px;
    }

    .cta h2{
        font-size:28px;
    }

    .cta p{
        font-size:16px;
        margin:14px auto 28px;
    }

    .whatsapp-float{
        right:14px;
        bottom:calc(14px + env(safe-area-inset-bottom,0px));
        width:48px;
        height:48px;
        font-size:26px;
    }
}