:root {
    --bg: #0b1220;
    --card: #0f172a;
    --muted: #9fb3d1;
    --text: #eef3ff;
    --brand: #0b2a6b; /* azul marino */
    --brand-2: #3aa0ff; /* celeste */
    --ring: rgba(58,160,255,.25);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    height: 100%
}

body {
    font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
    background: radial-gradient(1200px 600px at 70% -10%, rgba(58,160,255,0.14), transparent), var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--brand-2);
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: min(1100px,92%);
    margin: 0 auto
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: linear-gradient(to bottom, rgba(11,18,32,.9), rgba(11,18,32,.6));
    border-bottom: 1px solid rgba(148,163,184,.15);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .3px
}

    .logo .mark {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: block;
        object-fit: contain;
        background: transparent;
        box-shadow: 0 8px 30px rgba(58,160,255,.25)
    }

nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    padding: 0;
    margin: 0
}

.nav a {
    color: var(--text);
    opacity: .9;
    font-weight: 600
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.25);
    background: rgba(2,6,23,.5);
    color: var(--text);
    font-weight: 700
}

    .btn.primary {
        background: linear-gradient(135deg,var(--brand),var(--brand-2));
        border: none;
        color: #0b1220;
        box-shadow: 0 10px 30px var(--ring)
    }

    .btn:hover {
        transform: translateY(-1px);
        filter: saturate(1.1)
    }

/* hero */
.hero {
    padding: 86px 0 40px;
    position: relative;
    overflow: hidden
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center
}

.kicker {
    color: var(--brand);
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px
}

h1 {
    font-size: clamp(32px,4vw,46px);
    line-height: 1.1;
    margin: 10px 0 12px
}

.lead {
    color: var(--muted);
    font-size: clamp(16px,2vw,18px);
    margin-bottom: 20px
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px
}

