/* ============ INCAPACIDADES LABORALES — page-specific (home) ============ */

/* === HERO === */
.hero { position: relative; background: var(--brand-primary); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(110deg, rgba(15,25,45,.92) 0%, rgba(15,25,45,.78) 45%, rgba(15,25,45,.55) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 24px, transparent 24px 48px);
}
.hero::after {
  content: ""; position: absolute; top:0; bottom:0; right: 0; width: 55%; z-index: -2;
  background:
    radial-gradient(80% 60% at 80% 50%, rgba(176,122,58,.18), transparent 70%),
    linear-gradient(135deg, #20304c 0%, #14213a 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 80px 0 90px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 22px; }
.hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-accent-2); }
.hero h1 { color: #fff; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.08; }
.hero h1 em { font-style: italic; color: var(--brand-accent-2); font-weight: 500; }
.hero .lead { font-size: 18px; margin-top: 22px; color: rgba(255,255,255,.82); max-width: 540px; }
.hero .meta { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero .meta .item { display: flex; gap: 12px; align-items: flex-start; }
.hero .meta .item .icn { color: var(--brand-accent-2); flex: 0 0 auto; margin-top: 2px; }
.hero .meta .item .lbl { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); display: block; }
.hero .meta .item .val { font-weight: 600; color: #fff; font-size: 15px; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero .cta-row .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .cta-row .btn-ghost:hover { background: #fff; color: var(--brand-primary); }

/* Hero form card */
.hero-form { background: #fff; color: var(--text); padding: 32px 30px 30px; border-radius: 6px; box-shadow: var(--shadow); border-top: 4px solid var(--brand-accent); position: relative; }
.hero-form .kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-accent); font-weight: 700; }
.hero-form h3 { color: var(--brand-primary); margin: 6px 0 6px; font-size: 24px; font-family: 'Spectral',serif; }
.hero-form .sub { font-size: 14px; color: var(--text-soft); margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-mute); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 14.5px; background: #fdfbf7; color: var(--text); transition: border-color .15s, background .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-accent); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radio-group label { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; cursor: pointer; background: #fdfbf7; transition: all .15s; letter-spacing: 0; text-transform: none; color: var(--text); font-weight: 500; }
.radio-group label:hover { border-color: var(--brand-accent); }
.radio-group input { accent-color: var(--brand-accent); }
.radio-group label.checked { border-color: var(--brand-accent); background: #fff7ec; color: var(--brand-primary); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-mute); margin: 6px 0 14px; line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--brand-accent); }
.consent a { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Alerta del formulario */
.form-alert { padding: 11px 14px; border: 1px solid; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 10px; }
.form-alert--success { background: #ecf6ee; color: #1f6b34; border-color: #c8e6cf; }
.form-alert--error   { background: #fdecec; color: #8a1f1f; border-color: #f3c2c2; }

/* === Intro === */
.intro { background: var(--bg); }
.intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: center; }
.intro-image { aspect-ratio: 4/5; background: var(--bg-soft); border-radius: 4px; border: 1px solid var(--line); position: relative; overflow: hidden; background-image: repeating-linear-gradient(45deg, transparent 0 18px, rgba(176,122,58,.08) 18px 36px); display: flex; align-items: center; justify-content: center; }
.intro-image::before { content: ""; position: absolute; inset: 18px; border: 1px solid var(--line); }
.intro-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; position: absolute; inset: 0; z-index: 1; }
.intro-image .ph-label { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 11px; color: var(--text-mute); letter-spacing: .18em; text-transform: uppercase; background: var(--bg); padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px; }
.intro-text .kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-accent); font-weight: 700; margin-bottom: 14px; }
.intro-text h2 { margin-bottom: 22px; }
.intro-text p { font-size: 16.5px; }
.intro-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-stats .s { padding: 22px 16px 22px 0; border-right: 1px solid var(--line); }
.intro-stats .s:last-child { border-right: none; padding-left: 22px; padding-right: 0; }
.intro-stats .s:nth-child(2) { padding-left: 22px; }
.intro-stats .num { font-family: 'Spectral',serif; font-size: 38px; color: var(--brand-accent); line-height: 1; }
.intro-stats .lbl { font-size: 12px; color: var(--text-mute); letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }
.intro-text .signature { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 24px; align-items: center; }
.intro-text .signature .name { font-family: 'Spectral', serif; font-size: 22px; color: var(--brand-primary); }
.intro-text .signature .role { font-size: 13px; color: var(--text-mute); letter-spacing: .08em; text-transform: uppercase; }

/* === Offer === */
.offer { background: var(--white); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);}
.offer-item { padding: 38px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); position: relative; transition: background .2s; }
.offer-item:hover { background: var(--bg); }
.offer-item .num { font-family: 'Spectral',serif; font-style: italic; font-size: 14px; color: var(--brand-accent); margin-bottom: 14px; display: block; letter-spacing: .1em; }
.offer-item h3 { font-size: 22px; margin-bottom: 14px; }
.offer-item p { font-size: 15px; margin: 0; color: var(--text-soft); }
.offer-item .icn { width: 44px; height: 44px; background: var(--bg-soft); color: var(--brand-primary); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 18px; }

