/* =========================================================
   styles.css
   ENARM 2026 - versión final depurada para index.html 2.0
   Base visual: GOB.mx v3 + ajustes específicos del proyecto
   ========================================================= */

:root {
  --enarm-primary: #9b2247;
  --enarm-primary-dark: #611232;
  --enarm-accent: #98989a;
  --enarm-white: #ffffff;
  --enarm-soft: #f7f7f7;
  --enarm-border: #dddddd;
  --enarm-border-soft: #e9e9e9;
  --enarm-text: #333333;
  --enarm-text-soft: #555555;
  --enarm-error: #b00020;

  --enarm-radius-sm: 6px;
  --enarm-radius-md: 10px;
  --enarm-radius-lg: 14px;

  --enarm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --enarm-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);

  --enarm-transition: 0.25s ease;
}

/* =========================
   BASE
   ========================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans", Arial, sans-serif;
  color: var(--enarm-text);
  background: var(--enarm-white);
}

main.page {
  background: var(--enarm-white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  transition:
    color var(--enarm-transition),
    background-color var(--enarm-transition),
    border-color var(--enarm-transition),
    box-shadow var(--enarm-transition);
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

/* =========================
   ACCESIBILIDAD
   ========================= */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--enarm-white);
  color: var(--enarm-primary);
  padding: 10px 14px;
  border-radius: var(--enarm-radius-sm);
  z-index: 2000;
  font-weight: 700;
  box-shadow: var(--enarm-shadow-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
summary:focus {
  outline: 3px solid rgba(19, 50, 43, 0.22);
  outline-offset: 2px;
}

/* =========================
   ESPACIADO GENERAL
   ========================= */
.section-gap {
  padding: 20px 0;
}

.section-gap-sm {
  padding: 28px 0;
}

.section-soft {
  background: var(--enarm-soft);
}

/* Evita que las columnas queden pegadas verticalmente */
.row > [class*="col-"] {
  margin-bottom: 20px;
}

/* =========================
   HERO
   ========================= */
.hero-banner {
  background: var(--enarm-white);
}

.hero-banner .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.hero-anniversary {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(19, 50, 43, 0.08);
  color: var(--enarm-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-title {
  color: var(--enarm-primary);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero-text {
  color: var(--enarm-text-soft);
  max-width: 58ch;
  margin: 0;
}

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

.hero-actions .btn {
  min-width: 190px;
  font-weight: 700;
  border-radius: var(--enarm-radius-sm);
}

.hero-image {
  width: 100%;
  border-radius: var(--enarm-radius-lg);
  box-shadow: var(--enarm-shadow-md);
  object-fit: cover;
}

/* =========================
   BOTONES
   ========================= */
.btn {
  border-radius: var(--enarm-radius-sm);
  font-weight: 700;
  transition: all var(--enarm-transition);
}

.btn-primary {
  background: var(--enarm-primary);
  border-color: var(--enarm-primary);
  color: var(--enarm-white);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--enarm-primary-dark);
  border-color: var(--enarm-primary-dark);
  color: var(--enarm-white);
}

.btn-default.btn-outline,
.btn-outline {
  border: 2px solid var(--enarm-primary);
  color: var(--enarm-primary);
  background: var(--enarm-white);
}

.btn-default.btn-outline:hover,
.btn-default.btn-outline:focus,
.btn-outline:hover,
.btn-outline:focus {
  background: var(--enarm-primary);
  border-color: var(--enarm-primary);
  color: var(--enarm-white);
}

/* =========================
   SUBNAVEGACIÓN
   ========================= */
.site-subnav-wrap {
  background: var(--enarm-primary);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.site-subnav {
  width: 100%;
}

.site-subnav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-subnav-list li {
  margin: 0;
}

.site-subnav-list a {
  display: inline-block;
  padding: 14px 0;
  color: var(--enarm-white);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.site-subnav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--enarm-white);
  transition: width var(--enarm-transition);
}

.site-subnav-list a:hover,
.site-subnav-list a:focus {
  color: var(--enarm-white);
  text-decoration: none;
}

.site-subnav-list a:hover::after,
.site-subnav-list a:focus::after {
  width: 100%;
}

/* =========================
   FRANJA DESTACADA
   ========================= */
.highlight-strip {
  background: var(--enarm-accent);
  color: var(--enarm-white);
  padding: 14px 0;
}

.highlight-strip p {
  margin: 0;
}

.highlight-strip strong {
  color: var(--enarm-white);
}

/* =========================
   ENCABEZADOS DE SECCIÓN
   ========================= */
.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 10px;
  color: var(--enarm-primary);
  font-weight: 800;
}

.section-heading p {
  color: var(--enarm-text-soft);
  margin: 0 auto;
  max-width: 70ch;
}

/* =========================
   TARJETAS Y CAJAS
   ========================= */
.info-card,
.content-box,
.faq-list details {
  background: var(--enarm-white);
  border: 1px solid var(--enarm-border);
  border-radius: var(--enarm-radius-md);
  padding: 24px;
  box-shadow: var(--enarm-shadow-sm);
}

.info-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--enarm-transition),
    box-shadow var(--enarm-transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--enarm-shadow-md);
}

.info-card h3 {
  margin: 0 0 12px;
  color: var(--enarm-primary);
  font-weight: 700;
}

.info-card p {
  color: var(--enarm-text-soft);
  margin-bottom: 14px;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1;
}

.card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--enarm-primary);
  text-decoration: none;
}

.card-link:hover,
.card-link:focus {
  text-decoration: underline;
  color: var(--enarm-primary);
}

/* =========================
   LISTAS DE DOCUMENTOS
   ========================= */
