body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.6;
}

/* HERO */
.hero {
  background: #0b1f33;
  color: white;
  padding: 80px 20px;
  position: relative;
  text-align: center;
}

.brand-corner {
  position: absolute;
  top: 20px;
  left: 20px;
}

.brand-corner img {
  max-width: 140px;
  height: auto;
}

.subtitle {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: 1.1rem;
}

/* SECCIONES */
.section {
  padding: 35px 20px;
  max-width: 1000px;
  margin: auto;
}

.section.gray {
  background: #f4f6f8;
}

h2 {
  margin-top: 20px;
  margin-bottom: 15px;
}

h3 {
  margin-top: 15px;
  margin-bottom: 10px;
}

.section h3:first-of-type {
  margin-top: 48px;
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111827;
}

.section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
}

.section p,
.section li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #374151;
}

.sismico-block {
  max-width: 960px;
  margin: 0 auto;
}

/* TABLA */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: center;
}

.comparison-table th {
  background: #eaeaea;
}

/* FOOTER */
.footer {
  background: #0b1f33;
  color: white;
  text-align: center;
  padding: 20px;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.timer-card {
  background: white;
  padding: 20px;
  border: 1px solid #ddd;
  text-align: center;
}

.timer-card .time {
  font-size: 2rem;
  font-weight: bold;
  margin: 15px 0;
}

.timer-card.highlight {
  border: 2px solid #0b1f33;
  background: #eef3f8;
}

.sector-block {
  margin-top: 1.2rem;
  padding-left: 1rem;
  border-left: 4px solid #1f3c88;
}

.sector-block h3 {
  margin-bottom: 0.5rem;
  color: #1f3c88;
}


/* ============================
   SELECTOR DE SECTOR (HERO)
============================= */

.sector-instruction {
  margin-top: 25px;
  font-size: 0.95rem;
  color: #cfd8e3;
  opacity: 0.9;
}

/* Contenedor de los botones */
.sector-tabs {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Botones de sector */
.tab-btn {
  background: #eef3f8;
  border: none;
  padding: 10px 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  color: #0b1f33;
  transition: all 0.2s ease-in-out;
}

.tab-btn:hover {
  background: #d6e4f2;
}

/* Botón activo */
.tab-btn.active {
  background: #1f3c88;
  color: white;
}

/* ============================
   CONTENEDORES POR SECTOR
============================= */

.sector-content {
  display: none;
}

.sector-content.active {
  display: block;
}

/* ============================
   BLOQUE DE IMÁGENES DE PRODUCTO
   (para usarse después)
============================= */

.product-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.product-images img {
  max-width: 280px;
  border: 1px solid #ccc;
  padding: 8px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* CONTENEDOR DE IMÁGENES DE PRODUCTO */
.product-image {
  max-width: 1000px;
  margin: 20px auto;
  text-align: center;
}


/* IMAGEN */
.product-image img {
  width: 100%;
  max-width: 500px;   /* controla el tamaño visual */
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* TEXTO DE REFERENCIA (LEGAL / CONCEPTUAL) */
.product-image figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

/* BRANDING */
.brand {
  text-align: center;
  margin-bottom: 30px;
}

.brand img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

.slogan {
  font-size: 0.95rem;
  color: #b5c9e6;
  margin-top: 8px;
  font-style: italic;
}

.section.gray p {
  margin-bottom: 10px;
}

.section.gray strong {
  display: inline-block;
  margin-top: 10px;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.highlight-col {
  background-color: #dcebf8; /* azul claro institucional */
  font-weight: bold;
  color: #0b1f33;
}

.comparison-table th.highlight-col {
  background-color: #0b1f33;
  color: white;
}

.highlight-col {
  border-left: 3px solid #0b1f33;
  border-right: 3px solid #0b1f33;
}

.sector-link {
  cursor: pointer;
  color: #1f3c88;
  transition: color 0.2s ease;
}

.sector-link:hover {
  color: #0b1f33;
  text-decoration: underline;
}

.download-box {
  margin-top: 40px;
  text-align: center;
}

.download-btn {
  display: inline-block;
  padding: 14px 28px;
  background-color: #1f3c88;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background-color: #162b63;
}

.sector-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  font-style: italic;
}

.inline-sector-link {
  color: #1f3c88;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.inline-sector-link:hover {
  color: #0b1f33;
  text-decoration: none;
}

.sector-note {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #333;
}

.inline-sector-link {
  color: #1f3c88;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.inline-sector-link:hover {
  color: #0b1f33;
}

.contact-btn {
  background: #0b1f33;
  color: white;
  border: 2px solid #1f3c88;
}

.contact-btn:hover {
  background: #1f3c88;
}

.contact-open-btn {
  background: #1f3c88;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.contact-modal {
  display: none;              /* oculto por defecto */
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.6);

  display: flex;
  align-items: center;        /* vertical */
  justify-content: center;    /* horizontal */
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 520px;

  padding: 2rem;
  border-radius: 10px;

  max-height: 90vh;
  overflow-y: auto;

  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);

  animation: fadeInScale 0.3s ease;
}

.modal-content label {
  display: block;
  margin-bottom: 12px;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
}

.send-btn {
  width: 100%;
  background: #1f3c88;
  color: white;
  border: none;
  padding: 12px;
  font-weight: bold;
  border-radius: 4px;
}

.close-modal {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

/* Modal fondo */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}


.modal-content h2 {
  color: #1a2f5c;
  margin-bottom: 1rem;
}

.modal-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Botón cerrar */
.close-modal-btn {
  margin-top: 1rem;
  padding: 10px 22px;
  border: none;
  background: #1a2f5c;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.close-modal-btn:hover {
  background: #25458c;
}

/* Animación */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sector-cross {
  margin: 28px 0 36px;        /* separa del note y del h3 */
  padding-left: 16px;
  border-left: 3px solid #e0e0e0;

  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;

  font-style: italic;
}

.sector-cross strong {
  font-weight: 600;          /* menos agresivo que bold normal */
}

.sector-cross .inline-sector-link {
  font-style: normal;        /* links no en cursiva */
}

.product-ref {
  font-weight: 600;
  white-space: nowrap;
}

.sector-cross {
  margin: 28px 0 36px;
  padding-left: 16px;
  border-left: 3px solid #e0e0e0;
  font-size: 0.95rem;
  color: #444;
  font-style: italic;
}

/* ===============================
   SECCIÓN ALERTAMIENTO SÍSMICO
   =============================== */

#sismico {
  padding: 72px 24px;
  background-color: #fafafa;
}

/* Encabezado */
#sismico .section-header {
  max-width: 980px;
  margin: 0 auto 56px;
}

