/* ========================================
   RESET Y ESTILOS BASE
   ======================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #020810;
    color: #f4f8ff;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   VARIABLES (ROOT)
   ======================================== */
:root {
    --blue: #078cff;
    --cyan: #15d0ff;
    --green: #15d779;
    --line: #17354d;
    --muted: #8da2b8;
}

/* ========================================
   CONTENEDOR Y UTILIDADES
   ======================================== */
.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #020810dc;
    border-bottom: 1px solid #12304a;
    backdrop-filter: blur(18px);
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* --- LOGO CORREGIDO --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #f4f8ff;
}

/* Eliminamos el tamaño fijo y fondo del span para que la imagen fluya */
.logo span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    border-radius: 0;
    margin-right: 0;
}

.logo img {
    width: 80px;
    height: auto;
    display: block;
}

.logo b {
    color: #1bc8ff;
}

/* --- Menú de navegación --- */
.nav nav {
    display: flex;
    gap: 27px;
    color: #8da2b8;
    font-size: 11px;
}

.nav nav a:hover {
    color: white;
}

.navbtn {
    border: 1px solid #24445e;
    border-radius: 9px;
    padding: 10px 15px;
    font-size: 10px;
}

/* ========================================
   HERO / SECCIÓN PRINCIPAL
   ======================================== */
