:root {
  --font-heading: 'Archivo', Arial, Helvetica, sans-serif;
  --font-body: 'Work Sans', Arial, Helvetica, sans-serif;
  --color-primary: #E51E26;
  --color-primary-hover: #c8141e;
  --color-bg-dark: #141414;
  --color-footer-bg: #070707;
  --color-text: #1a1a1a;
  --color-nav: #7a8b99;
  --grid-width: 1224px;
  --col-gap: 24px;
  --row-gap: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img {
  max-width: 100%;
}

/* Estructura Sticky Footer: mantiene el footer siempre hasta abajo */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-footer-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* El contenedor principal crece para empujar el footer hacia abajo */
main.page {
  flex: 1 0 auto;
  background-color: #ffffff;
}

/* Páginas oscuras: el color de texto blanco se fija aquí para que
   nunca quede texto negro sobre fondo oscuro */
main.page-dark {
  background-color: var(--color-bg-dark);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- TÍTULOS CENTRADOS Y PÁRRAFOS JUSTIFICADOS (Extra conservado) --- */
h1,
h2,
h3 {
  text-align: center;
}

p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.block-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--row-gap) var(--col-gap);
  max-width: var(--grid-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* --- ANIMACIONES SUAVES --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 {
  animation-delay: 0.15s;
}

/* Aparición al hacer scroll: main.js añade esta clase a los elementos que
   aún no están a la vista; la animación queda en pausa (invisible) hasta que
   el elemento entra en pantalla y se quita la clase. */
.animate-fade-up.reveal-pending {
  animation-play-state: paused;
}

/* --- HEADER Y NAVEGACIÓN ANIMADA --- */
.top-blocks--sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  height: 118px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-container {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: inline-block;
  transition: transform 0.25s ease;
}

.logo-link:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 38px;
  align-items: center;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--color-nav);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 400;
  padding: 6px 0;
  transition: color 0.25s ease;
}

/* Subrayado animado profesional */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover {
  color: #111111;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Enlace de la página actual */
.nav-link[aria-current='page'] {
  color: var(--color-primary);
}

.nav-link[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Botón hamburguesa (solo visible en móvil) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* --- SECCIÓN HERO (INICIO) --- */
.block-hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0a0c10;
}

.block-background {
  position: absolute;
  inset: 0;
  background-color: #0a0c10;
  background-image: linear-gradient(
      90deg,
      rgba(10, 12, 16, 0.88) 0%,
      rgba(10, 12, 16, 0.4) 58%,
      rgba(10, 12, 16, 0.15) 100%
    ),
    url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
}

/* Contenido del hero centrado (Extra conservado) */
.hero-content {
  grid-column: 1 / -1;
  color: #ffffff;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e0e0e0;
  margin-bottom: 16px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 20px;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 36px;
  text-align: center;
}

.hero-actions {
  text-align: center;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 30, 38, 0.3);
}

/* --- SECCIÓN CONTACTO ("Hablemos") --- */
.contact-section {
  padding: 72px 24px 84px;
  width: 100%;
}

.contact-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.32fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  color: #ffffff;
  padding-top: 8px;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 42px;
  letter-spacing: -0.01em;
}

.contact-lead {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 28px;
  text-align: justify;
}

.contact-description {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #e2e2e2;
  text-align: justify;
}

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: #e9ecef;
  border: 2px solid transparent;
  border-radius: 0;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #1a1a1a;
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #7b848c;
}

.form-group input:focus,
.form-group textarea:focus {
  background-color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(229, 30, 38, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 108px;
}

.btn-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 3px;
  padding: 15px 28px;
  cursor: pointer;
  margin-top: 4px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Zoom + oscurecimiento + brillo (solo en dispositivos con cursor) */
@media (hover: hover) {
  .btn-submit:hover:not(:disabled) {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(229, 30, 38, 0.3);
  }
}

/* Efecto al presionar */
.btn-submit:active:not(:disabled) {
  transform: translateY(0) scale(1);
  box-shadow: 0 3px 8px rgba(229, 30, 38, 0.25);
}

/* Foco con teclado */
.btn-submit:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.btn-submit:disabled {
  cursor: wait;
  opacity: 0.85;
}

/* Spinner de carga dentro del botón */
.btn-submit.is-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Estado de confirmación que reemplaza al formulario (Tu Base) */
.form-success-state {
  min-height: 390px;
  background-color: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--color-primary);
  border-radius: 4px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.form-success-state[hidden],
.contact-form[hidden] {
  display: none !important;
}

.success-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: rgba(229, 30, 38, 0.12);
  border: 1px solid rgba(229, 30, 38, 0.4);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.success-icon {
  width: 28px;
  height: 28px;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  text-align: center;
}

.success-text {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.6;
  color: #d4d4d4;
  max-width: 380px;
  margin-bottom: 28px;
  text-align: center;
  hyphens: none;
  -webkit-hyphens: none;
}

.btn-reset-form {
  background: transparent;
  color: #a3a3a3;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

/* Zoom + levantado + brillo (solo en dispositivos con cursor) */
@media (hover: hover) {
  .btn-reset-form:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(229, 30, 38, 0.3);
  }
}

/* Efecto al presionar */
.btn-reset-form:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 3px 8px rgba(229, 30, 38, 0.25);
}

