/* public/assets/css/estilo.css */

/* =========================================
   KAWAII THEME - VERSION MOBILE-OPTIMIZED
   (misma estética que tu CSS original)
   ========================================= */

/* Ajuste clave: rutas desde /assets/css/ -> /assets/img/ */
:root {
  --kawaii-orange: #FF9966;
  --kawaii-orange-light: #FFB088;
  --kawaii-orange-dark: #FF7744;
  --kawaii-pink: #FFB6C1;
  --kawaii-yellow: #FFF4A3;
  --kawaii-white: #FFFFFF;
  --kawaii-cream: #FFF8DC;
  --text-dark: #5C3317;
  --text-very-dark: #3D2010;
  --shadow-kawaii: 0 10px 30px rgba(0, 0, 0, 0.15);

  /* Background images (mantener sí o sí) */
  --hero-bg: url('../img/hero-background.png');
  --vote-bg: url('../img/vote-background.png');
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  background-color: var(--kawaii-orange) !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Exo 2', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.page-container {
  background-color: var(--kawaii-orange);
  width: 100%;
  overflow: hidden;
}

footer,
.footer {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  margin-top: 80px !important;
}

.page-container > section:first-child,
.hero-section {
  margin-top: 30px;
}

.page-container > section:last-child,
.vote-section {
  margin-bottom: 50px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  gap: 30px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--hero-bg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.hero-section > * {
  position: relative;
  z-index: 2;
}

.hero-logo-img {
  max-width: 400px;
  width: 90%;
  animation: float-kawaii 3.5s ease-in-out infinite;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.2));
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--text-very-dark);
  text-shadow:
    3px 3px 0px var(--kawaii-white),
    6px 6px 0px var(--kawaii-yellow);
  margin: 0 0 20px 0;
  letter-spacing: 1px;
  line-height: 1.2;
  padding: 0 10px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.6rem);
  color: var(--text-dark);
  background: var(--kawaii-white);
  padding: 18px 30px;
  border-radius: 60px;
  border: 5px solid var(--text-dark);
  box-shadow: var(--shadow-kawaii);
  max-width: 900px;
  margin: 0 auto 30px;
  font-weight: 700;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 10px;
}

.btn-kawaii {
  padding: 18px 40px;
  border-radius: 60px;
  font-weight: 900;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 4px solid var(--text-dark);
  box-shadow: var(--shadow-kawaii);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #FF1493, #FF69B4);
  color: white;
}

.btn-secondary {
  background: var(--kawaii-yellow);
  color: var(--text-very-dark);
}

.btn-kawaii:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.hero-stats-container {
  display: flex;
  gap: 30px;
  background: var(--kawaii-white);
  padding: 30px 40px;
  border-radius: 50px;
  border: 5px solid var(--text-dark);
  margin-top: 20px;
  box-shadow: var(--shadow-kawaii);
  max-width: 700px;
  width: 90%;
}

.stat-box {
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--kawaii-orange-dark);
  text-shadow: 2px 2px 0px var(--kawaii-yellow);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: clamp(0.75rem, 1.2vw, 1.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-very-dark);
}

.stat-divider {
  width: 3px;
  background: var(--kawaii-orange);
  margin: 0;
  border-radius: 2px;
}

.scroll-indicator {
  margin-top: 40px;
  animation: bounce-down 2.5s infinite;
}

.scroll-icon {
  color: var(--text-very-dark);
  font-size: 2.5rem;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

/* =========================================
   RATES SECTION
   ========================================= */
.rates-section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.rates-gif-decoration {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
}

.rates-gif-decoration img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  background: transparent;
}

.gif-decoration-1 {
  top: 80px;
  left: 5%;
  width: 120px;
  animation: float-slow-1 4s ease-in-out infinite;
}

.gif-decoration-2 {
  top: 50%;
  right: 8%;
  width: 150px;
  animation: float-slow-2 5s ease-in-out infinite;
  animation-delay: 1s;
}

.gif-decoration-3 {
  bottom: 100px;
  left: 10%;
  width: 130px;
  animation: float-slow-3 4.5s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes float-slow-1 {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}
@keyframes float-slow-2 {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-25px) rotate(-8deg); }
}
@keyframes float-slow-3 {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-20px) rotate(-3deg); }
}

.section-title-kawaii {
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: var(--text-very-dark);
  text-shadow:
    3px 3px 0 var(--kawaii-white),
    6px 6px 0 var(--kawaii-yellow);
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  z-index: 2;
  padding: 0 60px;
}

.section-title-kawaii::before,
.section-title-kawaii::after {
  content: '✨';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
}

.section-title-kawaii::before {
  left: 0;
  animation: sparkle-left 2.5s infinite;
}

.section-title-kawaii::after {
  right: 0;
  animation: sparkle-right 2.5s infinite;
}

@keyframes sparkle-left {
  0%, 100% { transform: translateY(-50%) scale(1) rotate(0deg); opacity: 1; }
  50% { transform: translateY(-50%) scale(1.4) rotate(180deg); opacity: 0.6; }
}
@keyframes sparkle-right {
  0%, 100% { transform: translateY(-50%) scale(1) rotate(0deg); opacity: 1; }
  50% { transform: translateY(-50%) scale(1.4) rotate(-180deg); opacity: 0.6; }
}

