/* Portada (resources/views/public/index.blade.php). Hoja propia: no usa stylesnew.css. */
:root {
    --teal-900: #003d37;
    --teal-800: #00544c;
    --teal-700: #00695f;
    --teal: #009687;
    --teal-50: #e6f5f3;
    --pink: #e81e63;
    --pink-700: #c2154f;
    --mint: #05d7a8;
    --ink: #14211f;
    --ink-2: #44524f;
    --line: #dfe7e5;
    --ground: #f6f8f7;
    --white: #fff;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 61, 55, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
section[id] { scroll-margin-top: 80px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--ink-2); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .7; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-pink { background: var(--pink); color: var(--white); }
.btn-pink:hover { background: var(--pink-700); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-700); }
.btn-teal { background: var(--teal-700); color: var(--white); }
.btn-teal:hover { background: var(--teal-800); }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 20; background: var(--teal-900); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.header .container { display: flex; align-items: center; gap: 32px; min-height: 76px; flex-wrap: wrap; }
.header .logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 28px; margin-right: auto; }
.nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--white); }
.header-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.header-actions .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.register { position: relative; }
.register-menu { display: none; position: absolute; right: 0; top: 100%; margin-top: 8px; min-width: 230px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; z-index: 30; }
/* Puente sobre el hueco entre el botón y el menú, para no perder el hover al bajar el ratón. */
.register-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.register:hover .register-menu, .register:focus-within .register-menu, .register.open .register-menu { display: block; }
.register-menu a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.register-menu a span { display: block; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.register-menu a:hover { background: var(--teal-50); }

/* Hero */
.hero { background: var(--teal-900); color: var(--white); padding: 72px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--mint); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero-lead { margin-top: 20px; font-size: 19px; color: rgba(255, 255, 255, .8); max-width: 560px; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.path { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.path-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); }
.path-icon svg { width: 24px; height: 24px; }
.path h3 { font-size: 20px; font-weight: 800; }
.path .who { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.path-links { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.path-links .btn { width: 100%; justify-content: space-between; font-size: 14px; }
.apps { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.apps span { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); margin-right: 4px; }
.apps img { height: 44px; width: auto; }
.apps img.badge-light { background: var(--white); border-radius: 8px; }
.hero-phone { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-phone::before { content: ''; position: absolute; width: 420px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--teal-700); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.phones { position: relative; width: 430px; max-width: 100%; height: 570px; }
.phone { position: absolute; border: 10px solid #0b0f0e; border-radius: 44px; overflow: hidden; background: #0b0f0e; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.phone::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 72px; height: 20px; border-radius: 12px; background: #0b0f0e; z-index: 1; }
.phone img { width: 100%; border-radius: 34px; }
.phone-back { width: 230px; left: 0; top: 50px; transform: rotate(-7deg); opacity: .92; }
.phone-front { width: 260px; right: 0; top: 0; }

/* Sellos */
.trust { border-bottom: 1px solid var(--line); background: var(--white); }
.trust .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.trust-item { display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.trust-item svg { width: 22px; height: 22px; color: var(--teal); flex: none; }

/* Cómo funciona */
.steps-section { background: var(--ground); }
.steps-section .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.steps::before { content: ''; position: absolute; top: 46px; left: 16%; right: 16%; border-top: 2px dashed var(--line); }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.step-num { position: absolute; top: 16px; left: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-50); color: var(--teal-800); font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.step-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-700); color: var(--white); position: relative; }
.step-icon svg { width: 28px; height: 28px; }
.step-main { border: 2px solid var(--pink); }
.step-main .step-icon { background: var(--pink); }
.step-main .step-num { background: #fde7ef; color: var(--pink-700); }
.step h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Ventajas */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); margin-bottom: 20px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 15px; }
.feature-note { background: var(--teal-700); color: var(--white); border-color: var(--teal-700); display: flex; flex-direction: column; justify-content: center; }
.feature-note p { color: rgba(255, 255, 255, .88); font-size: 17px; font-weight: 600; }

/* Bloques imagen + texto */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.split + .split { margin-top: 112px; }
.split-media { position: relative; }
.split-media img { border-radius: 24px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.split-media .badge-float { position: absolute; left: -20px; bottom: 32px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 700; }
.split-media .badge-float svg { width: 28px; height: 28px; color: var(--pink); }
.split-copy h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.split-copy h2 em { font-style: normal; color: var(--teal); }
.split-copy p { margin-top: 18px; font-size: 17px; color: var(--ink-2); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--teal-50); color: var(--teal-800); font-size: 14px; font-weight: 700; }
.chip svg { width: 16px; height: 16px; }

/* Planes */
.plans-section { background: var(--ground); }
.plans-section .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); position: relative; }
.plan-tag { position: absolute; top: -14px; left: 36px; background: var(--teal); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan-limit { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 24px 0; }
.plan-price strong { font-size: 52px; font-weight: 800; letter-spacing: -.03em; }
.plan-price span { color: var(--ink-2); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 1px; }
.plan .btn { margin-top: auto; }
.plans-foot { margin-top: 24px; font-size: 15px; color: var(--ink-2); text-align: center; }
.plans-foot strong { color: var(--ink); }

/* Llamada final */
.cta { background: var(--pink); color: var(--white); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.cta p { margin-top: 10px; font-size: 18px; color: rgba(255, 255, 255, .88); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-white { background: var(--white); color: var(--pink-700); }
.cta .btn-white:hover { background: #fff0f5; }
.cta .btn-ghost { border-color: rgba(255, 255, 255, .6); }

/* Contacto */
.contact { background: var(--teal-900); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
.contact .eyebrow { color: var(--mint); }
.contact h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.contact-lead { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, .78); }
.contact-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); text-decoration: none; }
.contact-card:hover { background: rgba(255, 255, 255, .1); }
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pink); flex: none; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card small { display: block; font-size: 13px; color: rgba(255, 255, 255, .7); }
.contact-card strong { font-size: 17px; overflow-wrap: anywhere; }
.socials { display: flex; gap: 18px; margin-top: 28px; font-size: 14px; font-weight: 600; }
.socials a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.socials a:hover { color: var(--white); text-decoration: underline; }
.form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .form .full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea { font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--ground); color: var(--ink); min-height: 48px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px var(--teal-50); }
.legal { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.form .btn { justify-self: start; }

.footer { background: #00302b; color: rgba(255, 255, 255, .72); font-size: 14px; }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.footer a { color: rgba(255, 255, 255, .9); }

/* Avisos (formulario de contacto y modales) */
.alert { display: none; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; }
.alert-success { background: #e3f6ef; color: #0b5d43; }
.alert-danger { background: #fdecef; color: #9b1238; }
.field-error { display: none; margin-top: 4px; font-size: 13px; font-weight: 600; }

/* Modales (Bootstrap 3: la portada no carga su CSS) */
.modal-open { overflow: hidden; }
.modal { display: none; position: fixed; inset: 0; z-index: 1050; overflow: hidden; outline: 0; -webkit-overflow-scrolling: touch; }
.modal-open .modal { overflow-x: hidden; overflow-y: auto; }
.modal-dialog { position: relative; width: auto; margin: 16px; }
.modal.fade .modal-dialog { transform: translate(0, -10%); transition: transform .25s ease-out; }
.modal.in .modal-dialog { transform: translate(0, 0); }
.modal-content { position: relative; background: var(--white); border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); outline: 0; padding: 32px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: #001f1c; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.in { opacity: .6; }
.fade { opacity: 0; transition: opacity .15s linear; }
.fade.in { opacity: 1; }
.modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { background: var(--ground); color: var(--ink); }
.modal-close svg { width: 20px; height: 20px; }
.modal-title { font-size: 24px; font-weight: 800; padding-right: 32px; }
.modal-intro { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.modal-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.modal-form .btn { width: 100%; }
.modal .alert { margin-top: 16px; }
.modal-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--pink-700); text-decoration: underline; cursor: pointer; align-self: center; }
.modal-foot { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); text-align: center; }
.modal-foot a { color: var(--teal-700); font-weight: 700; }
.recaptcha-note { font-size: 11px; color: var(--ink-2); }
@media (min-width: 640px) {
    .modal-dialog { width: 440px; margin: 72px auto; }
}

/* Móvil */
@media (max-width: 960px) {
    .nav { display: none; }
    .hero-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .steps::before { display: none; }
    .trust .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { gap: 40px; }
    .split.reverse .split-media { order: -1; }
    .cta { grid-template-columns: minmax(0, 1fr); padding: 40px 28px; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .section { padding: 64px 0; }
    .header .container { gap: 12px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
    .header .logo img { height: 28px; }
    .header-actions { gap: 8px; }
    .header-actions .btn { min-height: 44px; padding: 0 14px; font-size: 13px; }
    .paths, .features, .plans, .form, .trust .container { grid-template-columns: minmax(0, 1fr); }
    .split-media .badge-float { left: 12px; }
    .form, .modal-content { padding: 24px; }
    .plan { padding: 28px; }
    .phones { width: 330px; height: 440px; }
    .phone { border-width: 8px; border-radius: 36px; }
    .phone img { border-radius: 28px; }
    .phone-back { width: 175px; top: 40px; }
    .phone-front { width: 200px; }
}
