/* =============================================================================
   SITIO PÚBLICO — hoja de estilos de la web (landing, documentación, registro,
   acceso). Antes vivía embebida en landing.blade.php; se extrajo para que TODAS
   las páginas públicas compartan exactamente la misma identidad visual.
   El panel de administración y el portal del cliente NO usan este archivo:
   ellos van con adminui/css/admin.css.
   ============================================================================= */

:root {
    --jt-navy:   #16356b;
    --jt-navy-2: #0f2550;
    --jt-cyan:   #29abe2;
    --jt-ink:    #0f1b33;
    --jt-muted:  #5b6b86;
    --jt-bg:     #f5f8fc;
    --jt-card:   #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--jt-ink);
    background: var(--jt-bg);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e6edf6;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--jt-navy); }
.brand img { height: 40px; width: auto; display: block; }
.brand span { color: var(--jt-cyan); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--jt-muted); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--jt-navy); }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 15px; border-radius: 12px; cursor: pointer;
    padding: 13px 26px; border: none; transition: transform .12s, box-shadow .2s, background .2s;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--jt-navy), var(--jt-cyan));
    color: #fff; box-shadow: 0 12px 26px -10px rgba(22,53,107,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(22,53,107,.7); }
.btn-ghost { background: #fff; color: var(--jt-navy); border: 1.5px solid #d8e3f1; }
.btn-ghost:hover { border-color: var(--jt-cyan); color: var(--jt-cyan); }
.nav-cta .lbl-short { display: none; }

/* ===== Hero ===== */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 90% -10%, rgba(41,171,226,.18), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--jt-bg) 100%);
    padding: 90px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(41,171,226,.12); color: var(--jt-navy);
    font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jt-cyan); }
