/* --- Fuentes --- */

@font-face {
  font-family: "Bodoni Moda SC";
  src: url("./fonts/Bodoni_Moda_SC/BodoniModaSC-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: optional;
}
@font-face {
  font-family: "Bodoni Moda SC";
  src: url("./fonts/Bodoni_Moda_SC/BodoniModaSC-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Niconne";
  src: url("./fonts/Niconne/Niconne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins/Poppins-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* --- RESET Y BASE --- */

*,
*::before,
*::after,
::backdrop,
::file-selector-button {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family:
    ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: #111827;
  font-family: "Poppins", sans-serif;
}

/* --- Utilidades --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* --- Margen --- */

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-12 {
  margin-top: 3rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mb-16 {
  margin-bottom: 4rem;
}

/* --- Display --- */

.block {
  display: block;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.inline-flex {
  display: inline-flex;
}

/* --- Tamaños --- */

.h-5 {
  height: 1.25rem;
}
.h-12 {
  height: 3rem;
}
.h-80 {
  height: 20rem;
}
.h-auto {
  height: auto;
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}
.min-h-\[1px\] {
  min-height: 1px;
}
.min-h-\[280px\] {
  min-height: 280px;
}
.w-5 {
  width: 1.25rem;
}
.w-12 {
  width: 3rem;
}
.w-64 {
  width: 16rem;
}
.w-full {
  width: 100%;
}

/* --- Máximos --- */

.max-w-4xl {
  max-width: 56rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-7xl {
  max-width: 80rem;
}
.max-w-none {
  max-width: none;
}

/* --- Flex y Grid --- */

.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-8 {
  gap: 2rem;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.space-y-3 > * + * {
  margin-top: 0.75rem;
}

/* --- Overflow --- */

.overflow-hidden {
  overflow: hidden;
}

/* --- Bordes y radius --- */

.rounded-2xl {
  border-radius: 1rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.border {
  border-style: solid;
  border-width: 1px;
}
.border-0 {
  border-style: solid;
  border-width: 0px;
}
.border-y {
  border-top-style: solid;
  border-bottom-style: solid;
  border-top-width: 1px;
  border-bottom-width: 1px;
}
.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}
.border-base-300 {
  border-color: #e5e7eb;
}

/* --- Fondos --- */

.bg-black\/20 {
  background-color: rgba(0, 0, 0, 0.2);
}
.bg-black\/35 {
  background-color: rgba(0, 0, 0, 0.35);
}
.bg-white {
  background-color: #ffffff;
}
.bg-base-100 {
  background-color: #ffffff;
}
.bg-base-200 {
  background-color: #f3f4f6;
}
.bg-base-content {
  background-color: #111827;
}
.bg-green-600 {
  background-color: #128c7e;
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

/* --- Gradientes --- */

.from-transparent {
  --tw-gradient-from: transparent;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-neutral-500 {
  --tw-gradient-via: #6b7280;
  --tw-gradient-stops:
    var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to);
}
.to-transparent {
  --tw-gradient-to: transparent;
}

/* --- Texto --- */

.text-center {
  text-align: center;
}
.text-white {
  color: #ffffff;
}
.text-base-content {
  color: #111827;
}
.text-base-100 {
  color: #ffffff;
}

/* --- Fuentes --- */
.font-bodoni {
  font-family: "Bodoni Moda SC", serif;
}
.font-niconne {
  font-family: "Niconne", cursive;
}
.font-poppins {
  font-family: "Poppins", sans-serif;
}

/* --- Tamaños de texto --- */

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[15px\] {
  font-size: 15px;
}

/* --- Peso y espaciado --- */

.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.leading-\[1\.5\] {
  line-height: 1.5;
}
.leading-relaxed {
  line-height: 1.625;
}
.tracking-\[0\.2em\] {
  letter-spacing: 0.2em;
}
.tracking-\[0\.4em\] {
  letter-spacing: 0.4em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.uppercase {
  text-transform: uppercase;
}

/* --- Opacidad --- */

.opacity-45 {
  opacity: 0.45;
}
.opacity-80 {
  opacity: 0.8;
}

/* --- Sombras --- */

.shadow-sm {
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.shadow-lg {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.shadow-xl {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- Transiciones --- */

.transition {
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke,
    opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-500 {
  transition-duration: 500ms;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Cursor --- */

.cursor-pointer {
  cursor: pointer;
}

.select-none {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* --- Object fit --- */

.object-cover {
  object-fit: cover;
}

/* --- Padding --- */

.p-3 {
  padding: 0.75rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* --- Modo Oscuro --- */

html.dark body {
  background-color: #111827 !important;
  color: #e5e7eb !important;
}
html.dark .bg-base-100 {
  background-color: #111827 !important;
}
html.dark .bg-base-200 {
  background-color: #1f2937 !important;
}
html.dark .border-base-300 {
  border-color: #374151 !important;
}
html.dark .text-base-content {
  color: #e5e7eb !important;
}
html.dark .bg-base-content {
  background-color: #e5e7eb !important;
}
html.dark .text-base-100 {
  color: #111827 !important;
}
html.dark .navbar {
  background-color: #111827 !important;
}
html.dark .card {
  border-color: #374151 !important;
}
html.dark .footer {
  background-color: #1f2937 !important;
}
html.dark .card-item {
  background-color: #1f2937 !important;
}
html.dark .skeleton {
  background: linear-gradient(
    110deg,
    #1f2937 8%,
    #374151 18%,
    #1f2937 33%
  ) !important;
}
html.dark .via-neutral-500 {
  --tw-gradient-via: #9ca3af !important;
}

/* --- Logos claro/oscuro --- */

.logo_claro_nombre {
  display: block;
}
.logo_oscuro_nombre {
  display: none;
}
html.dark .logo_claro_nombre {
  display: none;
}
html.dark .logo_oscuro_nombre {
  display: block;
}

/* --- Swap (oscuro/claro) --- */

.swap {
  display: inline-block;
  width: 60px;
  height: 60px;
  position: relative;
}

.swap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
}

.swap-off {
  display: block;
}
.swap-on {
  display: none;
}
html.dark .swap-off {
  display: none;
}
html.dark .swap-on {
  display: block;
}

/* --- Componentes --- */

/* --- Navbar --- */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}
html.dark .navbar {
  background-color: #111827;
}
.navbar-start,
.navbar-end,
.navbar-center {
  display: flex;
  align-items: center;
}
.navbar-start {
  flex: 1 1 0%;
}
.navbar-end {
  flex: 1 1 0%;
  justify-content: flex-end;
}
.navbar-center {
  flex: 0 0 auto;
}

/* --- Card --- */

.card {
  border-width: 1px;
  border-style: solid;
  border-color: #e5e7eb;
  overflow: hidden;
  border-radius: 0.5rem;
}
html.dark .card {
  border-color: #374151;
}
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- Footer --- */

.footer {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #f3f4f6;
}
html.dark .footer {
  background-color: #1f2937;
}
@media (min-width: 1024px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- Word Rotator --- */

@keyframes fadeWord {
  0% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  24% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.word-rotator {
  display: inline-block;
  position: relative;
  height: 1em;
  overflow: visible;
  vertical-align: middle;
}
.word-rotator span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeWord 15s infinite ease-in-out;
  white-space: nowrap;
}
.word-rotator span:nth-child(1) {
  animation-delay: 0s;
}
.word-rotator span:nth-child(2) {
  animation-delay: 3s;
}
.word-rotator span:nth-child(3) {
  animation-delay: 6s;
}
.word-rotator span:nth-child(4) {
  animation-delay: 9s;
}
.word-rotator span:nth-child(5) {
  animation-delay: 12s;
}

/* --- Tarjetas de eventos --- */

#event-stack {
  aspect-ratio: 256 / 320;
}

@media (min-width: 768px) {
  #event-stack {
    aspect-ratio: 700 / 450;
  }
}

.card-item {
  background-color: #ffffff;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: all 0.5s ease-in-out;
  position: absolute;
  inset: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
}
html.dark .card-item {
  background-color: #1f2937;
}
.card-item h3 {
  position: relative;
  color: white;
  font-family: "Bodoni Moda SC", serif;
  font-size: 1.5rem;
  line-height: 1.2;
  min-height: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 0 1rem;
  transition: all 0.5s;
}
@media (min-width: 768px) {
  .card-item h3 {
    font-size: 3rem;
    line-height: 1.2;
    min-height: 1.2em;
  }
}

/* --- Carrusel --- */

.carrusel-container {
  position: relative;
  width: 100%;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  overflow: hidden;
  contain: layout style;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.carrusel-slides {
  display: flex;
  transition-property: transform;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carrusel-slide {
  flex: 0 0 100%;
  width: 100%;
}
.carrusel-slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .carrusel-slide img {
    height: 600px;
  }
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  z-index: 20;
}
.carrusel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.05);
}
.carrusel-btn-left {
  left: 1rem;
}
.carrusel-btn-right {
  right: 1rem;
}
@media (min-width: 768px) {
  .carrusel-btn {
    width: 3rem;
    height: 3rem;
  }
  .carrusel-btn-left {
    left: 1.5rem;
  }
  .carrusel-btn-right {
    right: 1.5rem;
  }
}

/* --- Carga del mapa --- */

@keyframes shine {
  to {
    background-position-x: -200%;
  }
}
.skeleton {
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: shine 1.5s linear infinite;
}

/* --- Contenedor del mapa responsive --- */

.mapa-container {
  position: relative;
  height: 350px;
  width: 100%;
  contain: layout style;
}

.mapa-container iframe {
  transition: opacity 0.6s ease-in-out;
  opacity: 0;
}

@media (min-width: 768px) {
  .mapa-container {
    height: 400px;
  }
}

/* --- Desktop: grid estira y mapa ocupa 100% --- */
@media (min-width: 1024px) {
  .grid.grid-cols-1.lg\:grid-cols-12 {
    align-items: stretch;
  }

  .lg\:col-span-8 {
    grid-column: span 8 / span 8;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .mapa-container {
    flex: 1 1 auto;
    height: auto;
    min-height: 450px;
  }
}

/* --- Botón WTSP --- */

.btn-whatsapp {
  position: relative;
  overflow: hidden;
  background-color: #128c7e;
}
.btn-whatsapp::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #075e54, transparent);
  transition: left 0.5s;
}
.btn-whatsapp:hover::before {
  left: 100%;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: white;
  border-radius: 0.75rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.75rem;
  transition: all 0.2s;
  transform: scale(1);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  border: none;
}
.btn-whatsapp:hover {
  background-color: #075e54;
  transform: scale(1.02);
}
.btn-whatsapp:active {
  transform: scale(0.98);
}

/* --- RESPONSIVE --- */

@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .md\:h-\[450px\] {
    height: 450px;
  }
  .md\:min-h-\[350px\] {
    min-height: 350px;
  }
  .md\:w-80 {
    width: 20rem;
  }
  .md\:w-\[700px\] {
    width: 700px;
  }
  .md\:p-8 {
    padding: 2rem;
  }
  .md\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
  /* ✅ ELIMINADO: .lg\:col-span-8 { height: 450px !important; } */
}

@media (min-width: 1024px) {
  .lg\:col-span-4 {
    grid-column: span 4 / span 4;
  }
  .lg\:col-span-8 {
    grid-column: span 8 / span 8;
    /* ✅ ELIMINADO: height: 450px !important; */
  }
  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .lg\:flex-row {
    flex-direction: row;
  }
  .lg\:justify-between {
    justify-content: space-between;
  }
  .lg\:px-0 {
    padding-left: 0;
    padding-right: 0;
  }
  .lg\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .lg\:text-left {
    text-align: left;
  }
}

/* --- HOVERS Y ESTADOS --- */

.hover\:bg-green-700:hover {
  background-color: #075e54;
}
.hover\:bg-rose-50:hover {
  background-color: #fff1f2;
}
.hover\:scale-\[1\.02\]:hover {
  transform: scale(1.02);
}
.active\:scale-\[0\.98\]:active {
  transform: scale(0.98);
}
html.dark .hover\:bg-rose-50:hover {
  background-color: rgba(136, 19, 55, 0.1);
}

a {
  text-decoration: none !important;
}

a:link,
a:visited,
a:hover,
a:active {
  color: inherit !important;
}