#sismico h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

#sismico .section-subtitle {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 12px;
}

#sismico .section-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 820px;
}

/* Bloques internos */
#sismico .sismico-block {
  max-width: 980px;
  margin: 0 auto 56px;
}

#sismico .sismico-block h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

#sismico .sismico-block p {
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Listas */
#sismico ul {
  padding-left: 20px;
}

#sismico li {
  margin-bottom: 10px;
  line-height: 1.55;
}

/* ===============================
   TABLA COMPARATIVA (CLAVE)
   =============================== */

#sismico .table-wrapper {
  overflow-x: auto;
}

#sismico .sismico-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

#sismico .sismico-table th,
#sismico .sismico-table td {
  padding: 14px 16px;
  border: 1px solid #ccc;
  text-align: center;
}

#sismico .sismico-table thead {
  background-color: #0b1f33;
  color: white;
}

#sismico .sismico-table th {
  font-weight: 600;
}

/* ===============================
   CONTACTO
   =============================== */

#sismico .sismico-contact {
  max-width: 980px;
  margin: 72px auto;
  padding: 32px;
  background-color: #ffffff;
  border-left: 4px solid #0077cc;
}

#sismico .image-disclaimer {
  font-size: 0.85rem;
  color: #666;
  margin-top: 12px;
}

/* ===============================
   AVISO LEGAL (NO NEGOCIABLE)
   =============================== */

#sismico .sismico-legal {
  max-width: 980px;
  margin: 64px auto 0;
  padding: 24px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;

  font-size: 0.85rem;
  color: #555;
}

#sismico .sismico-legal h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

#sismico .sismico-legal p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #444;
}

.sismico-link {
  font-weight: 600;
  color: #b30000; /* rojo institucional / emergencia */
  text-decoration: underline;
}

.sismico-link:hover {
  color: #7a0000;
}

/* ================= HERO SÍSMICO ================= */

.hero.hero-sismico {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: white;
  padding: 80px 20px;
  position: relative;
  text-align: center;
}


.hero-sismico .section-header {
  max-width: 920px;
  margin: 0 auto;
}

.hero-sismico h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-sismico .section-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: #cbd5f5;
  margin-bottom: 20px;
}

.hero-sismico .section-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #e5e7eb;
  max-width: 760px;
  margin: 0 auto 36px;
}

/* CTA del Hero */
.hero-cta {
  margin-top: 28px;
}

.hero-cta .btn-primary {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  background-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-cta .btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.sismico-contact {
  background-color: #f8fafc;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.sismico-contact p {
  max-width: 720px;
  margin: 0 auto 12px;
}

/* ================= BREADCRUMB ================= */

/* Breadcrumb dentro del hero */
.hero-sismico {
  position: relative;
}

/* Breadcrumb centrado arriba */
.breadcrumb-nav {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  z-index: 10;
  text-align: center;
}

.breadcrumb-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

.breadcrumb-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.breadcrumb-context {
  margin-left: 6px;
  opacity: 0.8;
}





.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 6px;
}



/* Navegación sísmica */
.sismico-nav {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.sismico-nav a {
  color: #0056b3;
  text-decoration: none;
  font-weight: 500;
}

.sismico-nav a:hover {
  text-decoration: underline;
}

.sismico-nav .breadcrumb {
  color: #666;
}

/* ===============================
   ONE PAGER DOWNLOAD SECTION
=================================*/

.sismico-download {
  padding: 60px 24px;
  display: flex;
  justify-content: center;
}

.download-card {
  max-width: 720px;
  background: #f8fafc;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
}

.download-card h3 {
  margin-bottom: 16px;
}

.download-card p {
  margin-bottom: 24px;
  color: #475569;
}

.download-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.download-btn:hover {
  background: #1e40af;
  transform: translateY(-2px);
}