/* Foco con teclado */
.btn-reset-form:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.form-error {
  background-color: rgba(220, 38, 38, 0.18);
  border: 1px solid #ef4444;
  color: #fee2e2;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.form-note {
  color: #e5e5e5;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-top: 22px;
  text-align: justify;
}

/* --- FOOTER UNIFICADO --- */
.site-footer {
  flex-shrink: 0;
  background-color: var(--color-footer-bg);
  color: #ffffff;
  padding: 64px 24px 44px;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
}

/* Animación del footer (Extra conservado) */
.footer-container.footer-zoom {
  opacity: 0;
  transform: scale(0.85);
  transform-origin: center center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.footer-container.footer-zoom.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .footer-container.footer-zoom {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 18px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.footer-accent-line {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-slogan {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: left;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 8px;
}

.footer-right p {
  text-align: right;
}

.footer-contact-label {
  color: var(--color-primary);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.footer-mail {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}

.footer-mail:hover {
  color: var(--color-primary);
}

.footer-support {
  color: #e5e5e5;
  font-size: 0.9rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  margin: 14px 0 10px;
}

.footer-legal-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-legal-links a {
  color: #ffffff;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
  opacity: 0.75;
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  text-align: left;
}

/* --- PÁGINA FILOSOFÍA --- */
.page-filosofia {
  justify-content: flex-start;
}

/* 1. Portada (fondo más oscuro) */
.fil-hero {
  background-color: #0b0b0b;
  color: #ffffff;
  padding: 18px 24px 42px;
  width: 100%;
}

.fil-wrap {
  max-width: 1196px;
  margin: 0 auto;
}

.fil-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-align: center;
  color: #ffffff;
  margin-bottom: 44px;
}

.fil-title span {
  color: var(--color-primary-hover);
}

.fil-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.16fr;
  gap: 55px;
  align-items: stretch;
}

.fil-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 40px;
}

.fil-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 1.6vw, 1.65rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #a8a8a8;
  text-align: center;
}

.fil-tagline span {
  color: var(--color-primary-hover);
}

.fil-hero-p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0.03em;
  text-align: justify;
  color: #b0b0b0;
  margin: 0 0 0 20px;
}

.foto-hero {
  aspect-ratio: 768 / 472;
  border-radius: 10px;
}

/* 2-4. Bloque oscuro con filas texto/foto */
.fil-band {
  background-color: var(--color-bg-dark);
  color: #ffffff;
  width: 100%;
  padding: 24px 0 90px;
}

.fil-row {
  max-width: 1196px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  align-items: start;
}

.foto-card {
  aspect-ratio: 768 / 512;
  max-width: 480px;
  justify-self: center;
}

img.foto-hero,
img.foto-card {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: #1f1f1f;
}

.fil-col-text {
  text-align: center;
  padding: 0 40px;
}

.fil-h2 {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 1.6vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #9b9b9b;
  margin: 40px 0 62px;
  text-align: center;
}

.fil-h2-light {
  font-size: 1.05rem;
  font-weight: 400;
  margin: 28px 0 0;
}

.fil-p {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  line-height: 1.3;
  color: #ffffff;
  max-width: 520px;
  margin: 0 auto;
  text-align: justify;
}

.fil-p-bold {
  font-weight: 600;
  max-width: 450px;
}

.fil-p-bold strong {
  font-weight: 700;
}

/* 2. Historia */
.fil-row-historia {
  padding-bottom: 100px;
}

/* 3. Así Pensamos */
.fil-row-pensamos {
  grid-template-rows: auto auto;
  padding-bottom: 43px;
}

.fil-kicker {
  grid-column: 1;
  grid-row: 1;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #9b9b9b;
  margin: 0 0 90px;
}

