/* ============================================
   EL REY DE LOS ANIMALITOS — SHARED STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import '@fortawesome/fontawesome-free/css/all.min.css';
@import './fonts.css';
@import './utilities.css';

:root {
  /* ── Plaza Venezuela Palette ── */
  --warm-sky:     #F4824A;   /* plaza sky — salmon/naranja */
  --plaza-yellow: #F4C012;   /* edificio amarillo */
  --plaza-magenta:#D030A0;   /* edificio rosa */
  --plaza-royal:  #2040B0;   /* azul real de cornisas */
  --plaza-teal:   #18A5B8;   /* edificio teal */
  --plaza-terra:  #D04422;   /* terracota/naranja rojizo */
  --plaza-brown:  #6A3415;   /* madera/puertas */

  /* ── Tokens funcionales ── */
  --sky:       #FEF0D6;      /* crema cálido (antes azul frío) */
  --sky-dark:  #F8E4BC;
  --gold:      #F4C012;      /* amarillo vívido del pueblo */
  --gold-dark: #D4A010;
  --gold-light:#FADC60;
  --blue:      #2040B0;      /* azul real de las cornisas */
  --blue-dark: #1530A0;
  --navy:      #1C1830;      /* azul marino profundo */
  --teal:      #18A5B8;      /* teal plaza */
  --white:     #ffffff;
  --gray-100:  #FDF5E8;      /* crema suave */
  --gray-200:  #F5E8D0;      /* crema más profundo */
  --gray-600:  #6A5840;      /* marrón cálido para texto */
  --gray-800:  #3C2C1C;      /* marrón oscuro para encabezados */
  --success:   #22A05A;

  --font-display: 'OpenSans', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --shadow-sm: 0 2px 8px  rgba(100,50,0,0.12);
  --shadow-md: 0 4px 20px rgba(100,50,0,0.16);
  --shadow-lg: 0 8px 40px rgba(100,50,0,0.20);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 60% 48% at 95% 2%,  rgba(244,130,74,0.45)  0%, rgba(240,100,40,0.22) 38%, transparent 58%),
    radial-gradient(ellipse 65% 52% at 3%  98%,  rgba(24,165,184,0.18)  0%, transparent 55%),
    linear-gradient(168deg,
      #FEF0D6 0%,
      #FDEAC8 12%,
      #FCE4BC 28%,
      #FADEB4 48%,
      #FBE2C2 68%,
      #FCE6CC 84%,
      #FDEAD4 100%
    );
  background-attachment: fixed;
  color: var(--navy);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: 4px;
}
::-webkit-scrollbar-track { background: rgba(189,215,238,0.4); }

/* ===== SHARED TYPOGRAPHY ===== */
.display-font { font-family: var(--font-display); }

.stroke-text {
  font-family: var(--font-display);
  color: var(--navy);
  -webkit-text-stroke: 6px white;
  paint-order: stroke fill;
  position: relative;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.stroke-text-gold {
  font-family: var(--font-display);
  color: var(--gold);
  -webkit-text-stroke: 4px white;
  paint-order: stroke fill;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== SECTION WRAPPER ===== */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255,248,232,0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(244,192,18,0.28);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-display);
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1C1830;
  box-shadow: 0 4px 15px rgba(244,192,18,0.45);
  font-weight: 700;
}

.btn-gold:hover {
  box-shadow: 0 6px 28px rgba(244,192,18,0.60);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(32,64,176,0.40);
}

.btn-outline {
  background: transparent;
  border: 2.5px solid var(--gold);
  color: var(--navy);
  font-weight: 700;
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1C1830;
  font-weight: 800;
}

.badge-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
}

/* ===== SUN ===== */
.sun {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #FEFC90, #F4C012, #F4824A, #D04422);
  animation: sun-glow 3s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes sun-glow {
  from { box-shadow: 0 0 50px 20px rgba(244,130,74,0.5), 0 0 100px 40px rgba(244,192,18,0.25); }
  to   { box-shadow: 0 0 90px 40px rgba(244,130,74,0.7), 0 0 160px 70px rgba(244,192,18,0.35); }
}

/* ===== CLOUD SVG ===== */
.cloud {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

/* ===== SHARED NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254,235,195,0.82);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(244,192,18,0.30);
  box-shadow: 0 2px 20px rgba(160,80,0,0.10), 0 1px 0 rgba(255,255,255,0.6) inset;
  padding: 0.75rem 1.5rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  -webkit-text-stroke: 2px white;
  paint-order: stroke fill;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--gold);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-logo-text { font-size: 1rem; }
}

/* ===== SHARED FOOTER ===== */
.site-footer {
  background: linear-gradient(158deg, #100804 0%, #1C1008 50%, #120806 100%);
  color: white;
  padding: 3rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--plaza-terra), var(--plaza-magenta), var(--plaza-royal), var(--plaza-teal), var(--gold));
  background-size: 200% 100%;
  animation: footer-bar-shift 6s linear infinite;
}

@keyframes footer-bar-shift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand img {
  height: 64px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-200);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: var(--gray-200);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ===== PLAZA BG ===== */
.plaza-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  z-index: 0;
  pointer-events: none;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fade-up 0.6s ease forwards;
}

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

