/* ==================================================================
   Urbanizando — Hoja de estilos
   Paleta tomada del logo: azul #0064A2, celeste #5BA4C5, blanco, texto negro.
   Tipografía: Poppins (títulos) + Nunito Sans (cuerpo).
   ================================================================== */

:root {
    --azul:        #0064A2;
    --azul-osc:    #003E66;
    --azul-claro:  #5BA4C5;
    --celeste-bg:  #EAF3FA;
    --celeste-bg2: #DCEAF4;
    --blanco:      #FFFFFF;
    --negro:       #1A1A1A;
    --gris:        #5A6B78;
    --linea:       #DCE6EF;

    --sombra:      0 10px 30px rgba(0, 60, 102, 0.10);
    --sombra-sm:   0 4px 14px rgba(0, 60, 102, 0.08);
    --radio:       16px;
    --radio-sm:    10px;
    --ancho:       1140px;

    --fuente-titulo: 'Poppins', system-ui, sans-serif;
    --fuente-texto:  'Nunito Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--fuente-texto);
    color: var(--negro);
    background: var(--blanco);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--fuente-titulo); color: var(--azul-osc); line-height: 1.2; font-weight: 600; }
a { color: var(--azul); text-decoration: none; }
img { max-width: 100%; display: block; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }

/* ---- Marcador tipo "techo" del logo, reutilizado como firma visual ---- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--fuente-titulo); font-weight: 600; font-size: .82rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--azul);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: ""; width: 22px; height: 12px;
    background: var(--azul-claro);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M2 11 L11 2 L20 11' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M2 11 L11 2 L20 11' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ===================== ENCABEZADO ===================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--linea);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 40px; height: 40px; }
.logo span { font-family: var(--fuente-titulo); font-weight: 600; font-size: 1.35rem; color: var(--azul-osc); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--negro); font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--azul); }

.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    font-family: var(--fuente-titulo); font-weight: 600; font-size: .95rem;
    padding: 12px 22px; border-radius: 999px; cursor: pointer; border: 2px solid var(--azul);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primario { background: var(--azul); color: var(--blanco); }
.btn-primario:hover { background: var(--azul-osc); border-color: var(--azul-osc); transform: translateY(-2px); box-shadow: var(--sombra-sm); }
.btn-borde { background: transparent; color: var(--azul); }
.btn-borde:hover { background: var(--azul); color: var(--blanco); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--azul-osc); margin: 5px 0; border-radius: 2px; }

/* ===================== HÉROE ===================== */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(120% 90% at 85% -10%, rgba(91,164,197,.28), transparent 55%),
        linear-gradient(180deg, var(--celeste-bg) 0%, #fff 100%);
    padding: 84px 0 70px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; }
.hero h1 .resalte { color: var(--azul); }
.hero p.lead { font-size: 1.18rem; color: var(--gris); margin: 20px 0 30px; max-width: 34ch; }
.hero-acciones { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--azul-osc); font-size: .95rem; }
.hero-badge svg { width: 22px; height: 22px; color: var(--azul); flex: 0 0 auto; }

.hero-visual { position: relative; }
.hero-card {
    background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra);
    border: 1px solid var(--linea); padding: 26px;
}

/* ===================== SECCIONES ===================== */
section { padding: 78px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.section-head p { color: var(--gris); margin-top: 12px; font-size: 1.08rem; }
.bg-celeste { background: var(--celeste-bg); }

/* ---- FLUJO DE 4 PASOS (Tercerización integral) ---- */
.flujo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.flujo-paso {
    position: relative; background: var(--blanco); border: 1px solid var(--linea);
    border-radius: var(--radio); padding: 30px 22px; text-align: center; z-index: 2;
    transition: transform .18s ease, box-shadow .18s ease;
}
.flujo-paso:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.flujo-num {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 34px; border-radius: 50%; background: var(--azul); color: #fff;
    font-family: var(--fuente-titulo); font-weight: 600; display: grid; place-items: center; font-size: .95rem;
    box-shadow: 0 4px 10px rgba(0,60,102,.25);
}
.flujo-icono {
    width: 74px; height: 74px; margin: 8px auto 16px; border-radius: 20px;
    display: grid; place-items: center; background: var(--celeste-bg2);
}
.flujo-icono svg { width: 40px; height: 40px; color: var(--azul); }
.flujo-paso h3 { font-size: 1.1rem; margin-bottom: 8px; }
.flujo-paso p { font-size: .92rem; color: var(--gris); }
/* Conector entre pasos */
.flujo-paso:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -22px; width: 24px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--azul-claro) 0 6px, transparent 6px 11px);
    z-index: 1;
}