/* === Definition (¿Qué es la pensión?) === */
.definition { background: var(--bg); position: relative; }
.definition .container { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.definition .kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-accent); font-weight: 700; margin-bottom: 16px; }
.definition h2 { margin-bottom: 22px; }
.definition .big-quote { font-family: 'Spectral', serif; font-size: 22px; line-height: 1.55; color: var(--brand-primary); font-weight: 400; padding-left: 24px; border-left: 3px solid var(--brand-accent); margin: 0 0 30px; }
.definition .sub h3 { font-size: 21px; margin-bottom: 16px; font-family: 'Spectral', serif; }
.init-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.init-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--text-soft); padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.init-list li .ico { width: 28px; height: 28px; background: var(--bg-soft); color: var(--brand-accent); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: 'Spectral',serif; font-weight: 600; font-size: 13px; flex-shrink: 0; }

/* === Grados (cards) === */
.grados { background: var(--white); }
.grados-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.grado-card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 28px 24px 26px; position: relative; transition: all .2s; display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.grado-card:hover { border-color: var(--brand-accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.grado-card .num { font-family: 'Spectral', serif; font-size: 32px; color: var(--brand-accent); font-style: italic; line-height: 1; font-weight: 500; }
.grado-card h3 { font-family: 'Spectral', serif; font-size: 19px; margin: 0; color: var(--brand-primary); line-height: 1.25; }
.grado-card .severity { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; margin-top: -2px; }
.grado-card p { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.55; }
.grado-card.featured { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); grid-column: span 4; padding: 36px 36px; min-height: 0; }
.grado-card.featured .num { color: var(--brand-accent-2); }
.grado-card.featured h3 { color: #fff; font-size: 24px; }
.grado-card.featured .severity { color: var(--brand-accent-2); }
.grado-card.featured p { color: rgba(255,255,255,.78); font-size: 15.5px; max-width: 760px; }
.grado-card.featured .pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-accent-2); font-weight: 700; align-self: flex-start; }

/* === Cotización (info table) === */
.cotiz { background: var(--bg-soft); }
.cotiz .section-head { margin-bottom: 44px; }
.cotiz-wrap { max-width: 940px; margin: 0 auto; }
.cotiz-block { background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 14px; overflow: hidden; }
.cotiz-block .head { display: flex; gap: 14px; align-items: center; padding: 22px 26px 6px; }
.cotiz-block .head .ico { width: 36px; height: 36px; background: var(--brand-accent); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: 'Spectral',serif; font-weight: 600; font-size: 16px; flex-shrink: 0; }
.cotiz-block h4 { font-family: 'Spectral',serif; font-size: 18px; color: var(--brand-primary); margin: 0; font-weight: 500; }
.cotiz-block .body { padding: 6px 26px 22px 76px; }
.cotiz-block .body p { font-size: 15px; color: var(--text-soft); margin: 0 0 10px; }
.cotiz-block .body ul { margin: 0; padding-left: 18px; color: var(--text-soft); font-size: 14.5px; line-height: 1.65; }
.cotiz-block .body ul li { margin-bottom: 6px; }
.cotiz-block .body ul li::marker { color: var(--brand-accent); }

/* === Revisión section === */
.revision { background: var(--white); }
.rev-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.rev-image { aspect-ratio: 4/3; background: var(--bg-soft); background-image: repeating-linear-gradient(45deg, transparent 0 16px, rgba(27,42,68,.06) 16px 32px); border: 1px solid var(--line); border-radius: 4px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rev-image::before { content: ""; position: absolute; inset: 16px; border: 1px solid var(--line); }
.rev-image img { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.rev-image:has(img) { aspect-ratio: auto; }
.rev-image .ph-label { font-family: ui-monospace, monospace; font-size: 11px; color: var(--text-mute); letter-spacing: .18em; text-transform: uppercase; background: var(--bg); padding: 8px 14px; border: 1px solid var(--line); }
.rev-text .kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-accent); font-weight: 700; margin-bottom: 14px; }
.rev-text h2 { margin-bottom: 18px; }
.rev-text p { font-size: 16px; }