/* ===== SECTION TITLE BLOCK ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ===== ENHANCED SUN ===== */
.sun {
  animation: sun-glow 3s ease-in-out infinite alternate,
             sun-pulse 6s ease-in-out infinite;
}

@keyframes sun-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ===== BUTTON SHIMMER ===== */
.btn-gold {
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg);
  animation: btn-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shimmer {
  0%   { left: -100%; }
  100% { left: 160%; }
}

/* ===== GLASS CARD HOVER GLOW ===== */
.glass-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 8px 40px rgba(244,192,18,0.25), 0 4px 20px rgba(100,50,0,0.12);
  border-color: rgba(244,192,18,0.45);
}

/* ===== PARTICLES ===== */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-sparkle {
  position: absolute;
  border-radius: 50%;
  background: var(--plaza-yellow);
  box-shadow: 0 0 10px var(--gold), 0 0 24px var(--gold-light), 0 0 6px #fff;
  opacity: 0;
  pointer-events: none;
  animation: sparkle-up var(--dur, 5s) ease-in-out infinite var(--delay, 0s);
}

@keyframes sparkle-up {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  12%  { opacity: 0.9; transform: translateY(-15px) scale(1); }
  88%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-90px) scale(0.2); }
}

/* ===== HERO CHARACTER WRAPPERS & HALOS ===== */
.hero-char-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
}

.hero-char-halo {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 70%;
  border-radius: 50%;
  pointer-events: none;
}

.hero-char-halo--gold {
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.40) 0%, transparent 70%);
  animation: halo-pulse 3.2s ease-in-out infinite;
}

.hero-char-halo--blue {
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.35) 0%, transparent 70%);
  animation: halo-pulse 3.8s ease-in-out infinite 0.6s;
}

@keyframes halo-pulse {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.6; }
  50%       { transform: translateX(-50%) scale(1.18); opacity: 1;   }
}

/* ===== HERO SUN RING ===== */
.hero-sun-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(245,158,11,0.3);
  pointer-events: none;
  z-index: 0;
  animation: ring-expand 4s ease-in-out infinite;
  width: clamp(240px, 34vw, 470px);
  height: clamp(240px, 34vw, 470px);
  top: -95px;
  right: -75px;
}

@keyframes ring-expand {
  0%   { transform: scale(1);    opacity: 0.5; }
  50%  { transform: scale(1.12); opacity: 0.2; }
  100% { transform: scale(1);    opacity: 0.5; }
}

/* ===== SECTION CHARACTER GUIDES ===== */
.section-char {
  position: absolute;
  bottom: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

@media (min-width: 1380px) {
  .section-char { display: flex; }
}

.section-char--left {
  left: clamp(4px, calc((100vw - 1200px) / 2 - 130px), 80px);
}

.section-char--right {
  right: clamp(4px, calc((100vw - 1200px) / 2 - 130px), 80px);
}

.section-char img {
  height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.25));
  animation: float 4.5s ease-in-out infinite;
}

.char-bubble {
  background: white;
  border: 2.5px solid var(--gold);
  border-radius: 1rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 185px;
  box-shadow: 0 4px 15px rgba(245,158,11,0.25), 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  color: var(--navy);
  font-weight: 600;
  text-align: center;
}

.char-bubble--right::after {
  content: '';
  position: absolute;
  right: -13px;
  top: 1.4rem;
  border: 6px solid transparent;
  border-left-color: var(--gold);
}

.char-bubble--left::after {
  content: '';
  position: absolute;
  left: -13px;
  top: 1.4rem;
  border: 6px solid transparent;
  border-right-color: var(--gold);
}

/* ===== KEYFRAMES: SHIMMER CARD ===== */
@keyframes card-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ===== FEATURED PRICING GLOW PULSE ===== */
@keyframes featured-glow {
  0%, 100% {
    box-shadow: 0 0 18px rgba(245,158,11,0.35), 0 8px 40px rgba(0,0,0,0.15);
    border-color: var(--gold);
  }
  50% {
    box-shadow: 0 0 45px rgba(245,158,11,0.6), 0 0 80px rgba(245,158,11,0.2), 0 8px 40px rgba(0,0,0,0.15);
    border-color: var(--gold-light);
  }
}