.fil-values {
  grid-column: 1;
  grid-row: 2;
  padding: 0 24px;
}

.fil-value {
  text-align: center;
  margin-bottom: 40px;
}

.fil-value:last-child {
  margin-bottom: 0;
}

.fil-value-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 30px;
  text-align: center;
}

.foto-pensamos {
  grid-column: 2;
  grid-row: 2;
  margin-top: 33px;
}

/* 4. Ámbito de confianza */
.fil-ambito-text .fil-p {
  margin-top: 130px;
}

/* 5. El siguiente paso es tuyo */
.fil-next {
  background-color: var(--color-bg-dark);
  color: #ffffff;
  text-align: center;
  padding: 60px 24px 110px;
  width: 100%;
}

.fil-next-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.6vw, 5.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #ffffff;
  max-width: 640px;
  margin: 0 auto 58px;
  text-align: center;
}

.fil-next-p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: justify;
}

.fil-next-p:last-child {
  margin-bottom: 0;
}

/* --- PÁGINA COBERTURA --- */
.page-cobertura {
  justify-content: flex-start;
}

.cob-intro {
  padding: 12px 24px 0;
  text-align: center;
}

.cob-title {
  font-family: var(--font-body);
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  text-align: center;
}

.cob-subtitle {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 6px 0 24px;
  text-align: center;
}

.cob-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #ffffff;
  max-width: 440px;
  margin: 0 auto;
  text-align: justify;
}

/* Mapa de cobertura (iframe de Altán) */
.cob-map-section {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 40px 20px 72px;
}

.mapa-altan-container {
  width: 90%;
  max-width: 1200px;
  height: 70vh;
  height: 70dvh;
  min-height: 500px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
  background-color: #1a1a1a;
  overflow: hidden;
}

.mapa-altan-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up {
    animation: none;
  }
}

/* --- RESPONSIVO --- */

/* Tablets y laptops pequeñas */
@media (max-width: 1024px) {
  .top-blocks--sticky {
    height: 88px;
  }
  .logo-img {
    height: 40px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.14);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0s linear 0.35s;
  }
  .nav-menu.is-open {
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0s;
    -webkit-overflow-scrolling: touch;
  }
  .nav-link {
    font-size: 1.05rem;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .nav-link:last-child {
    border-bottom: 0;
  }
  .nav-link::after {
    left: 24px;
    bottom: 10px;
    width: calc(100% - 48px);
  }

  .block-hero {
    min-height: 700px;
  }
  .hero-content {
    grid-column: 1 / -1;
  }
  .fil-hero-grid {
    gap: 32px;
  }
  .fil-row {
    column-gap: 28px;
  }
  .fil-col-text {
    padding: 0 16px;
  }
  .fil-values {
    padding: 0 8px;
  }
  .contact-container {
    gap: 40px;
  }
}

