@font-face {
  font-family: 'Davey';
  src: url('/fonts/Davey.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --color-vino: #691B32;
  --color-rojo: #A02142;
  --color-dorado-claro: #D6B270;
  --color-dorado: #D0A153;
  --color-gris: #707271;
  --color-oscuro: #1f040c;
  --font-title: 'Davey', 'Montserrat', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --content-width: 70%;
  --content-margin: 15%;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: var(--font-body);
  color: #2b2b2b;
  background-color: #ffffff;
  overflow-x: hidden;
  padding-top: 30px;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- HEADER ---------- */
.site-header {
  width: 100%;
  background: #ececec;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0;
}

.main-menu ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

.main-menu a {
  text-decoration: none;
  color: #707271;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
  
}

.main-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--color-vino);
  transition: width 0.3s ease;
}

.main-menu a:hover {
  color: var(--color-vino);
}

.main-menu a:hover::after {
  width: 100%;
}

/* ---------- HERO ---------- */
.hero {
  width: 100%;
  padding: 60px 0;
  position: relative;
  background-image: url('../img/fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero-left {
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logotipo {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.hero-right {
  width: 65%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.presidenta-foto {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--color-dorado);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  align-self: center;
}

.presidenta-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mensaje p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: #ffffff;
  font-style: italic;
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}
.firma {
  border-top: 2px solid var(--color-dorado-claro);
  padding-top: 14px;
  margin-top: 10px;
}

.firma-nombre {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 20px;
  color: #ffffff;
}

.firma-cargo {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

/* ---------- SECTION TITLES ---------- */
.section-title {
  font-family: var(--font-body);
  font-size: 40px;
  color: var(--color-oscuro);
  letter-spacing: 1px;
  text-align: center;
  position: relative;
  margin: 0 auto 20px;
  padding-bottom: 20px;
  display: table;
}

.hero .section-title {
  color: #ffffff;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-dorado), var(--color-dorado-claro));
  border-radius: 2px;
}

.section-title.ejes-title {
  margin-top: 70px;
}

/* ---------- CONTENEDOR GENERAL ---------- */
.contenedor {
  width: var(--content-width);
  margin: 0 auto;
  padding: 40px 0;
}

#descargar-titulo {
  width: var(--content-width);
  margin: 0 auto;
  padding: 40px 0;
}

#descargar {
  width: var(--content-width);
  margin: 0 auto;
  padding: 40px 0;
}

/* ---------- FLIPBOOK SECTION ---------- */
.flipbook-section {
  width: 100%;
  padding: 40px 0;
}

.flipbook-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.flipbook-wrapper > * {
  width: 100% !important;
  max-width: 100%;
}

/* ---------- PRESENTACION Y EJES ---------- */
.presentacion-texto {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.9;
  color: #3a3a3a;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.ejes-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
  flex-wrap: wrap;
}

.ejes-intro {
  width: 26%;
  flex-shrink: 0;
  min-width: 250px;
}

.ejes-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  color: #2b2b2b;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.ejes-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-dorado);
}

.ejes-intro p {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.7;
  color: #2b2b2b;
}

.ejes-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.eje-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eje-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(105, 27, 50, 0.15);
}

.eje-numero {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  color: #d9d9d9;
  padding: 20px 20px 0;
}

.eje-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: #2b2b2b;
  padding: 10px 10px 10px;
  flex: 1;
}

.eje-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-vino);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 10px;
  transition: background 0.3s ease;
}

.eje-btn:hover {
  background: var(--color-rojo);
}

/* ---------- INFORMES ---------- */
.informes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.informe-card {
  position: relative;
  width: 250px;
  min-height: 210px;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  background: #ececec;
  border: 1px solid #dcdcdc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.informe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.informe-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 30px;
  color: var(--color-vino);
}

.informe-anios {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-vino);
  text-decoration: underline;
  align-self: flex-start;
}

.informe-numero {
  font-family: var(--font-title);
  font-size: 70px;
  font-weight: 700;
  line-height: 1;
  align-self: flex-end;
  color: var(--color-dorado);
}

.informe-card.actual {
  background: linear-gradient(135deg, var(--color-vino), var(--color-rojo));
  border-color: var(--color-vino);
}

.informe-card.actual .informe-label,
.informe-card.actual .informe-anios {
  color: #ffffff;
}

.informe-card.actual .informe-numero {
  color: var(--color-dorado-claro);
}

.informe-card.deshabilitado {
  background: #f1f1f1;
  border-color: #e0e0e0;
  cursor: not-allowed;
}

.informe-card.deshabilitado .informe-label,
.informe-card.deshabilitado .informe-anios {
  color: #a8a8a8;
}

.informe-card.deshabilitado .informe-numero {
  color: #cfcfcf;
}

