﻿/* =====================================================================
   DataTur – CSS Secundario (limpio y ordenado)
   - NO modifica .custom-box global (es tu base de plataforma)
   - Certificación Turística (ct-wrap) SOLO layout + centrado vertical
   - Sin cambios de tamaños/colores “raros” en títulos/texto
   ===================================================================== */

/* =========================
   Variables (tema)
   ========================= */
:root {
  --color-fondo01: #600730;  /* guinda fuerte */
  --color-fondo02: #830b3e;  /* guinda claro  */
  --color-fondo03: #FFFFFF;  /* blanco        */
  --color-texto01: #FFFFFF;  /* blanco        */
  --color-icono:   #e6d194;  /* dorado        */
  --color-icono2:  #600730;  /* vino          */

  --font-ui: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --c-up:   #31e1a0;
  --c-down: #ff6b6b;
  --c-text: #161a1d;
  --c-FondoClaroTextoOscuro: #222222;
}

/* =========================
   Base
   ========================= */
html, body {
  font-family: var(--font-ui);
  color: var(--c-FondoClaroTextoOscuro);
}

/* =========================
   Layout principal
   ========================= */
.contenido-central {
  width: 95%;
  max-width: 1800px;
  margin: 0 auto;
  padding-top: 90px;
}

/* =========================
   Botón login
   ========================= */
.login-btn {
  font-size: 1rem;
  color: #600730 !important;
  font-weight: bold;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 7px;
  border: 1px solid #600730;
  background: transparent;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
}
.login-btn:hover,
.login-btn:focus {
  background: #eee;
  color: #9b2247 !important;
  outline: none;
}

/* =========================
   Cajas principales
   ========================= */
.custom-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 20px 0px;
}

/* =========================
   Contenedor Power BI / Iframe
   ========================= */
.custom-box-pbi {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 0;              /* sin padding para no recortar el iframe */
  margin: 20px 0;
  height: 1050px;          /* ajustable */
  overflow: hidden;
}

.custom-box-pbi iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================
   Grid: múltiples PDFs (custom-box dentro)
   ========================= */