.documents-list {
  margin: 0;
  padding-left: 18px;
}

.documents-list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--enarm-border-soft);
}

.documents-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.documents-list a {
  color: var(--enarm-primary);
  font-weight: 600;
}

.documents-list a:hover,
.documents-list a:focus {
  color: var(--enarm-primary-dark);
  text-decoration: underline;
}

/* =========================
   TABLA FORMAL
   ========================= */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.formal-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--enarm-white);
}

.formal-table caption {
  text-align: left;
  font-weight: 700;
  color: var(--enarm-primary);
  margin-bottom: 12px;
}

.formal-table th,
.formal-table td {
  border: 1px solid var(--enarm-border);
  padding: 14px;
  vertical-align: top;
  text-align: left;
}

.formal-table thead th {
  background: var(--enarm-primary);
  color: var(--enarm-white);
  font-weight: 700;
}

.formal-table tbody th {
  background: #f3f3f3;
  color: var(--enarm-primary);
  width: 80px;
  font-weight: 700;
}

.formal-table tbody tr:nth-child(even) td,
.formal-table tbody tr:nth-child(even) th[scope="row"] {
  background: #fcfcfc;
}

/* =========================
   FAQ
   ========================= */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  margin: 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--enarm-primary);
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "+";
  display: inline-block;
  margin-right: 10px;
  font-weight: 800;
}

.faq-list details[open] summary::before {
  content: "−";
}

.faq-list p {
  margin-top: 14px;
  color: var(--enarm-text-soft);
}

/* =========================
   FORMULARIOS
   ========================= */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--enarm-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #cccccc;
  border-radius: var(--enarm-radius-sm);
  padding: 10px 12px;
  background: var(--enarm-white);
  color: var(--enarm-text);
  transition:
    border-color var(--enarm-transition),
    box-shadow var(--enarm-transition),
    background-color var(--enarm-transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--enarm-primary);
  box-shadow: 0 0 0 3px rgba(19, 50, 43, 0.12);
  outline: none;
}

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

.form-actions {
  margin-top: 16px;
}

.form-actions .btn {
  font-weight: 700;
  border-radius: var(--enarm-radius-sm);
}

/* =========================
   VALIDACIONES
   ========================= */
.field-error {
  margin-top: 6px;
  color: var(--enarm-error);
  font-size: 14px;
  font-weight: 600;
}

.is-invalid {
  border-color: var(--enarm-error) !important;
  background: #fff8f8 !important;
}

/* =========================
   BLOQUE FINAL / AVISO
   ========================= */
.aviso-legal .content-box h2,
.aviso-legal .content-box .h4 {
  margin-top: 0;
  color: var(--enarm-primary);
  font-weight: 800;
}

.aviso-legal .documents-list li {
  word-break: break-word;
}

/* =========================
   AJUSTES DE TIPOGRAFÍA
   ========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  word-wrap: break-word;
}

.content-box > p + .documents-list,
.content-box > p + p,
.content-box > ul + p,
.content-box > p + .btn,
.content-box > p + .row {
  margin-top: 16px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 991px) {
  .section-gap {
    padding: 46px 0;
  }

  .hero-image {
    margin-top: 8px;
  }
}

@media (max-width: 767px) {
  .section-gap {
    padding: 38px 0;
  }

  .section-gap-sm {
    padding: 22px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .site-subnav-list {
    flex-direction: column;
    gap: 0;
  }

  .site-subnav-list a {
    display: block;
    padding: 10px 0;
  }

  .site-subnav-list a::after {
    bottom: 4px;
  }

  .info-card,
  .content-box,
  .faq-list details {
    padding: 20px;
  }

  .formal-table {
    min-width: 680px;
  }
}

@media (max-width: 480px) {
  .hero-anniversary {
    font-size: 0.88rem;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .info-card,
  .content-box,
  .faq-list details {
    padding: 16px;
  }

  .formal-table th,
  .formal-table td {
    padding: 12px;
  }
}

/* =========================
   HERO CAROUSEL
   ========================= */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--enarm-radius-lg);
  box-shadow: var(--enarm-shadow-md);
  background: #f3f3f3;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.45s ease-in-out;
  width: 100%;
}

.hero-slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
}

.hero-slide .hero-image {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(166, 128, 45, 0.85);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--enarm-transition), transform var(--enarm-transition);
  z-index: 2;
}

.hero-carousel-control:hover,
.hero-carousel-control:focus {
  background: rgba(231, 210, 149, 0.95);
}

.hero-carousel-prev {
  left: 12px;
}

.hero-carousel-next {
  right: 12px;
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  padding: 0;
  transition: transform var(--enarm-transition), background var(--enarm-transition);
}

.hero-dot:hover,
.hero-dot:focus {
  background: rgba(255, 255, 255, 0.95);
}

.hero-dot.is-active {
  background: var(--enarm-white);
  transform: scale(1.15);
}

@media (max-width: 767px) {
  .hero-carousel-control {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .hero-carousel-prev {
    left: 8px;
  }

  .hero-carousel-next {
    right: 8px;
  }

  .hero-carousel-dots {
    bottom: 10px;
  }
}


.hero-slide .hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.border-box {
    border: 2px solid #cccccc;
    margin-top: 5px;
    padding: 30px 30px 0px;
    font-size: 14px;
    color: #404041;
}

@media (min-width: 768px){
  .logo-banner{
    min-height: 220px;
    padding: 32px 20px;
  }

  .logo-banner__img{
    width: 420px;
  }
}

/* Desktop */
@media (min-width: 1200px){
  .logo-banner{
    min-height: 260px;
  }

  .logo-banner__img{
    width: 520px;
  }
}

