:root {
  --surface: #ffffff;
  --surface-soft: #f3f6f9;
  --border: #dde4eb;
  --ink: #151826;
  --muted: #667085;
  --coral: #f03350;
  --coral-deep: #b20f32;
  --success: #0a8f63;
  --danger: #c23737;
  --shadow: 0 18px 48px rgba(18, 24, 38, 0.08);
  --container: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fffefe 0%, #f6f7fb 18%, #f6f7fb 100%);
  color: var(--ink);
  font-family: "Segoe UI Variable Display", "Segoe UI", "Arial Nova", sans-serif;
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

.container,
.shell {
  width: min(calc(100% - 32px), var(--container, 1320px));
  margin: 0 auto;
}

/* Header y Footer manejados por componentes header.js/footer.js y header.css/footer.css */

.promo-carousel-wrap { padding: 18px 0 0; }

.promo-carousel {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 0px;
  box-shadow: var(--shadow);
}

.promo-track { position: relative; min-height: 430px; }
.promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  border-radius: 0px;
}

.promo-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.promo-slide {
  background-position: center;
  background-size: cover;
}

.promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  width: min(720px, 100%);
  padding: 38px 42px 92px;
  color: #fff;
}

.promo-kicker,
.eyebrow,
.card-kicker,
.shelf-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 11px;
  border-radius: 0px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-kicker {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.eyebrow,
.card-kicker,
.shelf-kicker {
  background: rgba(240, 51, 80, 0.1);
  color: var(--coral-deep);
}

.promo-content h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.promo-content h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 3.6vw, 4.2rem);
}

.promo-content p,
.hero-copy,
.card-copy,
.shelf-card p {
  line-height: 1.6;
}

.promo-content > p {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.84);
  margin-top: 16px;
}

.promo-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-button,
.submit-button,
.social-button,
.ghost-button,
.carousel-arrow,
.carousel-dot {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.hero-button,
.submit-button,
.social-button,
.ghost-button,
.carousel-arrow {
  cursor: pointer;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 0px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(240, 51, 80, 0.2);
}

.hero-button.secondary {
  background: #f3f6f9;
  color: var(--ink);
  box-shadow: none;
}

.hero-button.secondary.light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.promo-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.92);
  color: #151826;
  font-size: 1.1rem;
  font-weight: 900;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 30px;
  background: #fff;
}

.page-layout {
  padding: 24px 0 40px;
}

.content-column.full-width {
  width: 100%;
}

.shelf-card,
.login-drawer {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 0px;
}

.featured-section,
.provider-section {
  margin-bottom: 20px;
}

.section-head-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head-line h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.section-link {
  color: var(--coral-deep);
  font-weight: 800;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.featured-card {
  overflow: hidden;
  border-radius: 0px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(18, 24, 38, 0.05);
}

.featured-media {
  aspect-ratio: 1 / 1;
  background-position: center;
  background-size: cover;
  background-color: #eef2f7;
  border-radius: 0px;
}

.featured-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.featured-meta {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-copy h3 {
  margin: 0;
  min-height: 2.7em;
  font-size: 0.96rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-submeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.featured-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.featured-row strong {
  font-size: 1.05rem;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 0px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.provider-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  padding: 24px;
  border-radius: 0px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 20%),
    radial-gradient(circle at left center, rgba(240, 51, 80, 0.18), transparent 30%),
    linear-gradient(140deg, #171d2d 0%, #232d47 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.provider-copy-block h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.provider-copy-block p:last-of-type {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.provider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.provider-benefits {
  display: grid;
  gap: 12px;
}

.provider-benefits article {
  padding: 18px;
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.provider-benefits strong {
  display: block;
  margin-bottom: 6px;
}

.provider-benefits span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

/* Login Drawer manejado por header.css */

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.drawer-title-group h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.card-copy {
  color: var(--muted);
  margin: 10px 0 0;
}

.drawer-close {
  width: 42px;
  height: 42px;
  border-radius: 0px;
  background: #eff4f8;
  color: #1f2937;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 0px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.input-shell:focus-within {
  border-color: rgba(240, 51, 80, 0.56);
  box-shadow: 0 0 0 4px rgba(240, 51, 80, 0.1);
}

.input-icon {
  width: 22px;
  color: var(--muted);
  font-weight: 900;
}

.input-shell input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.toggle-password {
  background: transparent;
  color: var(--coral-deep);
  font-weight: 800;
  cursor: pointer;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.check-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.check-field input {
  accent-color: var(--coral);
}

.text-link {
  color: var(--coral-deep);
  font-weight: 700;
}

.submit-button,
.social-button,
.ghost-button {
  min-height: 52px;
  border-radius: 0px;
  font-weight: 800;
}

.submit-button {
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
}

.submit-button[disabled] {
  opacity: 0.82;
  cursor: progress;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8791a3;
}

.divider span {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.secondary-actions {
  display: grid;
  gap: 10px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.ghost-button {
  background: #eef4f8;
  color: #27485a;
}

.google-badge {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.google-badge svg {
  width: 100%;
  height: 100%;
}

.status-message {
  min-height: 24px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.status-message.is-error {
  color: var(--danger);
}

.status-message.is-success {
  color: var(--success);
}

.site-footer {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(240, 51, 80, 0.08), transparent 24%),
    linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.footer-pro {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 24px;
  padding: 34px 0 26px;
}

.footer-brand-block p,
.footer-column span,
.footer-column a,
.footer-link-button {
  color: var(--muted);
  line-height: 1.65;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column strong {
  font-size: 0.96rem;
}

.footer-link-button {
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.footer-bottom,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(221, 228, 235, 0.9);
}

[hidden] {
  display: none !important;
}

.hero-button:hover,
.submit-button:hover,
.social-button:hover,
.ghost-button:hover,
.carousel-arrow:hover,
.carousel-dot:hover {
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .footer-pro,
  .featured-grid,
  .provider-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .top-banner-row,
  .footer-row,
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .provider-actions {
    flex-wrap: wrap;
  }

  .promo-content,
  .login-drawer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .promo-content { padding-bottom: 86px; }

  .promo-content h2 { max-width: none; }

  .promo-controls {
    right: 14px;
    left: 14px;
    bottom: 14px;
  }
}