.section-subtitle-kawaii {
  font-size: clamp(1rem, 2vw, 1.7rem);
  color: var(--text-dark);
  font-weight: 800;
  margin: 0 auto 50px;
  background: var(--kawaii-white);
  padding: 12px 35px;
  border-radius: 40px;
  display: inline-block;
  border: 4px solid var(--text-dark);
  box-shadow: var(--shadow-kawaii);
  position: relative;
  z-index: 2;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.rate-card-kawaii {
  background: var(--kawaii-white);
  border: 5px solid var(--kawaii-pink);
  border-radius: 40px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-kawaii);
  cursor: pointer;
}

.rate-card-kawaii::before {
  content: '♥';
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 4rem;
  color: var(--kawaii-pink);
  opacity: 0.15;
}

.rate-card-kawaii:hover {
  transform: translateY(-15px) rotate(2deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  border-color: var(--kawaii-yellow);
}

.rate-icon-k {
  font-size: 3.5rem;
  margin-bottom: 15px;
  display: block;
  animation: pulse-icon 2.5s infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.rate-value-k {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  color: var(--kawaii-orange-dark);
  text-shadow: 2px 2px 0 var(--kawaii-yellow);
  line-height: 1;
  margin-bottom: 12px;
}

.rate-label-k {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: 800;
  color: var(--text-very-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rates-info-box {
  margin-top: 50px;
  background: var(--kawaii-white);
  padding: 15px 40px;
  border-radius: 50px;
  display: inline-block;
  border: 4px solid var(--text-dark);
  box-shadow: var(--shadow-kawaii);
  position: relative;
  z-index: 2;
}

.rates-info-text {
  color: var(--text-dark);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.8vw, 1.4rem);
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features-section {
  padding: 80px 20px;
  text-align: center;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-card-k {
  background: var(--kawaii-white);
  border-radius: 50px;
  padding: 40px 30px;
  border: 5px solid var(--kawaii-yellow);
  box-shadow: var(--shadow-kawaii);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card-k:hover {
  transform: translateY(-12px) rotate(-2deg);
  border-color: var(--kawaii-pink);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.feature-icon-k {
  font-size: 4.5rem;
  margin-bottom: 20px;
  color: var(--kawaii-orange-dark);
  animation: wiggle 4s infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.feature-title-k {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--text-very-dark);
  font-weight: 900;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.feature-text-k {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: #555;
  font-weight: 600;
  line-height: 1.6;
}

/* =========================================
   VOTE SECTION
   ========================================= */
.vote-section {
  padding: 80px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.vote-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--vote-bg);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
  opacity: 0.95;
  pointer-events: none;
}

.vote-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.vote-title-k {
  font-size: clamp(2rem, 4.5vw, 4rem);
  color: var(--text-very-dark);
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow:
    3px 3px 0 var(--kawaii-white),
    5px 5px 0 var(--kawaii-yellow);
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.vote-desc-k {
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  color: var(--text-very-dark);
  font-weight: 800;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 2;
}

.vote-buttons-box {
  border-radius: 40px;
  padding: 25px 20px;
  display: inline-block;
  margin-top: 20px;
}

.vote-buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.vote-btn-simple {
  background: linear-gradient(135deg, #FF69B4, #FF1493);
  color: white;
  padding: 16px 35px;
  border-radius: 50px;
  font-weight: 900;
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  text-decoration: none;
  border: 4px solid var(--text-very-dark);
  box-shadow: 0 8px 20px rgba(255,20,147,0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  min-width: 220px;
  justify-content: center;
}

.vote-btn-simple::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.vote-btn-simple:hover::before {
  left: 100%;
}

.vote-btn-simple:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255,20,147,0.5);
}

.vote-btn-simple i {
  font-size: 1.3em;
  animation: pulse-heart 1.5s infinite;
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.vote-btn-simple.alt {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  box-shadow: 0 8px 20px rgba(255,165,0,0.3);
}

.vote-btn-simple.alt:hover {
  box-shadow: 0 12px 30px rgba(255,165,0,0.5);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes float-kawaii {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}

/* =========================================
   RESPONSIVE - TABLETS
   ========================================= */
@media (max-width: 1024px) {
  .hero-section {
    padding: 50px 15px;
    gap: 25px;
  }

  .hero-stats-container {
    padding: 25px 30px;
    gap: 25px;
  }

  .rates-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  .features-container {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
  }

  .gif-decoration-1,
  .gif-decoration-2,
  .gif-decoration-3 {
    width: 90px;
  }

  .vote-section::before {
    background-size: cover;
    opacity: 0.85;
  }

  footer,
  .footer {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    margin-top: 60px !important;
  }
}

/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */
@media (max-width: 768px) {
  .hero-section {
    padding: 30px 15px;
    gap: 20px;
    margin-top: 10px;
    min-height: auto;
  }

  .hero-section::before {
    background-size: 120%;
    opacity: 0.7;
  }

  .hero-logo-img {
    max-width: 280px;
    margin-bottom: 15px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    text-shadow:
      2px 2px 0px var(--kawaii-white),
      4px 4px 0px var(--kawaii-yellow);
    margin-bottom: 15px;
  }

  .hero-subtitle {
    padding: 15px 25px;
    border-width: 4px;
    font-size: clamp(0.95rem, 3vw, 1.2rem);
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 30px;
  }

  .btn-kawaii {
    padding: 16px 30px;
    border-width: 3px;
    gap: 8px;
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .hero-stats-container {
    flex-direction: column;
    gap: 20px;
    padding: 25px 30px;
    border-width: 4px;
    width: 95%;
    max-width: 350px;
  }

  .stat-divider {
    display: none;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .scroll-indicator {
    margin-top: 30px;
  }

  .scroll-icon {
    font-size: 2rem;
  }

  /* Rates Section Mobile */
  .rates-section,
  .features-section,
  .vote-section {
    padding: 60px 15px;
  }

  .section-title-kawaii {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    padding: 0 40px;
    text-shadow:
      2px 2px 0 var(--kawaii-white),
      4px 4px 0 var(--kawaii-yellow);
  }

  .section-title-kawaii::before,
  .section-title-kawaii::after {
    font-size: 1.8rem;
  }

  .section-subtitle-kawaii {
    padding: 10px 25px;
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .rates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }

  .rate-card-kawaii {
    padding: 25px 15px;
    border-width: 4px;
    border-radius: 30px;
  }

  .rate-icon-k {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }

  .rate-value-k {
    font-size: 2rem;
  }

  .rate-label-k {
    font-size: 0.75rem;
  }

  .rates-info-box {
    padding: 12px 25px;
    margin-top: 35px;
  }

  .rates-info-text {
    font-size: 0.85rem;
  }

  /* Features Section Mobile */
  .features-container {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  .feature-card-k {
    padding: 35px 25px;
    border-width: 4px;
  }

  .feature-icon-k {
    font-size: 3.5rem;
  }

  .feature-title-k {
    font-size: 1.25rem;
  }

  .feature-text-k {
    font-size: 0.95rem;
  }

  /* Vote Section Mobile */
  .vote-section {
    padding: 60px 15px 80px;
    min-height: 400px;
  }

  .vote-section::before {
    background-position: center bottom;
    background-size: cover;
    opacity: 0.6;
  }

  .vote-title-k {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    text-shadow:
      2px 2px 0 var(--kawaii-white),
      4px 4px 0 var(--kawaii-yellow);
  }

  .vote-desc-k {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .vote-buttons-box {
    padding: 20px 15px;
  }

  .vote-buttons-container {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .vote-btn-simple {
    width: 100%;
    max-width: 320px;
    padding: 14px 25px;
    font-size: 0.95rem;
  }

  /* GIF Decorations Mobile */
  .gif-decoration-1,
  .gif-decoration-3 {
    display: none;
  }

  .gif-decoration-2 {
    width: 70px;
    right: 5%;
    opacity: 0.7;
  }

  footer,
  .footer {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    margin-top: 40px !important;
  }
}

/* =========================================
   RESPONSIVE - SMALL MOBILE
   ========================================= */
@media (max-width: 480px) {
  body {
    padding-top: 70px;
  }

  .hero-section {
    padding: 25px 12px;
  }

  .hero-logo-img {
    max-width: 240px;
  }

  .hero-title {
    font-size: 1.65rem;
    letter-spacing: 0.5px;
  }

  .hero-subtitle {
    padding: 12px 20px;
    font-size: 0.9rem;
    border-width: 3px;
  }

  .btn-kawaii {
    padding: 14px 25px;
    font-size: 0.9rem;
  }

  .hero-stats-container {
    padding: 20px 25px;
    max-width: 320px;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .section-title-kawaii {
    font-size: 1.65rem;
    padding: 0 35px;
  }

  .section-title-kawaii::before,
  .section-title-kawaii::after {
    font-size: 1.5rem;
  }

  .section-subtitle-kawaii {
    font-size: 0.85rem;
    padding: 8px 20px;
  }

  .rates-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .rate-card-kawaii {
    padding: 30px 20px;
  }

  .vote-section::before {
    background-size: cover;
    opacity: 0.5;
  }

  .vote-title-k {
    font-size: 1.65rem;
  }

  .vote-desc-k {
    font-size: 0.9rem;
  }

  .vote-btn-simple {
    padding: 12px 20px;
    font-size: 0.85rem;
    max-width: 280px;
  }

  .rates-gif-decoration {
    display: none;
  }

  footer,
  .footer {
    padding-top: 35px !important;
    padding-bottom: 35px !important;
    margin-top: 30px !important;
  }
}

/* Fix para evitar scroll horizontal */
@media (max-width: 768px) {
  * {
    max-width: 100%;
  }

  .page-container {
    overflow-x: hidden;
  }
}

/* Mejora segura: respeta “Reduce motion” sin cambiar el look normal */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