/* Celulares y tablets verticales */
@media (max-width: 768px) {
  /* Inicio */
  .block-hero {
    min-height: 600px;
  }
  .hero-content {
    grid-column: 1 / -1;
    text-align: center;
  }

  /* Cobertura */
  .cob-intro {
    padding-top: 14px;
  }
  .cob-subtitle {
    margin-bottom: 18px;
  }
  .cob-map-section {
    padding: 32px 12px 56px;
  }
  .mapa-altan-container {
    width: 100%;
    height: 70vh;
    height: 70dvh;
    min-height: 420px;
    border-radius: 14px;
  }

  /* Filosofía */
  .fil-next {
    padding: 28px 24px 64px;
  }
  .fil-next-title {
    margin-bottom: 32px;
  }
  .fil-next-p {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .fil-hero {
    padding: 14px 24px 36px;
  }
  .fil-title {
    margin-bottom: 28px;
  }
  .fil-hero-grid,
  .fil-row {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
  .fil-hero-text {
    padding-top: 0;
    gap: 24px;
  }
  .fil-hero-p {
    margin-left: 0;
    text-align: justify;
    letter-spacing: 0.01em;
  }
  .fil-band {
    padding: 28px 0 56px;
  }
  .fil-col-text {
    padding: 0;
  }
  .fil-h2 {
    margin: 0 0 20px;
  }
  .fil-h2-light {
    margin: 0;
  }
  .fil-p {
    font-size: 1rem;
    line-height: 1.5;
  }
  .fil-ambito-text .fil-p {
    margin-top: 20px;
  }
  .fil-row-historia,
  .fil-row-pensamos {
    padding-bottom: 48px;
  }
  .fil-kicker,
  .fil-values,
  .foto-pensamos {
    grid-column: 1;
    grid-row: auto;
  }
  .fil-kicker {
    font-size: 1.1rem;
    margin-bottom: 0;
  }
  .foto-pensamos {
    margin-top: 0;
  }
  .fil-values {
    padding: 0;
  }
  .fil-value {
    margin-bottom: 32px;
  }
  .fil-value-title {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }
  .foto-card {
    max-width: 100%;
  }
  .fil-row-ambito .foto-card {
    order: 2;
  }

  /* Contacto */
  .contact-section {
    padding: 48px 24px 64px;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-title {
    margin-bottom: 24px;
  }
  .contact-lead,
  .contact-description,
  .form-note {
    font-size: 1rem;
  }
  .form-group input,
  .form-group textarea {
    font-size: 1rem;
  }

  /* Footer */
  .site-footer {
    padding: 48px 24px 36px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-right {
    align-items: flex-start;
    text-align: left;
  }
  .footer-right p {
    text-align: left;
  }
  .footer-legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {
  .header-container {
    padding: 0 16px;
  }
  .nav-link {
    padding: 18px 16px;
  }
  .nav-link::after {
    left: 16px;
    width: calc(100% - 32px);
  }
  .block-hero {
    min-height: 540px;
  }
  .block-layout {
    padding: 0 16px;
  }
  .hero-badge {
    font-size: 0.8rem;
  }
  .hero-subtitle {
    margin-bottom: 28px;
  }
  .fil-hero,
  .fil-row {
    padding-left: 16px;
    padding-right: 16px;
  }
  .contact-section {
    padding: 40px 16px 56px;
  }
  .btn-submit {
    width: 100%;
    align-self: stretch;
  }
  .site-footer {
    padding: 40px 16px 32px;
  }
}

/* ============================================================
   SECCIÓN UNIFICADA: PÁGINA ACCESOS (Integrado desde Accesos.css)
   ============================================================ */

/* ============================================================
   PÁGINA ACCESOS — se carga después de styles.css
   Reutiliza las variables de :root (colores y tipografías)
   ============================================================ */

.page-accesos {
  justify-content: flex-start;
}

.acc-wrap {
  max-width: 1196px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Intro ---------- */
.acc-intro {
  padding: 40px 24px 12px;
  text-align: center;
}

.acc-title {
  font-family: var(--font-body);
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.acc-subtitle {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 8px 0 18px;
  text-align: center;
}

.acc-text {
  font-size: 1.02rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #d4d4d4;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Cabeceras de sección ---------- */
.acc-section-head {
  text-align: center;
  margin-bottom: 36px;
}

.acc-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.acc-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
}

.acc-h2 span {
  color: var(--color-primary-hover);
}

.acc-section-sub {
  color: #a8a8a8;
  font-size: 0.98rem;
  margin: 12px auto 0;
  max-width: 460px;
  text-align: center;
}

/* ---------- Bloque TOP ---------- */
.acc-top {
  background-color: #0b0b0b;
  margin-top: 40px;
  padding: 64px 0 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.acc-catalog {
  padding: 72px 0 96px;
}

/* ---------- Rejillas ---------- */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ---------- Tarjeta ---------- */
.acc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 24px 22px 22px;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .acc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 30, 38, 0.55);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  }
}

.acc-card.is-top {
  background: linear-gradient(180deg, #221213 0%, #1b1b1b 46%);
  border-color: rgba(229, 30, 38, 0.45);
  border-top: 3px solid var(--color-primary);
}

.acc-badge-top {
  position: absolute;
  top: -1px;
  right: 18px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px 6px;
  border-radius: 0 0 5px 5px;
}

.acc-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.acc-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cfcfcf;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
}

.acc-tag-familia {
  color: #ffffff;
  border-color: rgba(229, 30, 38, 0.6);
}

.acc-card-name {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-align: left;
  margin-bottom: 14px;
}

.acc-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.acc-price-amount {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.acc-price-amount small {
  font-size: 0.9rem;
  font-weight: 600;
  color: #a8a8a8;
  margin-left: 4px;
  letter-spacing: 0;
}

.acc-price-note {
  font-size: 0.78rem;
  color: #9a9a9a;
  text-align: left;
}

.acc-data {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  text-align: left;
  margin-bottom: 4px;
}

.acc-data-sub {
  font-size: 0.82rem;
  color: #b0b0b0;
  text-align: left;
  margin-bottom: 14px;
}

.acc-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.acc-feats li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #e2e2e2;
}

.acc-feats li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

.acc-feats li.is-no {
  color: #8d8d8d;
}

.acc-feats li.is-no::before {
  width: 10px;
  height: 0;
  border-left: 0;
  border-bottom: 2px solid #666;
  transform: none;
  top: 0.62em;
}

.acc-feats li.is-pending {
  color: #9a9a9a;
}

.acc-feats li.is-pending::before {
  width: 8px;
  height: 8px;
  border: 2px solid #777;
  border-radius: 50%;
  transform: none;
  top: 0.32em;
}

.acc-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.acc-btn {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 13px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.acc-btn-more {
  background: transparent;
  color: #e8e8e8;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.acc-btn-buy {
  background-color: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
}

@media (hover: hover) {
  .acc-btn-more:hover {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
  }
  .acc-btn-buy:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 30, 38, 0.3);
  }
}

.acc-btn:active {
  transform: translateY(0);
}

.acc-btn:focus-visible,
.acc-chip:focus-visible,
.acc-modal-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ---------- Filtros ---------- */
.acc-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.acc-filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.acc-chip {
  background: transparent;
  color: #bdbdbd;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) {
  .acc-chip:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
  }
}

.acc-chip.is-active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.acc-count {
  text-align: center;
  font-size: 0.85rem;
  color: #9a9a9a;
  margin-bottom: 22px;
}

.acc-empty {
  text-align: center;
  color: #bdbdbd;
  padding: 40px 0;
}

.acc-empty[hidden] {
  display: none;
}

.acc-notes {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.acc-notes p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #9a9a9a;
  text-align: left;
  margin-bottom: 6px;
}

/* ---------- Ventana "Explícame más" ---------- */
.acc-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 640px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  color: #ffffff;
  overflow: visible;
}

.acc-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
}

.acc-modal[open] .acc-modal-inner {
  animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.acc-modal-inner {
  position: relative;
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--color-primary);
  border-radius: 8px;
  padding: 34px 32px 30px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  text-align: left;
}

.acc-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  color: #bdbdbd;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.acc-modal-close:hover {
  color: #ffffff;
}