.informe-card.deshabilitado:hover {
  transform: none;
  box-shadow: none;
}

.informe-pendiente {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-style: italic;
  color: #9a9a9a;
}

/* ---------- DESCARGA ---------- */
.descarga-btn {
  display: flex;
  justify-content: center;
}

.btn-descarga {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-vino), var(--color-rojo));
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  padding: 16px 42px;
  border-radius: 10px;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 10px;
}

.btn-descarga:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(105, 27, 50, 0.35);
}

/* ---------- ACCIONES / INDICADORES ---------- */
.indicadores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.indicador {
  text-align: center;
  padding: 40px 20px;
  background: #faf7f2;
  border-radius: 5px;
  border-bottom: 4px solid var(--color-dorado);
  transition: transform 0.3s ease;
}

.indicador:hover {
  transform: translateY(-6px);
}

.numero {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  color: var(--color-rojo);
}

.etiqueta {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-negro);
  margin-top: 10px;
}

/* ---------- TABS INDICADORES ---------- */
.tabs-container {
  margin-top: 40px;
}

.tabs-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  border-bottom: 2px solid #e2e2e2;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-gris);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-vino);
}

.tab-btn.active {
  color: var(--color-vino);
  border-bottom: 3px solid var(--color-dorado);
  margin-bottom: -2px;
}

.tabs-content {
  display: relative;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tabla-indicadores {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.tabla-indicadores tbody tr {
  border-bottom: 1px solid #e2e2e2;
  transition: background-color 0.2s ease;
}

.tabla-indicadores tbody tr:hover {
  background-color: #faf7f2;
}

.tabla-indicadores tbody tr:last-child {
  border-bottom: none;
}

.tabla-indicadores td {
  padding: 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #2b2b2b;
}

.tabla-indicadores td:first-child {
  text-align: left;
  color: #555555;
  font-weight: 500;
}

.tabla-indicadores td:last-child {
  text-align: right;
  color: var(--color-vino);
  font-weight: 700;
  font-size: 16px;
}

/* ---------- GALERIA SLIDER ---------- */
.galeria-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  flex: 1;
  padding: 6px;
}

.slider-track::-webkit-scrollbar {
  height: 8px;
}

.slider-track::-webkit-scrollbar-thumb {
  background: var(--color-dorado);
  border-radius: 10px;
}

.slide {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  cursor: pointer;
}

.slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.slide:hover img {
  transform: scale(1.06);
}

.slider-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-vino);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.slider-btn:hover {
  background: var(--color-rojo);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
}

/* ---------- GALERIA VIDEOS ---------- */
.galeria-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  width: 100%;
  background: #d4d4d4;

  text-align: center;
  padding: 26px 0;
  font-family: var(--font-body);
  font-size: 13px;
}

.footer-content {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-content p {
  margin: 0;
}

.footer-creditos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-creditos span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-logo {
  height: 60px;
  max-width: 300px;
  object-fit: contain;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .header-inner,
  .hero-inner,
  .contenedor,
  .footer-content {
    width: 90%;
  }

  .slide {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
  }

  .hero-left,
  .hero-right {
    width: 100%;
  }

  .indicadores {
    grid-template-columns: repeat(2, 1fr);
  }

  .ejes-section {
    flex-direction: column;
  }

  .ejes-intro {
    width: 100%;
  }

  .ejes-grid {
    flex: 1;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .galeria-videos {
    grid-template-columns: 1fr;
  }

  .tabs-nav {
    gap: 8px;
  }

  .tab-btn {
    padding: 10px 14px;
    font-size: 12px;
  }

  .tabla-indicadores td {
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 100px;
  }

  body {
    padding-top: 30px;
    margin-right: 12px;
  }

  .header-inner,
  .hero-inner,
  .contenedor,
  .footer-content {
    width: 92%;
  }

  #descargar-titulo {
    width: 92%;
  }

  .main-menu ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-menu a {
    font-size: 13px;
  }

  .section-title {
    font-size: 30px;
  }

  .indicadores {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .indicador {
    padding: 30px 15px;
  }

  .numero {
    font-size: 36px;
  }

  .ejes-section {
    flex-direction: column;
  }

  .ejes-intro {
    width: 100%;
  }

  .ejes-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .presidenta-foto {
    width: 130px;
    height: 130px;
  }

  .slide {
    flex: 0 0 calc(100% - 0px);
  }

  .slider-btn {
    width: 36px;
    height: 36px;
  }

  .footer-logo {
    height: 60px;
  }

  .tabs-nav {
    gap: 6px;
    margin-bottom: 20px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .tabla-indicadores td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .tabla-indicadores td:first-child {
    font-size: 12px;
  }

  .tabla-indicadores td:last-child {
    font-size: 14px;
  }
}