/* ---- CAPACIDADES DEL ADMINISTRADOR (grid de tarjetas) ---- */
.grid-cap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap {
    background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
    padding: 28px 22px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.cap:hover { transform: translateY(-6px); box-shadow: var(--sombra); border-color: var(--azul-claro); }
.cap-icono { width: 56px; height: 56px; border-radius: 14px; background: var(--azul); display: grid; place-items: center; margin-bottom: 16px; }
.cap-icono svg { width: 30px; height: 30px; color: #fff; }
.cap h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cap p { font-size: .92rem; color: var(--gris); }

/* ---- BENEFICIOS POR ROL ---- */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.rol {
    background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
    padding: 30px; border-top: 4px solid var(--azul);
}
.rol h3 { display: flex; align-items: center; gap: 10px; font-size: 1.18rem; margin-bottom: 16px; }
.rol h3 svg { width: 26px; height: 26px; color: var(--azul); }
.rol ul { list-style: none; }
.rol li { position: relative; padding-left: 30px; margin-bottom: 12px; color: #313d47; font-size: .97rem; }
.rol li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--azul-claro);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px;
}

/* ===================== CARRUSELES ===================== */
.carrusel { position: relative; }
.carrusel-track {
    display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 8px 4px 22px; scroll-behavior: smooth; scrollbar-width: none;
}
.carrusel-track::-webkit-scrollbar { display: none; }
.carrusel-nav {
    position: absolute; top: 42%; transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linea);
    background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--sombra-sm);
    transition: background .15s, color .15s;
}
.carrusel-nav:hover { background: var(--azul); color: #fff; }
.carrusel-nav svg { width: 20px; height: 20px; }
.carrusel-nav.prev { left: -10px; }
.carrusel-nav.next { right: -10px; }

/* Clientes (logos) */
.cliente-card {
    flex: 0 0 200px; scroll-snap-align: start; background: var(--blanco); border: 1px solid var(--linea);
    border-radius: var(--radio); padding: 26px 18px; text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
}
.cliente-card:hover { transform: translateY(-5px); box-shadow: var(--sombra); }
.cliente-link { display: block; color: inherit; text-decoration: none; }
.cliente-link:hover .cliente-nombre { color: var(--azul); }
.cliente-logo { height: 96px; display: grid; place-items: center; margin-bottom: 14px; }
.cliente-logo img { max-height: 96px; width: auto; object-fit: contain; filter: saturate(1); }
.cliente-nombre { font-family: var(--fuente-titulo); font-weight: 600; font-size: .98rem; color: var(--azul-osc); }

.clientes-vacio { text-align: center; color: var(--gris); padding: 30px; border: 1px dashed var(--linea); border-radius: var(--radio); }

/* Testimonios */
.testi-card {
    flex: 0 0 380px; max-width: 90vw; scroll-snap-align: start; background: var(--blanco);
    border: 1px solid var(--linea); border-radius: var(--radio); padding: 32px; position: relative;
}
.testi-card .comillas { font-family: var(--fuente-titulo); font-size: 3.4rem; line-height: .6; color: var(--azul-claro); opacity: .5; }
.testi-texto { font-size: 1.05rem; color: #2c3843; margin: 6px 0 22px; }
.testi-autor { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: var(--azul); color: #fff;
    display: grid; place-items: center; font-family: var(--fuente-titulo); font-weight: 600; overflow: hidden;
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-autor b { display: block; color: var(--azul-osc); font-family: var(--fuente-titulo); }
.testi-autor span { font-size: .88rem; color: var(--gris); }

/* ===================== CTA / PROPUESTA ===================== */
.cta {
    background: linear-gradient(120deg, var(--azul-osc), var(--azul));
    color: #fff; border-radius: 24px; padding: 54px; text-align: center;
    box-shadow: var(--sombra);
}
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta p { color: #d6e7f4; max-width: 52ch; margin: 14px auto 26px; font-size: 1.08rem; }
.cta .btn-primario { background: #fff; color: var(--azul); border-color: #fff; }
.cta .btn-primario:hover { background: var(--celeste-bg); }

/* ===================== FORMULARIO ===================== */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.form-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.form-info p { color: var(--gris); margin: 14px 0 26px; }
.form-info .dato { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: inherit; text-decoration: none; transition: transform .15s ease; }
a.dato:hover { transform: translateX(3px); }
a.dato:hover .dato-ic { background: var(--azul); }
a.dato:hover .dato-ic svg { color: #fff; }
.form-info .dato-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--celeste-bg2); display: grid; place-items: center; }
.form-info .dato-ic svg { width: 22px; height: 22px; color: var(--azul); }
.form-info .dato b { color: var(--azul-osc); font-family: var(--fuente-titulo); }

.form-card { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 32px; box-shadow: var(--sombra-sm); }
.campo { margin-bottom: 18px; }
.campo label { display: block; font-weight: 700; font-size: .9rem; color: var(--azul-osc); margin-bottom: 7px; }
.campo label .req { color: #c0392b; }
.campo input, .campo textarea, .campo select {
    width: 100%; padding: 13px 15px; border: 1.5px solid var(--linea); border-radius: var(--radio-sm);
    font-family: var(--fuente-texto); font-size: 1rem; color: var(--negro); background: #fbfdff;
    transition: border-color .15s, box-shadow .15s;
}
.campo input:focus, .campo textarea:focus, .campo select:focus {
    outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0,100,162,.14); background: #fff;
}
.campo textarea { resize: vertical; min-height: 120px; }
.campo-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Trampa anti-bot (invisible para humanos, oculto a lectores de pantalla) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-legal { font-size: .82rem; color: var(--gris); margin-top: 10px; }

.alert { padding: 14px 18px; border-radius: var(--radio-sm); margin-bottom: 20px; font-weight: 600; }
.alert-ok  { background: #e7f6ec; color: #1e7e46; border: 1px solid #b8e2c6; }
.alert-err { background: #fdecea; color: #b83227; border: 1px solid #f3c3bd; }
.alert ul { margin: 6px 0 0 18px; font-weight: 500; }

/* ===================== PIE ===================== */
.site-footer { background: var(--azul-osc); color: #cfe0ee; padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { width: 38px; height: 38px; }
.footer-logo span { font-family: var(--fuente-titulo); font-weight: 600; font-size: 1.3rem; color: #fff; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer a { color: #cfe0ee; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 34px; padding-top: 20px; text-align: center; font-size: .88rem; color: #9fbdd6; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .flujo { grid-template-columns: repeat(2, 1fr); }
    .flujo-paso:nth-child(2)::after, .flujo-paso:not(:last-child)::after { display: none; }
    .grid-cap { grid-template-columns: repeat(2, 1fr); }
    .roles { grid-template-columns: 1fr; }
    .form-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav { display: none; }
    .nav.open {
        display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
        background: #fff; padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--linea); box-shadow: var(--sombra-sm);
    }
    .menu-toggle { display: block; }
}
@media (max-width: 560px) {
    .flujo, .grid-cap { grid-template-columns: 1fr; }
    .campo-fila { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta { padding: 36px 22px; }
    section { padding: 56px 0; }
}

/* Respeta preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