.hero {
    min-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 75% 45%, #007dff2c, transparent 29%),
                linear-gradient(#020810, #03101b);
}

/* Fondo de cuadrícula */
.gridbg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#158bff12 1px, transparent 1px),
        linear-gradient(90deg, #158bff12 1px, transparent 1px);
    background-size: 55px 55px;
    -webkit-mask-image: linear-gradient(#000, transparent 92%);
    mask-image: linear-gradient(#000, transparent 92%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.eyebrow {
    color: #24c8ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 9px;
    font-weight: 800;
    margin-bottom: 17px;
}

.hero h1 {
    font-size: clamp(50px, 6.3vw, 84px);
    line-height: 0.94;
    letter-spacing: -4px;
    margin: 0;
}

.hero h1 span,
.head h2 span,
.two h2 span,
.showcase h2 span,
.ctabox h2 span {
    background: linear-gradient(90deg, #fff, #21bfff, #11d9e8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy > p {
    max-width: 590px;
    color: #91a5b9;
    font-size: 16px;
    margin: 28px 0;
}

/* Botones */
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    border-radius: 9px;
    padding: 14px 19px;
    font-size: 10px;
    font-weight: 800;
    transition: 0.25s;
}

.btn:hover {
    transform: translateY(-2px);
}

.primary {
    background: linear-gradient(135deg, #078cff, #09bfe9);
    box-shadow: 0 12px 35px #008cff2d;
}

.outline {
    border: 1px solid #2a4962;
}

.whatsapp,
.btn.whatsapp {
    background: #16c965;
    box-shadow: 0 12px 35px #16c96530;
}

/* Prueba social (proof) */
.proof {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.proof div {
    border-left: 1px solid #25425b;
    padding-left: 12px;
}

.proof b,
.proof small {
    display: block;
}

.proof b {
    font-size: 9px;
}

.proof small {
    font-size: 8px;
    color: #71869c;
}

/* ========================================
   VISUAL: LAPTOP, TELÉFONO Y FLOTANTES
   ======================================== */
.visual {
    height: 550px;
    position: relative;
    display: grid;
    place-items: center;
}

.status,
.float {
    position: absolute;
    border: 1px solid #254a63;
    background: #06121de8;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 7px;
    z-index: 3;
}

.status {
    right: 8px;
    top: 35px;
    color: #7992a8;
}

.status i {
    color: #15d779;
    font-style: normal;
}

.float {
    bottom: 65px;
    left: 0;
}

.growth {
     bottom: 20px;   /* en lugar de top */
    left: 20px;     /* en lugar de right */
    right: auto;
    top: auto;
}

.growth b {
    color: #17caff;
}

.growth small {
    display: block;
    color: #7890a5;
}

/* Laptop */
.laptop {
    width: 500px;
    filter: drop-shadow(0 35px 45px #000c);
}

.screen {
    height: 305px;
    background: #08131e;
    border: 3px solid #385267;
    border-radius: 13px 13px 5px 5px;
    padding: 7px;
}

.browser {
    height: 22px;
    color: #698198;
    font-size: 7px;
}

.mock {
    height: 267px;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(135deg, #07111b, #10283a);
}

.mocknav {
    padding: 13px;
    font-size: 8px;
    border-bottom: 1px solid #fff1;
    color: #13c9ff;
}

.mocknav b {
    color: white;
}

.mocknav span {
    float: right;
    color: #829bb0;
}

.mockbody {
    height: 100%;
    padding: 45px 30px;
    background: radial-gradient(circle at 80% 50%, #00a9ff36, transparent 45%);
}

.mockbody small {
    font-size: 7px;
}

.mockbody h3 {
    font-size: 25px;
    line-height: 1.05;
    margin: 9px 0;
}

.mockbody button,
.preview button {
    border: 0;
    background: #0aa8ff;
    color: white;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 8px;
}

.base {
    width: 570px;
    height: 18px;
    margin-left: -35px;
    background: linear-gradient(#6b8294, #253c4e);
    clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
}

/* Teléfono */
.phone {
    position: absolute;
    width: 115px;
    height: 235px;
    right: 0;
    bottom: 38px;
    background: #07101a;
    border: 4px solid #536c7e;
    border-radius: 19px;
    padding: 6px;
    box-shadow: 0 20px 45px #000;
}

.phonescreen {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(160deg, #edf7fc, #b6d9eb);
    color: #0b2335;
    padding: 10px;
}

.phonescreen small {
    font-size: 6px;
}

.phonescreen > b {
    display: block;
    color: #078cff;
    font-size: 8px;
    margin: 15px 0;
}

.phoneimg {
    height: 65px;
    border-radius: 7px;
    background: linear-gradient(135deg, #0b3150, #0aa7dd);
}

.phonescreen h4 {
    font-size: 10px;
    line-height: 1.1;
}

.phonescreen button {
    border: 0;
    background: #078cff;
    color: white;
    border-radius: 4px;
    font-size: 7px;
    padding: 6px;
}

/* ========================================
   TICKER (ESTILO ORIGINAL)
   ======================================== */
.ticker {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #14314a;
    border-bottom: 1px solid #14314a;
    color: #536d83;
    font-size: 8px;
    letter-spacing: 2px;
    background: transparent; /* o el color que tuviera antes */
}

/* ========================================
   SECCIONES GENÉRICAS
   ======================================== */
.section {
    padding: 110px 0;
}

.dark {
    background: #06101a;
    border-block: 1px solid #102b42;
}

.head {
    max-width: 760px;
    margin-bottom: 50px;
}

.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.head h2,
.two h2,
.showcase h2,
.ctabox h2 {
    font-size: clamp(38px, 5vw, 61px);
    line-height: 1.02;
    letter-spacing: -3px;
    margin: 0;
}

.head p,
.two p,
.showcase p {
    color: var(--muted);
    font-size: 13px;
}

/* ========================================
   SERVICIOS (CARDS)
   ======================================== */
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.card {
    border: 1px solid #19374f;
    border-radius: 13px;
    background: linear-gradient(160deg, #071622, #040c14);
    overflow: hidden;
    min-height: 390px;
    transition: 0.3s;
    padding-bottom: 22px;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #078cff88;
}

.card .art {
    height: 155px;
    border-bottom: 1px solid #17354d;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, #078cff30, transparent 58%), #07131e;
}

/* ===== IMÁGENES DENTRO DE LAS CARDS ===== */
.card .art img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* recorta la imagen para llenar el espacio */
    display: block;
    overflow: hidden;
}

/* Si quieres que la imagen tenga un ligero efecto al pasar el mouse */
.card .art img {
    transition: transform 0.3s ease;
}

.card:hover .art img {
    transform: scale(1.03);
}

.art > div {
    width: 175px;
    height: 88px;
    border: 2px solid #456479;
    border-radius: 7px;
    background: #07131d;
    box-shadow: 0 0 30px #008cff22;
}

.phoneart > div {
    width: 62px;
    height: 108px;
    border-radius: 11px;
}

.phoneart > div:after {
    content: "";
    display: block;
    height: 30px;
    margin: 20px 8px;
    background: #0caee8;
    border-radius: 4px;
}

.system > div {
    height: 90px;
    padding: 13px;
}

.system > div:after {
    content: "▰\A ▰▰\A ▰▰▰";
    white-space: pre;
    line-height: 18px;
    color: #12caff;
    font-size: 13px;
}

.local b {
    font-size: 65px;
    color: #0cc9ff;
    text-shadow: 0 0 30px #0cc9ff77;
}

.card > small,
.card h3,
.card p,
.card a {
    margin-left: 22px;
    margin-right: 22px;
}

.card > small {
    display: block;
    color: #557089;
    font-size: 8px;
    margin-top: 18px;
}

.card h3 {
    font-size: 17px;
    margin-top: 4px;
    margin-bottom: 7px;
}

.card p {
    font-size: 10px;
    color: #8197ab;
}

.card a,
.link {
    display: block;
    color: #18c9ff;
    font-size: 10px;
    font-weight: 800;
    margin-top: 18px;
}

/* Métricas */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #17364e;
    border-radius: 10px;
    background: #06121d;
    margin-top: 14px;
}

.metrics div {
    padding: 20px 25px;
    border-right: 1px solid #17364e;
    font-size: 9px;
    color: #8299ae;
}

.metrics div:last-child {
    border-right: none;
}

.metrics b {
    font-size: 21px;
    color: #12caff;
    margin-right: 12px;
}

/* ========================================
   DOS COLUMNAS (NOSOTROS / SHOWCASE)
   ======================================== */
.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.two > div > p {
    max-width: 530px;
}

.principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.principles div {
    padding: 25px 18px;
    border-bottom: 1px solid #17354d;
}

.principles div:nth-child(odd) {
    border-right: 1px solid #17354d;
}

.principles b {
    font-size: 9px;
    color: #15c7ff;
}

.principles h3 {
    font-size: 18px;
    margin: 12px 0 4px;
}

.principles p {
    font-size: 10px;
    margin: 0;
}

/* ========================================
   PROYECTOS (PORTAFOLIO)
   ======================================== */
.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.project {
    border: 1px solid #19374f;
    border-radius: 13px;
    background: #06121d;
    overflow: hidden;
    transition: 0.3s;
}

.project:hover {
    transform: translateY(-6px);
    border-color: #078cff88;
}

.preview {
    height: 270px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.restaurant {
    background: linear-gradient(135deg, #32190d, #11161b);
}

.clinic {
    background: linear-gradient(135deg, #0a3441, #0b1821);
}

.hardware {
    background: linear-gradient(135deg, #292313, #10161a);
}

.preview small {
    color: #17c9ff;
    font-size: 7px;
    letter-spacing: 2px;
}

.preview strong {
    font-size: 25px;
    line-height: 1.02;
    margin: 10px 0 16px;
}

.preview button {
    align-self: flex-start;
}

.projectcopy {
    padding: 20px 22px 25px;
}

.projectcopy small {
    font-size: 8px;
    color: #17c8ff;
    letter-spacing: 2px;
}

.projectcopy h3 {
    font-size: 20px;
    margin: 5px 0;
}

.projectcopy p {
    font-size: 10px;
    color: #8196aa;
    min-height: 30px;
}

.projectcopy a {
    font-size: 10px;
    color: #18c9ff;
    font-weight: 800;
}

/* ========================================
   SHOWCASE (PANEL DESTACADO)
   ======================================== */
.showcase ul {
    list-style: none;
    padding: 0;
    color: #b9c9d8;
    font-size: 10px;
    line-height: 2.3;
}

.fake-dashboard {
    border: 1px solid #1a4260;
    border-radius: 15px;
    overflow: hidden;
    background: #03101b;
    box-shadow: 0 30px 80px #000b;
}

.fake-dashboard > div {
    padding: 11px 15px;
    border-bottom: 1px solid #17354d;
    color: #5e7b93;
    font-size: 7px;
    letter-spacing: 2px;
}

.fake-dashboard section {
    height: 360px;
    padding: 60px 45px;
    background: radial-gradient(circle at 75% 45%, #078cff35, transparent 35%),
                linear-gradient(145deg, #061a29, #030b12);
}

.fake-dashboard section span,
.fake-dashboard section i {
    display: block;
    color: #16c9ff;
    font-size: 9px;
    letter-spacing: 2px;
}

.fake-dashboard section b {
    display: block;
    font-size: 44px;
    line-height: 1;
    margin: 18px 0;
}

/* ========================================
   PROCESO
   ======================================== */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #17354d;
}

.process > div {
    padding: 25px 20px;
    border-bottom: 1px solid #17354d;
}

.process > div + div {
    border-left: 1px solid #17354d;
}

.process b {
    color: #17c8ff;
    font-size: 9px;
}

.process h3 {
    font-size: 19px;
    margin: 28px 0 5px;
}

.process p {
    font-size: 10px;
    color: #8196aa;
}

/* ========================================
   PRECIOS / PLANES
   ======================================== */
.prices {
    max-width: 850px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.price {
    position: relative;
    border: 1px solid #1a3850;
    border-radius: 14px;
    background: #06121d;
    padding: 32px;
}

.premium {
    border-color: #078bdf;
    box-shadow: 0 30px 70px #007dff14;
}

.price > small {
    color: #16c9ff;
    letter-spacing: 2px;
    font-size: 9px;
    font-weight: 800;
}

.price h3 {
    font-size: 57px;
    letter-spacing: -2px;
    margin: 9px 0;
}

.price p {
    font-size: 11px;
    color: #8298ad;
    min-height: 45px;
}

.price ul {
    list-style: none;
    border-top: 1px solid #17354d;
    padding: 15px 0;
    margin: 15px 0;
}

.price li {
    font-size: 10px;
    color: #bdcad6;
    margin: 9px 0;
}

.price li:before {
    content: "✓";
    color: #18d89b;
    margin-right: 8px;
}

.price label {
    position: absolute;
    right: 15px;
    top: 15px;
    background: #078cff;
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 7px;
    font-weight: 900;
}

/* ========================================
   PREGUNTAS FRECUENTES (FAQ)
   ======================================== */
.faq {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
}

.faqitems details {
    border-bottom: 1px solid #19364d;
    padding: 18px 0;
}

.faqitems summary {
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 700;
}

.faqitems summary::-webkit-details-marker {
    display: none;
}

.faqitems summary:after {
    content: '+';
    float: right;
    color: #15c8ff;
    font-size: 16px;
}

.faqitems details[open] summary:after {
    content: '−';
}

.faqitems p {
    color: #8197ab;
    font-size: 10px;
}

/* ========================================
   LLAMADA A LA ACCIÓN (CTA)
   ======================================== */
.cta {
    padding: 95px 0;
    background: radial-gradient(circle at 70% 50%, #078cff28, transparent 38%), #020911;
}

.ctabox {
    display: grid;
    grid-template-columns: 1fr 0.65fr;
    gap: 70px;
    align-items: end;
    border: 1px solid #1a4260;
    border-radius: 17px;
    padding: 58px;
    background: linear-gradient(135deg, #061522, #030b12);
}

.ctabox p {
    font-size: 12px;
    color: #8da2b7;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 38px 0;
    border-top: 1px solid #14304a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p,
.footer small {
    font-size: 9px;
    color: #60788f;
}

/* ========================================
   ANIMACIONES (REVEAL)
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.7s;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.delay {
    transition-delay: 0.12s;
}

/* ========================================
   RESPONSIVE / MEDIA QUERIES
   ======================================== */

/* --- Tablets y pantallas medianas --- */
@media (max-width: 950px) {
    .nav nav {
        display: none;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-grid,
    .two,
    .faq,
    .ctabox {
        grid-template-columns: 1fr;
    }

    .visual {
        height: 470px;
    }

    .services,
    .projects {
        grid-template-columns: 1fr 1fr;
    }

    .process,
    .metrics {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Móviles --- */
@media (max-width: 600px) {
    .navbtn {
        display: none;
    }

    .hero h1 {
        letter-spacing: -2.5px;
    }

    .hero-copy > p {
        font-size: 15px;
    }

    .visual {
        height: 360px;
    }

    .laptop {
        width: 335px;
    }

    .screen {
        height: 210px;
    }

    .mock {
        height: 177px;
    }

    .mockbody {
        padding: 25px 18px;
    }

    .mockbody h3 {
        font-size: 15px;
    }

    .base {
        width: 385px;
    }

    .phone {
        width: 78px;
        height: 165px;
    }

    .float {
        display: none;
    }

    .services,
    .projects,
    .prices,
    .process,
    .metrics {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 80px 0;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ctabox {
        padding: 32px 24px;
    }

    .fake-dashboard section {
        height: 280px;
        padding: 40px 25px;
    }

    .fake-dashboard section b {
        font-size: 32px;
    }

    /* Ajuste del logo en móvil */
    .logo img {
        width: 55px;
    }

    .logo {
        gap: 6px;
        font-size: 11px;
    }
}

/* ========================================
   FORMULARIO DE CONTACTO
   ======================================== */
.contact-form {
    margin-top: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: #16c9ff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    background: #06121d;
    border: 1px solid #1a3850;
    border-radius: 10px;
    padding: 14px 16px;
    color: #f4f8ff;
    font-family: inherit;
    font-size: 13px;
    transition: 0.25s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #078cff;
    box-shadow: 0 0 0 3px rgba(7, 140, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.char-count {
    font-size: 10px;
    color: #536d83;
    text-align: right;
}

/* Dropzone de archivos */
.file-drop {
    border: 2px dashed #1a3850;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
    background: #06121d;
}

.file-drop:hover,
.file-drop.dragover {
    border-color: #078cff;
    background: #07182a;
}

.file-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #8da2b8;
    font-size: 12px;
}

.file-icon {
    font-size: 26px;
    opacity: 0.8;
}

.file-inner small {
    font-size: 10px;
    color: #536d83;
}

.file-drop.has-file {
    border-color: #15d779;
    background: rgba(21, 215, 121, 0.05);
}

.file-drop.has-file .file-inner {
    color: #15d779;
}

.remove-file {
    background: transparent;
    border: none;
    color: #ff6b6b;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    padding: 4px 0;
    margin-top: 4px;
}

.remove-file:hover {
    text-decoration: underline;
}

/* Botón */
.submit-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 12px;
    cursor: pointer;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
    min-height: 18px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}