/* SIDECC — estilos del sitio (Opción A: claro corporativo, tarjeta Aspel roja) */
:root {
  --brand: #C8102E;
  --brand-dark: #A80D26;
  --brand-darker: #8E0B20;
  --brand-tint: #FFE3E7;
  --ink: #16181D;
  --ink-2: #262932;
  --muted: #4A505C;
  --muted-2: #5B616E;
  --line: #E3E5E9;
  --line-2: #D5D8DE;
  --surface: #F4F5F7;
  --amber: #F5A524;
  --ok: #1F6B35;
  --ok-bg: #EAF7EE;
  --bad: #A61B1B;
  --bad-bg: #FDECEC;
  --radius: 18px;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-heading-color: inherit;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 200, 16, 46;
  --bs-link-hover-color: var(--brand-darker);
  --bs-link-hover-color-rgb: 142, 11, 32;
  --bs-focus-ring-color: rgba(200, 16, 46, .3);
}

body { font-family: var(--font-body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
@media (min-width: 1200px) { .container { max-width: 1200px; } }

.h-display, h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; }
.text-muted-strong { color: var(--muted) !important; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.icon { flex-shrink: 0; }

.skip-link { position: absolute; left: 16px; top: 8px; z-index: 2000; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }

/* Botones */
.btn { font-weight: 700; border-radius: 12px; padding: .7rem 1.25rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--brand-darker); border-color: var(--brand-darker); color: #fff; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover, .btn-ink:focus-visible { background: #000; color: #fff; }
.btn-outline-ink { background: #fff; border: 1px solid var(--line-2); color: var(--ink); }
.btn-outline-ink:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-white { background: #fff; color: var(--brand); border-color: #fff; }
.btn-white:hover { background: var(--brand-tint); color: var(--brand-darker); }

/* Encabezado */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.site-header .navbar { padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.brand:hover { color: var(--ink); }
.brand-light, .brand-light:hover { color: #fff; }
.navbar .nav-link { font-weight: 600; color: var(--ink); padding: .5rem .85rem !important; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand); }
.dropdown-menu { border-radius: 14px; border-color: var(--line); padding: 8px; box-shadow: 0 16px 40px rgba(22,24,29,.12); }
.dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 10px 12px; font-weight: 600; }
.dropdown-item .icon { color: var(--brand); }
.dropdown-item:active { background: var(--brand); color: #fff; }
.dropdown-item.active { background: var(--brand-tint); color: var(--brand-darker); }
.dropdown-item:active .icon { color: #fff; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang-switch a { text-decoration: none; font-weight: 800; font-size: 13px; color: var(--muted-2); padding: 7px 12px; border-radius: 999px; min-width: 44px; text-align: center; }
.lang-switch a.active { background: var(--ink); color: #fff; }
@media (max-width: 991.98px) {
  .navbar-collapse { padding-top: 12px; }
  .nav-actions { padding: 12px 0 4px; }
}

/* Secciones */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-surface { background: var(--surface); }
.section-title { font-weight: 800; font-size: clamp(30px, 4vw, 40px); margin-bottom: 12px; }
.section-lead { font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 640px; }

/* Hero */
.hero { background: var(--surface); padding: 88px 0; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 5.2vw, 56px); line-height: 1.05; margin: 18px 0 22px; }
.hero .lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.page-hero { background: var(--surface); padding: 72px 0 64px; }
.page-hero h1 { font-weight: 800; font-size: clamp(34px, 4.5vw, 50px); line-height: 1.08; margin: 14px 0 18px; }
.page-hero .lead { font-size: 19px; color: var(--muted); line-height: 1.6; max-width: 720px; }

/* Tarjeta Aspel (estilo rojo) */
.aspel-card { background: var(--brand); color: #fff; border-radius: 24px; padding: 36px; }
.aspel-card .kicker { color: #FFD6DC; }
.aspel-card .title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.25; margin: 14px 0 22px; }
.aspel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.aspel-chip { background: var(--brand-dark); border-radius: 12px; padding: 14px; }
.aspel-chip strong { display: block; }
.aspel-chip span { font-size: 14px; color: var(--brand-tint); }

/* Tarjetas de servicio */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
@media (min-width: 992px) { .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service-card { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; text-decoration: none; color: var(--ink); height: 100%; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.service-card:hover, a.service-card:focus-visible { border-color: var(--brand); box-shadow: 0 14px 32px rgba(22,24,29,.08); transform: translateY(-2px); color: var(--ink); }
.service-card .icon { color: var(--brand); }
.service-card h3 { font-weight: 700; font-size: 20px; margin: 0; letter-spacing: -0.02em; }
.service-card p { font-size: 15px; color: var(--muted); line-height: 1.55; margin: 0; }
.service-card .more { margin-top: auto; font-weight: 700; color: var(--brand); font-size: 14px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.check-list .icon { color: var(--brand); margin-top: 2px; }

.feature-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-table th, .feature-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.feature-table tr:last-child th, .feature-table tr:last-child td { border-bottom: 0; }
.feature-table th { width: 32%; font-family: var(--font-display); font-weight: 700; background: var(--surface); }
.feature-table td { color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* Promoción */
.promo { background: var(--brand); color: #fff; padding: 88px 0; }
.promo h2 { font-weight: 800; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin: 18px 0; }
.promo p { color: var(--brand-tint); font-size: 17px; line-height: 1.6; }
.promo-badge { display: inline-block; background: var(--amber); color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 480px; }
.spec { border: 1px solid #E8707F; border-radius: 12px; padding: 14px; }
.spec strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.spec span { font-size: 14px; color: var(--brand-tint); }
.price-line { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; }

/* Buscador de dominios */
.domain-box { background: #fff; color: var(--ink); border-radius: 24px; padding: 32px; box-shadow: 0 20px 48px rgba(22,24,29,.14); }
.domain-box h3 { font-weight: 700; font-size: 24px; }
.domain-box.bordered { box-shadow: none; border: 1px solid var(--line); }
.domain-input { display: flex; flex-wrap: wrap; gap: 10px; }
.domain-input .form-control { flex: 1 1 200px; min-height: 52px; border-radius: 12px; font-size: 16px; }
.domain-input .btn { min-height: 52px; }
.domain-results { display: grid; gap: 8px; margin-top: 16px; }
.domain-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.domain-row .name { font-weight: 700; word-break: break-all; }
.domain-row .status { font-weight: 700; font-size: 14px; }
.domain-row.available { background: var(--ok-bg); }
.domain-row.available .status { color: var(--ok); }
.domain-row.taken .status { color: var(--bad); }
.domain-row .btn { padding: .5rem .9rem; font-size: 14px; }

/* Paquetes */
.package { border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; height: 100%; background: #fff; }
.package.featured { border: 2px solid var(--brand); }
.package h3 { font-weight: 700; font-size: 24px; margin: 0; }
.package .for { color: var(--muted); font-size: 15px; margin: 0; }
.package .btn { margin-top: auto; }
.package .tag { align-self: flex-start; background: var(--brand-tint); color: var(--brand-darker); font-weight: 800; font-size: 12px; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; }

/* Página de aplicaciones */
.subsection-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.subsection-head .icon { color: var(--brand); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; border-top: 3px solid var(--brand); padding-top: 18px; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--brand); margin-bottom: 6px; }
.steps h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; background: #fff; }
.faq .accordion-item { border-color: var(--line); }
.faq .accordion-button { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.faq .accordion-button:not(.collapsed) { background: var(--surface); color: var(--ink); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(200,16,46,.15); }
.faq .accordion-body { color: var(--muted); line-height: 1.6; }

/* Bloque MailBaby / VPS */
.ink-panel { background: var(--ink); color: #fff; border-radius: 24px; padding: 40px; }
.ink-panel p, .ink-panel li { color: #C9CDD4; }
.ink-panel .icon { color: var(--amber); }
.ink-panel h2, .ink-panel h3 { color: #fff; }

/* Banda de llamada a la acción y pie */
.cta-band { background: var(--surface); padding: 64px 0; border-top: 1px solid var(--line); }
.site-footer { background: var(--ink); color: #B4B9C3; padding: 64px 0 32px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-title { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8D93A0; margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #3A3E49; margin-top: 48px; padding-top: 24px; font-size: 14px; }

/* Formulario */
.form-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.form-control, .form-select { border-radius: 10px; border-color: var(--line-2); min-height: 46px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(200,16,46,.15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.invoice-box { background: var(--surface); border-radius: 14px; padding: 20px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status.ok { color: var(--ok); font-weight: 700; }
.form-status.err { color: var(--bad); font-weight: 700; }
.modal-content { border-radius: 20px; border: 0; }
.modal-header { border-bottom-color: var(--line); padding: 20px 24px; }
.modal-body { padding: 24px; }

.contact-info { display: grid; gap: 18px; }
.contact-info .item { display: flex; gap: 14px; }
.contact-info .icon { color: var(--brand); margin-top: 2px; }

@media (max-width: 575.98px) {
  .section { padding: 64px 0; }
  .hero, .promo { padding: 64px 0; }
  .aspel-card, .domain-box, .ink-panel { padding: 24px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
