:root {
  --primary: #9B59B6;
  --secondary: #8E44AD;
  --accent: #F39C12;
  --gold: #F1C40F;
  --purple-dark: #6C3483;
  --purple-light: #D7BDE2;
  --green: #27AE60;
  --cream: #FFF8E7;
  --brown: #8B6F47;
  --text: #2C1A3A;
  --text-light: #5D4E6D;
  --glass-bg: rgba(255, 248, 231, 0.95);
  --glass-border: rgba(155, 89, 182, 0.4);
}

/* Estilos globales - Tema Rapunzel */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #F8F3FF 100%, #FFF8E7 50%, #FFE5B4 100%);
  background-size: 200% 200%;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Decoración de fondo - Flores y enredaderas */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(200, 155, 219, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(232, 212, 162, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* Utilidades */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px;
}


/* Padding top para secciones principales */
.section-padding {
  padding-top: 260px;
}

/* Responsive padding para diferentes tamaños de pantalla */
@media (max-width: 480px) {
  .section-padding {
    padding-top: 330px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .section-padding {
    padding-top: 270px;
  }
}

/* Botón hamburger con texto - oculto por defecto en desktop */
.hamburger-menu {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px 0;
}

.hamburger-menu:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--gold);
  transform: scale(1.05);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.menu-text {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hamburger-menu.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger-menu.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Responsive: Mostrar hamburger en móvil y tablets */
@media (max-width: 1024px) {
  .hamburger-menu {
    display: flex;
  }

  .nav-container {
    flex-direction: column;
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.98), rgba(142, 68, 173, 0.98));
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 20px rgba(108, 52, 131, 0.4);
    border-top: 2px solid var(--gold);
    padding: 0;
  }

  .nav-links.active {
    max-height: 600px;
    padding: 20px 10px;
  }

  .nav-links li {
    width: 33.33%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
  }

  .nav-links a {
    width: auto;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-hint {
    display: none;
  }

  /* Agregar el texto indicativo al final del menú desplegable */
  .nav-links::after {
    content: "Haz clic en los iconos para navegar";
    width: 100%;
    text-align: center;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    animation: fadeInPulse 2s ease-in-out infinite;
    padding: 0px 0 5px 0;
  }

  /* Reducir padding en tablets y móviles con menú hamburger */
  .section-padding {
    padding-top: 200px !important;
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding-top: 220px !important;
  }

  /* Ajuste para móviles muy pequeños si es necesario */
  .nav-links li {
    width: 33.33%;
    /* Mantener 3 columnas incluso en móvil pequeño si caben */
  }
}


/* Efectos de vidrio (glassmorphism) - Tema Rapunzel */
.glass {
  background: #fef7e8;
  border: 3px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(155, 89, 182, 0.25);
  position: relative;
  overflow: visible;
}

.glass::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 20px;
  z-index: -1;
}

/* Botones - Tema Rapunzel */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 155, 219, 0.4);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  position: absolute;
  left: 10px;
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 25px rgba(200, 155, 219, 0.6);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.btn-primary:hover::before {
  opacity: 1;
  left: 15px;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 12px 28px;
  border: 2px solid var(--primary);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  position: relative;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 155, 219, 0.4);
}

/* Navbar - Tema Rapunzel */
.navbar {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.98), rgba(142, 68, 173, 0.98));
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(108, 52, 131, 0.4);
  border-bottom: 3px solid var(--gold);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.nav-brand.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  filter: drop-shadow(2px 2px 4px rgba(155, 111, 176, 0.3));
}

/* Título Principal Estilizado */
.main-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 0;
}

.title-name {
  font-family: 'Dancing Script', cursive;
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(100deg, #FFD700, #FFF8DC, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(1px 1px 3px rgba(255, 215, 0, 0.4));
  line-height: 1;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

  0%,
  100% {
    filter: drop-shadow(2px 2px 8px rgba(255, 215, 0, 0.6));
  }

  50% {
    filter: drop-shadow(2px 2px 15px rgba(255, 215, 0, 0.9));
  }
}

@keyframes sparkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
}

/* Responsive para título */
@media (max-width: 768px) {
  .title-number {
    font-size: 2rem;
  }

  .title-text {
    font-size: 1rem;
  }

  .title-name {
    font-size: 2.5rem;
  }

  .title-sparkle {
    font-size: 1rem;
  }

  .main-title {
    margin: 0;
  }
}

.nav-hint {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
  text-align: center;
}