.grid-pdf {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.grid-pdf .custom-box {
  flex: 1 1 calc(33.333% - 20px);
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: 280px;
}

/* Dentro del grid-pdf: iframe con aspect ratio */
.grid-pdf .custom-box-pbi {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: 10px;
  height: auto;
  box-shadow: none;
}

.grid-pdf .custom-box-pbi iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================
   Tabla base
   ========================= */
.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table th,
.custom-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

.custom-table thead {
  border: 1px solid #ccc;
  background: var(--color-fondo01);
  color: var(--color-texto01);
  padding: 8px;
  text-align: center;
}

/* =========================
   Hover imágenes
   ========================= */
.hover-img { transition: transform 0.3s ease-in-out; }
.hover-img:hover { transform: scale(1.05); }

/* =========================
   Collapsible
   ========================= */
.collapsible-btn {
  background-color: #004080;
  color: var(--color-texto01);
  padding: 10px 20px;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: bold;
}

.collapsible-content {
  display: none;
  padding: 10px;
  background-color: #f9f9f9;
}

/* =========================
   Banner fade-in
   ========================= */
.fade-in-banner {
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* =========================
   Cards (fade / glass)
   ========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
  background-color: white;
}

.fade-card {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: #f0f0f0;
}

.image-layer { position: absolute; inset: 0; z-index: 1; }
.image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.text-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  color: black;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-card:hover .image-layer img { opacity: 0; }
.fade-card:hover .text-layer { opacity: 1; transform: translateY(0); }

.card-content p { font-size: 16px; margin-bottom: 10px; }
.card-link {
  font-size: 14px;
  color: #ffcc00;
  font-weight: bold;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* =========================
   Reportes grid (meses)
   ========================= */
.reportes-grid {
  padding: 40px;
  background-color: #f8f8f8;
  border: 2px solid #cbd5e0;
  border-radius: 12px;
  max-width: 100%;
  margin: auto;
}

.reportes-grid h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
}

.meses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.mes-card {
  background-color: #fff;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.mes-card p { margin-bottom: 10px; font-size: 16px; }
.mes-card span { font-size: 14px; color: #555; }
.mes-card a { margin: 0 5px; display: inline-block; }

.mes-card img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.mes-card a:hover img {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* =========================
   Íconos personalizados
   ========================= */
.icono-personalizado {
  color: var(--color-icono);
  font-size: 25px;
  margin: 0 4px;
}
.icono-personalizado2 {
  color: var(--color-icono2);
  font-size: 25px;
  margin: 0 4px;
}

/* =========================
   Botón descargar reportes (DataTur)
   ========================= */
.btn-datatur-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-fondo01);
  color: var(--color-texto01) !important;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-datatur-report:hover {
  background-color: var(--color-fondo02);
  text-decoration: none;
  color: var(--color-texto01) !important;
}

.btn-datatur-report i { color: #e6d194; }

/* =========================
   Footer (redes / contacto)
   ========================= */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: var(--color-fondo01);
  color: var(--color-texto01);
  padding: 20px;
  gap: 20px;
}

.footer-column {
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 350px;
}

.footer-map {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.footer-column h4,
.footer-column p,
.footer-column a {
  color: var(--color-texto01);
  margin: 8px 0;
  font-size: 2rem;
  text-decoration: none;
}

.footer-column a:hover { text-decoration: underline; }

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-social a {
  font-size: 3rem;
  color: var(--color-texto01);
  transition: color 0.3s ease;
}

.footer-social a:hover { color: #a57f2c; }

/* =========================
   Modal (básico)
   ========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 160px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-contenido {
  background: var(--color-fondo03);
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.cerrar {
  color: #aaa;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

/* =========================
   Modal fullscreen (páginas en construcción)
   ========================= */
.modal-fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
  z-index: 9999;
}

.contenido-modal {
  position: relative;
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.imagen-construccion {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.cerrarfullscreen {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.3s ease;
}

.cerrarfullscreen:hover { background: rgba(255, 80, 80, 0.9); }

.texto-superior {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 10001;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  text-align: center;
  max-width: 90%;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  animation: fadeInDown 0.6s ease-in-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* =====================================================================
   Certificación Turística (ct-wrap)
   SOLO layout + logo (sin tocar estilos de h3 globales)
   ===================================================================== */

.custom-box.ct-wrap .ct-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  align-items: start; /* texto arriba */
}

.custom-box.ct-wrap .ct-media {
  width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center; /* centra verticalmente */
}

.custom-box.ct-wrap .ct-media img {
  max-width: 190px;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.custom-box.ct-wrap .ct-body h3{
  text-align: left;
}


/* Solo separación de texto (sin cambiar fuente/tamaño) */
.custom-box.ct-wrap .ct-body p {
  margin: 0 0 12px 0;
  line-height: 1.6;
}

/* Responsivo */
@media (max-width: 768px) {
  .custom-box.ct-wrap .ct-item {
    grid-template-columns: 160px 1fr;
    gap: 18px;
  }
  .custom-box.ct-wrap .ct-media { width: 160px; }
  .custom-box.ct-wrap .ct-media img { max-width: 150px; max-height: 160px; }
}

@media (max-width: 600px) {
  .custom-box.ct-wrap .ct-item {
    grid-template-columns: 1fr;
  }
  .custom-box.ct-wrap .ct-media {
    width: 100%;
    justify-content: flex-start;
    align-self: auto;
  }
}


.img-center{
  display: block;
  margin: 12px auto;
  max-width: 100%;
  height: auto;
}

.p-nota{
  font-size: 1.25rem;
  line-height: 1.35;
  opacity: 0.95;   /* opcional: la hace “nota” sin cambiar color */
  margin-top: 8px; /* opcional */
}