.acc-modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
  margin: 12px 0 6px;
  padding-right: 30px;
}

.acc-modal-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.acc-modal-price small {
  font-size: 0.8rem;
  color: #a8a8a8;
  font-weight: 400;
  margin-left: 6px;
}

.acc-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.acc-spec div {
  background-color: #1b1b1b;
  padding: 12px 14px;
}

.acc-spec dt {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 4px;
}

.acc-spec dd {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
}

.acc-spec dd.is-pending {
  color: #9a9a9a;
  font-weight: 400;
}

.acc-modal-ficha {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cfcfcf;
  text-align: left;
  margin-bottom: 22px;
}

.acc-modal-note {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #8d8d8d;
  text-align: left;
  margin-bottom: 22px;
}

.acc-modal-actions {
  display: flex;
  gap: 10px;
}

/* ---------- Aviso breve ---------- */
.acc-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 200;
  background-color: #ffffff;
  color: #141414;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: calc(100% - 32px);
  text-align: center;
  animation: fadeUp 0.3s ease both;
}

.acc-toast[hidden] {
  display: none;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .acc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .acc-intro {
    padding-top: 28px;
  }
  .acc-wrap {
    padding: 0 16px;
  }
  .acc-grid {
    grid-template-columns: 1fr;
  }
  .acc-top {
    padding: 48px 0 56px;
    margin-top: 28px;
  }
  .acc-catalog {
    padding: 52px 0 72px;
  }
  .acc-filter-group {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .acc-chip {
    flex-shrink: 0;
  }
  .acc-modal-inner {
    padding: 28px 20px 24px;
  }
  .acc-spec {
    grid-template-columns: 1fr;
  }
  .acc-modal-actions {
    flex-direction: column;
  }
}

/* Evita cortes de palabra con guion (regla global p { hyphens: auto }) */
.acc-card p,
.acc-modal p,
.acc-notes p,
.acc-count,
.acc-empty {
  hyphens: none;
  -webkit-hyphens: none;
}

/* ==========================================================================
   ESTILOS DEL FLUJO DE COMPRA, RECARGA, RESULTADO Y PANEL ADMIN - RACING MOBILE
   Respeta la identidad oscura y tipografías Archivo / Work Sans
   ========================================================================== */

:root {
  --rm-red: #E51E26;
  --rm-red-hover: #c4151c;
  --rm-bg-dark: #0B0C0E;
  --rm-card-dark: #14161A;
  --rm-border-dark: rgba(255, 255, 255, 0.12);
  --rm-text-main: #FFFFFF;
  --rm-text-muted: rgba(255, 255, 255, 0.68);
  --rm-green: #18B96B;
  --rm-amber: #F59E0B;
}

.rm-flow-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.rm-flow-header {
  margin-bottom: 36px;
}

.rm-kicker {
  display: inline-block;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rm-red);
  margin-bottom: 10px;
}