.card {
    background: linear-gradient(180deg, rgba(15,26,51,.85), rgba(15,26,51,.6));
    border: 1px solid rgba(148,163,184,.15);
    border-radius: 16px;
    padding: 18px
}

    .card h3 {
        margin: 8px 0;
        font-size: 18px;
        background: linear-gradient(135deg, var(--brand-2), var(--brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent
    }

    .card p {
        margin: 4px 0 0;
        color: var(--muted);
        font-size: 14px
    }

/* sections */
section {
    padding: 72px 0
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px
}

    .section-head h2 {
        margin: 0;
        font-size: clamp(26px,3.2vw,36px);
        background: linear-gradient(135deg,var(--brand-2),var(--brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent
    }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px
}

.service {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,.15);
    background: rgba(2,6,23,.35)
}

    .service h3 {
        margin: 6px 0 8px;
        font-size: 18px;
        background: linear-gradient(135deg,var(--brand-2),var(--brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent
    }

    .service p {
        margin: 0;
        color: var(--muted);
        font-size: 14px
    }

/* showcase */
.show {
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,.15);
    overflow: hidden;
    background: rgba(2,6,23,.35)
}

    .show img {
        width: 100%;
        height: 220px;
        object-fit: cover
    }

    .show .meta {
        padding: 14px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between
    }

/* about/contact/footer */
.about {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 26px
}

    .about .bubble {
        background: linear-gradient(120deg, rgba(58,160,255,.18), rgba(58,160,255,.06));
        border: 1px solid rgba(58,160,255,.25);
        border-radius: 18px;
        padding: 18px
    }

    .about p {
        color: var(--muted)
    }

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.field {
    display: grid;
    gap: 6px
}

.input, textarea {
    background: rgba(2,6,23,.5);
    border: 1px solid rgba(148,163,184,.25);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 12px;
    outline: none
}

    .input:focus, textarea:focus {
        box-shadow: 0 0 0 4px var(--ring);
        border-color: var(--brand-2)
    }

textarea {
    min-height: 120px;
    resize: vertical
}

footer {
    padding: 30px 0;
    border-top: 1px solid rgba(148,163,184,.15);
    color: var(--muted)
}

/* responsive */
@media (max-width:960px) {
    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero-cards {
        grid-template-columns: 1fr 1fr
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr
    }

    .about {
        grid-template-columns: 1fr
    }

    .contact {
        grid-template-columns: 1fr
    }
}

@media (max-width:620px) {
    nav ul {
        display: none
    }

    .hero-cards {
        grid-template-columns: 1fr
    }

    .grid-3 {
        grid-template-columns: 1fr
    }
}

/* WhatsApp */
.whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #22c55e;
    box-shadow: 0 12px 30px rgba(34,197,94,.45)
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0
}
/* === Fondo único para CONTENIDO + FOOTER (dejando el header igual) === */

/* 1) Fondo global que verán el contenido y el footer */
html, body {
    min-height: 100%;
}

body {
    /* mismo tono que usamos en el contenido */
    background: linear-gradient(180deg, #071835 0%, #06142e 100%) !important;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 2) El header se queda tal cual (NO lo tocamos) */
header {
    /* tu estilo actual permanece; esta línea solo asegura prioridad para no heredarlo del body */
    background: linear-gradient(to bottom, rgba(11,18,32,.9), rgba(11,18,32,.6)) !important;
}

/* 3) Todo lo demás no debe pintar otro fondo: que se vea el del body */
main.hero,
section,
footer {
    background: transparent !important;
}

/* 4) Por si alguna sección corta el fondo, extendemos un “tapiz” debajo de todo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #071835 0%, #06142e 100%);
}

/* 5) Un pequeño colchón al final por si la página es muy corta */
footer {
    margin-top: 0;
}
/* ====== Menú hamburguesa (mobile) ====== */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(2,6,23,.55);
    border: 1px solid rgba(148,163,184,.25);
    color: var(--text);
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

    .menu-toggle:hover {
        filter: saturate(1.05);
        transform: translateY(-1px);
    }

    .menu-toggle .menu-text {
        font-weight: 600;
        font-size: 14px;
    }

@media (max-width:768px) {
    /* mostramos el botón y convertimos el menú en panel */
    .menu-toggle {
        display: inline-flex;
    }

    header .nav {
        position: relative;
    }

    header nav ul {
        position: absolute;
        top: 56px; /* debajo del header */
        right: 0;
        display: none; /* cerrado por defecto */
        flex-direction: column;
        gap: 10px;
        min-width: 220px;
        padding: 12px;
        background: rgba(11,18,32,.98);
        border: 1px solid rgba(148,163,184,.18);
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0,0,0,.35);
    }

        header nav ul.open {
            display: flex;
        }

        header nav ul a {
            color: #eaf2ff;
            font-weight: 600;
            padding: 8px 10px;
            border-radius: 8px;
        }

            header nav ul a:hover {
                background: rgba(148,163,184,.12);
            }

    /* Opcional: ocultar el botón "Cotizar ahora" en móvil si ocupa mucho */
    header .btn {
        display: none;
    }
}

/* Evita que otra regla oculte el menú en móvil */
@media (max-width:620px) {
    nav ul {
        display: flex !important;
    }
    /* se controla con la clase .open */
}
/* ===== Fix layout formulario de contacto ===== */
.contact{
  align-items: start;                 /* que no intente igualar alturas */
}

.contact form.card{
  display: grid;                      /* fuerza un flujo vertical prolijo */
  gap: 12px;
}

.contact form.card .field{ display: grid; gap: 6px; }

.contact form.card .input,
.contact form.card textarea{
  width: 100%;
}

/* El botón NO debe ocupar toda la celda del grid */
.contact form.card .btn{
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  align-self: start;                  /* se queda arriba a la izquierda */
  justify-self: start;
  padding: 10px 16px;                 /* tamaño normal */
  line-height: 1.2;
}

/* En móviles, el formulario ocupa toda la fila arriba y el bloque de datos abajo */
@media (max-width: 960px){
  .contact{ grid-template-columns: 1fr; }
}
/* === MENÚ MÓVIL – oculto por defecto, visible solo con .open === */
@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
    }

    header .nav {
        position: relative;
        z-index: 60;
    }

    /* Oculto por defecto en móvil */
    header nav ul {
        display: none;
        position: absolute;
        top: 56px; /* debajo del header */
        right: 0;
        flex-direction: column;
        gap: 10px;
        min-width: 220px;
        padding: 12px;
        background: rgba(11,18,32,.98);
        border: 1px solid rgba(148,163,184,.18);
        border-radius: 12px;
        box-shadow: 0 12px 28px rgba(0,0,0,.35);
    }

        /* Visible solo cuando JS agrega .open */
        header nav ul.open {
            display: flex;
        }

        header nav ul a {
            color: #eaf2ff;
            font-weight: 600;
            padding: 8px 10px;
            border-radius: 8px;
        }

            header nav ul a:hover {
                background: rgba(148,163,184,.12);
            }

    /* (Opcional) ocultar el botón "Cotizar ahora" en móvil */
    header .btn {
        display: none;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none !important;
    }
    /* la apertura la controla .open */
}
/* Oculto en móvil por defecto */
@media (max-width:768px){
  nav ul{ display:none !important; }   /* se oculta con !important */

 
  header nav ul.open{ display:flex !important; }
}