/* === Pasos a seguir (lista numerada moderna) === */
.pasos { background: var(--brand-primary); color: #fff; position: relative; overflow: hidden; }
.pasos::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 50%, rgba(176,122,58,.12), transparent 70%); pointer-events: none; }
.pasos h2 { color: #fff; }
.pasos .section-head .kicker { color: var(--brand-accent-2); }
.pasos .section-head .kicker::before, .pasos .section-head .kicker::after { background: var(--brand-accent-2); }
.pasos .section-head p { color: rgba(255,255,255,.75); }
.pasos-list { display: flex; flex-direction: column; gap: 16px; max-width: 920px; margin: 0 auto; }
.paso { display: flex; gap: 24px; align-items: flex-start; padding: 24px 26px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; transition: all .2s; }
.paso:hover { background: rgba(255,255,255,.07); border-color: rgba(176,122,58,.4); }
.paso .n { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-accent); color: #fff; font-family: 'Spectral',serif; font-size: 20px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.paso .txt { color: rgba(255,255,255,.85); font-size: 15.5px; line-height: 1.65; }
.paso .txt strong { color: #fff; }

/* === Why us === */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.why-card { padding: 36px 32px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; transition: all .2s; position: relative; }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-accent); }
.why-card .icn-wrap { width: 64px; height: 64px; background: var(--bg-soft); color: var(--brand-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.why-card h3 { font-size: 22px; margin-bottom: 12px; }
.why-card p { font-size: 15px; }

/* === FAQ === */
.faq { background: var(--bg); }
.faq-wrap { max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 12px; overflow: hidden; transition: border-color .2s; }
.faq-item:hover { border-color: var(--brand-accent); }
.faq-item.open { border-color: var(--brand-accent); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; cursor: pointer; font-family: 'Spectral',serif; font-weight: 500; color: var(--brand-primary); font-size: 18px; user-select: none; }
.faq-q .toggle { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); color: var(--brand-accent); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: transform .2s; font-size: 18px; line-height: 1; }
.faq-item.open .faq-q .toggle { transform: rotate(45deg); background: var(--brand-accent); color: #fff; }
.faq-a { padding: 0 26px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .25s; }
.faq-item.open .faq-a { padding: 0 26px 22px; max-height: 600px; }
.faq-a p { font-size: 15px; }

/* === Articles (cards en home) === */
.articles { padding: 96px 0; }

/* === Responsive === */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 56px; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .offer-grid { grid-template-columns: 1fr; border-left: none; }
  .offer-item { border-left: 1px solid var(--line); }
  .definition .container { grid-template-columns: 1fr; gap: 40px; }
  .grados-grid { grid-template-columns: 1fr 1fr; }
  .grado-card.featured { grid-column: span 2; }
  .rev-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-inner { padding: 36px 0 48px; gap: 28px; }
  .hero .lead { font-size: 16px; margin-top: 16px; }
  .hero .meta { gap: 16px; margin-top: 22px; flex-direction: column; }
  .hero .cta-row { margin-top: 24px; }
  .hero .cta-row .btn { flex: 1; justify-content: center; }
  .hero-form { padding: 26px 22px 24px; }
  .hero-form h3 { font-size: 22px; }
  .offer-item { padding: 30px 24px; }
  .grados-grid { grid-template-columns: 1fr; }
  .grado-card.featured { grid-column: auto; padding: 28px 24px; }
  .grado-card.featured h3 { font-size: 21px; }
  .intro-stats { grid-template-columns: 1fr; }
  .intro-stats .s { border-right: none; border-bottom: 1px solid var(--line); padding: 18px 0 !important; }
  .intro-stats .s:last-child { border-bottom: none; }
  .cotiz-block .body { padding: 6px 22px 20px 22px; }
  .paso { padding: 20px 20px; gap: 16px; }
  .paso .n { width: 38px; height: 38px; font-size: 17px; }
  .why-card { padding: 28px 24px; }
  .faq-q { padding: 18px 20px; font-size: 16px; }
  .faq-item.open .faq-a { padding: 0 20px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .radio-group { grid-template-columns: 1fr; }
}