.hero h1 { font-size: 52px; line-height: 1.08; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 .grad {
    background: linear-gradient(120deg, var(--jt-navy), var(--jt-cyan));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 18px; color: var(--jt-muted); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: var(--jt-navy); }
.hero-stats .lbl { font-size: 13px; color: var(--jt-muted); font-weight: 600; }

/* Hero visual */
.hero-visual {
    position: relative; background: linear-gradient(135deg, var(--jt-navy), var(--jt-navy-2));
    border-radius: 24px; padding: 30px; color: #fff;
    box-shadow: 0 40px 80px -30px rgba(15,37,80,.6);
}
.hero-visual::before {
    content: ""; position: absolute; right: -40px; top: -40px;
    width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(41,171,226,.5), transparent 70%);
}
.mock-doc { background: #fff; color: var(--jt-ink); border-radius: 14px; padding: 22px; position: relative; z-index: 2; }
.mock-doc .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-tag { background: var(--jt-cyan); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.mock-line { height: 9px; border-radius: 6px; background: #eef3f9; margin: 9px 0; }
.mock-line.w70 { width: 70%; } .mock-line.w40 { width: 40%; } .mock-line.w90 { width: 90%; }
.mock-total { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 2px dashed #e3eaf3; font-weight: 800; }
.mock-total .amt { color: var(--jt-navy); }
.mock-badge {
    position: absolute; z-index: 3; right: 14px; bottom: -16px;
    background: #fff; border-radius: 12px; padding: 10px 16px; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 18px 30px -12px rgba(15,37,80,.4); font-weight: 700; font-size: 13px; color: var(--jt-navy);
}
.mock-badge i { color: #16c784; font-size: 20px; }

/* ===== Section base ===== */
section { padding: 84px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.sec-head .pill { margin-bottom: 16px; }
.sec-head h2 { font-size: 38px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.sec-head p { color: var(--jt-muted); font-size: 17px; }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
    background: var(--jt-card); border: 1px solid #e9eff7; border-radius: 18px; padding: 30px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -28px rgba(15,37,80,.45); border-color: #d7e6f5; }
.feature .ic {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; color: #fff; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--jt-navy), var(--jt-cyan));
}
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--jt-muted); font-size: 15px; }

/* ===== Desarrolladores ===== */
.devs { background: #fff; }
.devs-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }

/* ===== Benefits ===== */
.benefits { background: #fff; }
.ben-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ben-list { display: grid; gap: 20px; }
.ben-item { display: flex; gap: 16px; align-items: flex-start; }
.ben-item .check {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    background: rgba(41,171,226,.14); color: var(--jt-cyan); font-size: 18px;
}
.ben-item h4 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.ben-item p { color: var(--jt-muted); font-size: 14.5px; }
.ben-visual {
    border-radius: 24px; padding: 48px; color: #fff;
    background: linear-gradient(135deg, var(--jt-navy), var(--jt-navy-2));
    position: relative; overflow: hidden;
}
.ben-visual::after {
    content: ""; position: absolute; left: -50px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(41,171,226,.4), transparent 70%);
}
.ben-visual h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; position: relative; z-index: 2; }
.ben-visual p { color: rgba(255,255,255,.82); position: relative; z-index: 2; }

/* ===== CTA ===== */
.cta-band {
    background: linear-gradient(135deg, var(--jt-navy), var(--jt-cyan));
    border-radius: 28px; padding: 60px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-band::before {
    content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.cta-band h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; position: relative; z-index: 2; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,.9); margin-bottom: 30px; position: relative; z-index: 2; }
.cta-band .btn-white { background: #fff; color: var(--jt-navy); position: relative; z-index: 2; }
.cta-band .btn-white:hover { transform: translateY(-2px); }

/* ===== Footer ===== */
footer { background: var(--jt-navy-2); color: #c7d4e8; padding: 50px 0 30px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.foot-brand { font-size: 22px; font-weight: 800; color: #fff; }
.foot-brand span { color: var(--jt-cyan); }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h5 { color: #fff; font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.foot-col a { display: block; font-size: 14px; color: #9fb2cf; margin-bottom: 8px; }
.foot-col a:hover { color: var(--jt-cyan); }
/* Enlaces legales del pie: apuntan a la web corporativa, no a páginas de este proyecto. */
.foot-legal { display: inline-flex; gap: 16px; flex-wrap: wrap; margin-left: 10px; }
.foot-legal a { color: #9fb2cf; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal a:hover { color: #fff; }
@media (max-width: 600px) { .foot-legal { display: flex; margin: 8px 0 0; } }

.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; font-size: 13px; color: #8499ba; text-align: center; }

/* ===== Planes ===== */
.planes-wrap { background: #fff; }
.planes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.plan {
    background: var(--jt-card); border: 1.5px solid #e6edf6; border-radius: 20px; padding: 30px 26px;
    display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(15,37,80,.45); border-color: #cfe1f5; }
.plan.pop { border-color: var(--jt-cyan); box-shadow: 0 26px 54px -26px rgba(41,171,226,.55); position: relative; }
.plan.pop::before {
    content: "MÁS POPULAR"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--jt-navy), var(--jt-cyan)); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: .5px; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 20px; font-weight: 800; color: var(--jt-navy); margin-bottom: 4px; }
.plan .desc { color: var(--jt-muted); font-size: 13.5px; min-height: 40px; margin-bottom: 14px; }
.plan .price { font-size: 38px; font-weight: 800; color: var(--jt-ink); letter-spacing: -1px; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--jt-muted); }
.plan .cpe { margin: 14px 0; padding: 10px 14px; background: var(--jt-bg); border-radius: 12px; font-weight: 700; color: var(--jt-navy); font-size: 14px; text-align: center; }
.plan ul { list-style: none; display: grid; gap: 10px; margin: 6px 0 22px; }
.plan ul li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--jt-ink); }
.plan ul li i { color: #16c784; font-size: 18px; flex: 0 0 18px; }
.plan ul li.off { color: #b6c0d0; } .plan ul li.off i { color: #cdd6e3; }
.plan .btn { margin-top: auto; justify-content: center; }
.bill-toggle { display: inline-flex; gap: 4px; background: #eaf1f9; border-radius: 999px; padding: 5px; margin: 0 auto 36px; }
.bill-toggle .bt {
    border: none; background: transparent; font-family: inherit; font-weight: 700; font-size: 14.5px;
    color: var(--jt-muted); padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: all .15s;
    display: inline-flex; align-items: center; gap: 8px;
}
.bill-toggle .bt.active { background: #fff; color: var(--jt-navy); box-shadow: 0 6px 16px -8px rgba(15,37,80,.35); }
.bill-toggle .save { background: #16c784; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
#planes .container { text-align: center; }
#planes .planes { text-align: left; }

/* ===== Contacto (form) ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.contact-card { background: #fff; border: 1px solid #e6edf6; border-radius: 22px; padding: 34px; box-shadow: 0 24px 60px -34px rgba(15,37,80,.4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--jt-navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid #dce6f2; border-radius: 11px;
    font-family: inherit; font-size: 14.5px; color: var(--jt-ink); transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--jt-cyan); box-shadow: 0 0 0 3px rgba(41,171,226,.15);
}
.contact-info { display: grid; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--jt-navy), var(--jt-cyan)); }
.info-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.info-item p, .info-item a { font-size: 14px; color: var(--jt-muted); }
.info-item a:hover { color: var(--jt-cyan); }
.alert-ok { background: #e6f9f0; border: 1px solid #16c784; color: #0c7a4c; padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.alert-err { background: #fdecec; border: 1px solid #e25555; color: #a12020; padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .planes { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-grid, .ben-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero h1 { font-size: 38px; }
    .hero-visual { order: -1; }
    section { padding: 60px 0; }
    .cta-band, .ben-visual { padding: 40px 26px; }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    /* Navbar compacto */
    .nav-inner { height: 62px; }
    .brand { font-size: 19px; gap: 8px; }
    .brand img { height: 32px; }
    .nav-cta { padding: 10px 16px; font-size: 14px; }
    .nav-cta .lbl-full { display: none; }
    .nav-cta .lbl-short { display: inline; }
    /* Planes en una sola columna */
    .planes { grid-template-columns: 1fr; gap: 26px; }
    .plan { padding: 26px 22px; }
    .plan.pop { margin-top: 8px; }
    .bill-toggle { width: 100%; max-width: 360px; justify-content: center; flex-wrap: wrap; }
    /* Tipografía y bloques */
    .hero { padding: 64px 0 56px; }
    .hero h1 { font-size: 30px; }
    .hero p.lead { font-size: 16px; }
    .hero-cta { gap: 10px; }
    .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
    .hero-stats { gap: 22px; flex-wrap: wrap; }
    .sec-head { margin-bottom: 38px; }
    .sec-head h2 { font-size: 27px; }
    .sec-head p { font-size: 15px; }
    .cta-band h2 { font-size: 26px; }
}