@keyframes fadeInPulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .nav-hint {
    font-size: 0.75rem;
    margin: 0 0 8px 0;
  }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  display: block;
  text-align: center;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  white-space: nowrap;
}

.nav-links a:hover {
  transform: scale(1.05);
}

.navbar a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-shadow: 1px 1px 2px rgba(74, 44, 74, 0.3);
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navbar a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.navbar a:hover::after {
  width: 100%;
}

/* Estilos para las imágenes del navbar */
.nav-icon-img {
  width: 70px;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  cursor: pointer;
  animation: navIconPulse 2s ease-in-out infinite;
}

/* Animación de pulso sutil para indicar que son clicables */
@keyframes navIconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.nav-links a {
  display: block;
  text-align: center;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover::before {
  width: 80%;
}

.nav-links a:hover {
  transform: scale(1.05);
}

.nav-links a:hover .nav-icon-img {
  transform: scale(1.2) translateY(-3px);
  filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.7));
  animation: none;
}

/* Cards */
.card {
  background: rgba(255, 248, 231, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  border: 3px solid var(--glass-border);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.2);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(155, 89, 182, 0.4);
  border-color: var(--primary);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
  filter: drop-shadow(2px 2px 4px rgba(155, 89, 182, 0.3));
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(155, 89, 182, 0.2);
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Grid */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Reloj de cuenta regresiva circular */
.countdown {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.countdown-clock {
  position: relative;
  width: 350px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 30px 20px 20px 20px;
}

.clock-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.clock-bg {
  fill: none;
  stroke: rgba(155, 89, 182, 0.1);
  stroke-width: 8;
}

.clock-progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

.clock-days {
  stroke: var(--primary);
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  filter: drop-shadow(0 0 8px rgba(155, 89, 182, 0.6));
}

.clock-hours {
  stroke: var(--secondary);
  stroke-dasharray: 471.24;
  stroke-dashoffset: 471.24;
  filter: drop-shadow(0 0 6px rgba(142, 68, 173, 0.6));
}

.clock-minutes {
  stroke: var(--accent);
  stroke-dasharray: 376.99;
  stroke-dashoffset: 376.99;
  filter: drop-shadow(0 0 6px rgba(243, 156, 18, 0.6));
}

.clock-seconds {
  stroke: var(--gold);
  stroke-dasharray: 282.74;
  stroke-dashoffset: 282.74;
  filter: drop-shadow(0 0 6px rgba(241, 196, 15, 0.8));
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    stroke-width: 8;
  }

  50% {
    stroke-width: 10;
  }
}

.clock-center {
  position: relative;
  z-index: 10;
  text-align: center;
  background: rgba(255, 248, 231, 0.95);
  padding: 30px;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(155, 89, 182, 0.3);
  border: 3px solid var(--glass-border);
}

.clock-time {
  margin: 5px 0;
}

.clock-number {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(1px 1px 2px rgba(155, 89, 182, 0.3));
}

.clock-unit1 {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 600;
  margin-left: 5px;
}

.clock-unit2 {
  font-size: 1.3rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(1px 1px 2px rgba(155, 89, 182, 0.3));
}

.clock-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 8px;
  font-weight: 500;
}

/* Responsive para reloj */
@media (max-width: 768px) {
  .countdown-clock {
    width: 280px;
    height: 280px;
    padding: 25px 15px 15px 15px;
  }

  .countdown {
    padding: 25px 15px;
  }

  .clock-center {
    width: 160px;
    height: 160px;
    padding: 20px;
  }

  .clock-number {
    font-size: 1.5rem;
  }

  .clock-unit {
    font-size: 0.75rem;
  }
}

.countdown-item {
  background: rgba(255, 248, 231, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  border-radius: 15px;
  border: 3px solid var(--glass-border);
  min-width: 100px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.2);
}


.countdown-number {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  filter: drop-shadow(1px 1px 2px rgba(155, 89, 182, 0.3));
  animation: float 3s ease-in-out infinite;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 5px;
  letter-spacing: 1px;
  animation: float 3s ease-in-out infinite;
}

/* Removed hamburger menu - buttons now always visible */

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 0;
  }

  .nav-container {
    gap: 10px;
    padding: 0 15px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .card-icon {
    font-size: 2.5rem;
  }

  .container {
    padding: 12px;
  }

  /* Ajustar padding del Hero Section en móviles */
  section.container {
    padding-top: auto !important;
  }
}