@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
  font-family: "LTC Pabst Oldstyle";
  src: url("/assets/fonts/LTC-Pabst-Oldstyle.woff") format("woff");
}

.montserrat-thin {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-style: normal;
  background-color: #1a1510;
  color: #faedcd;
  min-height: 100vh;
  overflow-x: hidden;
}

#img {
  background-image: url("/assets/img/colibri.webp");
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: 300px;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 0;
  overflow: hidden;
}

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

.cenefa-logo {
  position: relative;
  bottom: 0;
  right: 0;
  width: 90%;
  background-color: #f1f1f1;
  z-index: 999;
}

/* ========== CONTENEDOR PRINCIPAL ========== */
.text {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 4rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "LTC Pabst Oldstyle", serif;
  font-weight: 600;
  font-style: normal;
}

.text h1 {
  font-size: clamp(1.4rem, 5vw, 2.8rem);
  letter-spacing: clamp(4px, 1.5vw, 16px);
  background-color: #43754e;
  color: #470101;
  padding: 12px 20px;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.3;
  width: 100%;
  max-width: 900px;
}

.text h2 {
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  letter-spacing: clamp(4px, 1.2vw, 16px);
  background-color: #43754e;
  color: #470101;
  padding: 8px 16px;
  margin-bottom: 1rem;
  margin-top: 2rem;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.text h2:first-of-type {
  margin-top: 0;
}

.programa-lista {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sub .title {
  display: block;
  width: 100%;
  max-width: 700px;
  background-color: #470101;
  color: #dc808b;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1.4rem);
  font-weight: 200;
  line-height: 1.4;
  letter-spacing: -0.5px;
  text-align: center;
  padding: 12px 20px;
  border: none;
  border-radius: 0;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
  text-decoration: none;
  word-break: break-word;
}

.programa-lista .btn {
  display: block;
  width: 100%;
  max-width: 700px;
  background-color: #470101;
  color: #dc808b;
  font-family: "LTC Pabst Oldstyle", serif;
  font-size: clamp(0.95rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
  text-align: center;
  padding: 12px 20px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
  text-decoration: none;
  word-break: break-word;
}

.programa-lista .btn:hover {
  background-color: #dc808b;
  color: #470101;
  text-decoration: none;
  transform: translateY(-2px);
}

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

.modal-content,
.modal-header,
.modal-footer {
  border-radius: 0 !important;
  border: 1px solid rgba(250, 237, 205, 0.15);
}

.modal-content {
  background: #ecd8c8;
  color: #470101;
}

.modal-header {
  border-bottom: 1px solid rgba(250, 237, 205, 0.1);
  background: #3a2d20;
}

.modal-footer {
  border-top: 1px solid rgba(250, 237, 205, 0.1);
  background: #3a2d20;
}

.modal-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  color: #faedcd;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.modal-body h3 {
  font-size: 1.5rem;
  color: #470101;
  margin-bottom: 0.5rem;
}

.modal-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.85);
}

.modal-footer p {
  font-size: 0.85rem;
  color: #faedcd;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.modal-backdrop.show {
  opacity: 0.85;
}

.close {
  color: #faedcd !important;
  font-size: 1.8rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close:hover {
  opacity: 1;
  color: #dc808b !important;
}

/* ========== MEDIA QUERIES - RESPONSIVE ========== */

@media (max-width: 768px) {
  .text {
    padding: 1.5rem 0.75rem 3rem;
  }

  .programa-lista .btn {
    padding: 10px 14px;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .text {
    padding: 1rem 0.5rem 2.5rem;
  }

  .text h1 {
    padding: 10px 12px;
  }

  .text h2 {
    padding: 6px 10px;
    margin-top: 1.5rem;
  }

  .programa-lista .btn {
    font-size: 0.9rem;
    padding: 10px 10px;
  }

  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-body h3 {
    font-size: 1.2rem;
  }
}

@media (min-width: 700px) {
  .cenefa-logo {
    position: fixed;
    width: 45%;
    background-color: transparent;
  }
}

@media (min-width: 1200px) {
  .text h1 {
    font-size: 2rem;
  }

  .programa-lista .btn {
    font-size: 1.4rem;
  }

  .cenefa-logo {
    position: fixed;
    width: 30%;
    background-color: transparent;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text>* {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.text>*:nth-child(1) {
  animation-delay: 0.05s;
}

.text>*:nth-child(2) {
  animation-delay: 0.1s;
}

.text>*:nth-child(3) {
  animation-delay: 0.15s;
}

.text>*:nth-child(4) {
  animation-delay: 0.2s;
}

.text>*:nth-child(5) {
  animation-delay: 0.25s;
}

.text>*:nth-child(6) {
  animation-delay: 0.3s;
}

.text>*:nth-child(7) {
  animation-delay: 0.35s;
}

.text>*:nth-child(8) {
  animation-delay: 0.4s;
}

.text>*:nth-child(9) {
  animation-delay: 0.45s;
}

.text>*:nth-child(10) {
  animation-delay: 0.5s;
}

.text>*:nth-child(11) {
  animation-delay: 0.55s;
}

.text>*:nth-child(12) {
  animation-delay: 0.6s;
}

.text>*:nth-child(13) {
  animation-delay: 0.65s;
}

.text>*:nth-child(14) {
  animation-delay: 0.7s;
}

.text>*:nth-child(15) {
  animation-delay: 0.75s;
}

.text>*:nth-child(16) {
  animation-delay: 0.8s;
}

.text>*:nth-child(17) {
  animation-delay: 0.85s;
}

.text>*:nth-child(18) {
  animation-delay: 0.9s;
}

@media (prefers-reduced-motion: reduce) {
  .text>* {
    animation: none;
    opacity: 1;
  }

  html {
    scroll-behavior: auto;
  }
}