.rm-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--rm-text-main);
  margin: 0 0 10px;
}

.rm-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.05rem;
  color: var(--rm-text-muted);
  max-width: 680px;
  margin: 0;
}

/* Grid de 2 columnas en Checkout y Resultado */
.rm-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .rm-checkout-grid {
    grid-template-columns: 1fr;
  }
}

.rm-card {
  background: var(--rm-card-dark);
  border: 1px solid var(--rm-border-dark);
  border-radius: 16px;
  padding: 28px;
  color: var(--rm-text-main);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.rm-card-highlight {
  border-color: rgba(229, 30, 38, 0.55);
  background: linear-gradient(165deg, rgba(229, 30, 38, 0.11) 0%, #14161A 65%);
}

.rm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.rm-badge-red {
  background: rgba(229, 30, 38, 0.2);
  color: #ff6b70;
  border: 1px solid rgba(229, 30, 38, 0.45);
}

.rm-badge-green {
  background: rgba(24, 185, 107, 0.18);
  color: #4ade80;
  border: 1px solid rgba(24, 185, 107, 0.4);
}

.rm-badge-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.rm-price-big {
  font-family: 'Archivo', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: #fff;
  margin: 14px 0 6px;
}

.rm-price-big small {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--rm-text-muted);
  margin-left: 6px;
}

.rm-spec-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  border-top: 1px solid var(--rm-border-dark);
}

.rm-spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.94rem;
}

.rm-spec-list li span:first-child {
  color: var(--rm-text-muted);
}

.rm-spec-list li strong {
  color: #fff;
  text-align: right;
}

/* Formularios del Flujo */
.rm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .rm-form-grid {
    grid-template-columns: 1fr;
  }
}

.rm-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.rm-field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.rm-field input,
.rm-field select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 13px 14px;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.96rem;
  transition: border-color 0.2s ease;
}

.rm-field input:focus,
.rm-field select:focus {
  outline: none;
  border-color: var(--rm-red);
}

.rm-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.rm-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rm-radio-card:hover,
.rm-radio-card:has(input:checked) {
  border-color: var(--rm-red);
  background: rgba(229, 30, 38, 0.09);
}

.rm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: var(--rm-red);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.rm-btn-primary:hover {
  background: var(--rm-red-hover);
}

.rm-btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.rm-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.rm-btn-outline:hover {
  border-color: #fff;
}

/* Estados de espera y alerta */
.rm-alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.rm-alert-error {
  background: rgba(229, 30, 38, 0.15);
  border: 1px solid rgba(229, 30, 38, 0.5);
  color: #fca5a5;
}

.rm-alert-wait {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.rm-alert-success {
  background: rgba(24, 185, 107, 0.15);
  border: 1px solid rgba(24, 185, 107, 0.45);
  color: #86efac;
}

/* Tabla del Panel Privado Admin */
.rm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rm-border-dark);
  border-radius: 14px;
  background: var(--rm-card-dark);
}

.rm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  color: #fff;
}

.rm-table th,
.rm-table td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rm-table th {
  background: rgba(255, 255, 255, 0.04);
  font-family: 'Archivo', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rm-text-muted);
}

.rm-qr-box {
  display: inline-block;
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  margin: 14px 0;
}

/* Overrides contra reglas globales de styles.css dentro del flujo de compra y admin */
.rm-flow-wrap h1,
.rm-flow-wrap h2,
.rm-flow-wrap h3,
.rm-flow-wrap p {
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
}

.hero-subtitle--solo { margin-bottom: 0; }

.cob-map-legend,
.cob-map-note {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  text-align: left;
}

.cob-map-legend {
  margin-top: 16px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.cob-map-note {
  margin-top: 8px;
  color: #d7d7d7;
  font-size: 0.94rem;
  line-height: 1.55;
}

@media (max-width: 680px) {
  .cob-map-legend,
  .cob-map-note {
    padding-left: 16px;
    padding-right: 16px;
  }
}
