/* ============================================================
   CANTE PIDO EGRESADOS — style.css
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary:       #1a1a1a;
  --secondary:     #2d2d2d;
  --accent:        #d63031;
  --accent-dark:   #c0392b;
  --accent-warm:   #e17055;
  --accent-orange: #f39c12;
  --grad-brand:    linear-gradient(135deg, #d63031 0%, #e17055 55%, #f39c12 100%);
  --light:         #f8f5f5;
  --white:         #ffffff;
  --text:          #2d2d2d;
  --text-light:    #666666;
  --border:        #e8e0e0;
  --shadow-sm:     0 2px 8px rgba(214,48,49,.08);
  --shadow-md:     0 4px 20px rgba(214,48,49,.12);
  --shadow-lg:     0 8px 40px rgba(214,48,49,.18);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --transition:    .3s ease;
  --font-head:     'Montserrat', sans-serif;
  --font-body:     'Inter', sans-serif;
  --container:     1200px;
  --nav-h:         72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

/* ══ PANTALLA DE CARGA ══ */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #050d1a 0%, #0d0820 50%, #050d1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
  overflow: hidden;
}
/* blobs decorativos en el loader */
#page-loader::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.25), rgba(0,120,255,.1), transparent 70%);
  top: -150px; right: -100px;
  animation: loaderBlob 6s ease-in-out infinite;
}
#page-loader::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,183,0,.2), rgba(255,107,53,.1), transparent 70%);
  bottom: -120px; left: -80px;
  animation: loaderBlob 8s ease-in-out infinite reverse;
}
@keyframes loaderBlob {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,-20px) scale(1.1); }
}
#page-loader.loader-hide {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.loader-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 3px rgba(0,212,255,.4),
    0 0 50px rgba(0,212,255,.35),
    0 0 100px rgba(255,183,0,.2);
  animation: loaderPulse 2s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%,100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(0,212,255,.4), 0 0 40px rgba(0,212,255,.3), 0 0 80px rgba(255,183,0,.15);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 5px rgba(0,212,255,.6), 0 0 70px rgba(0,212,255,.5), 0 0 120px rgba(255,183,0,.3);
  }
}
.loader-bar {
  width: 220px;
  height: 5px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #00d4ff, #a29bfe, #ff6b9d, #ffb700, #00d4ff);
  background-size: 300% 100%;
  animation: loaderSlide 1.8s ease-in-out infinite;
}
@keyframes loaderSlide {
  0%   { background-position: 100% 0; width: 30%; }
  50%  { background-position: 0% 0;   width: 85%; }
  100% { background-position: 100% 0; width: 30%; }
}
.loader-text {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: loaderTextBlink 2s ease-in-out infinite;
}
@keyframes loaderTextBlink {
  0%,100% { opacity: .5; }
  50%      { opacity: 1; }
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--container);
  margin-inline: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(233,69,96,.08);
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: .85rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: .85rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin-inline: auto;
}

/* Scroll animation base states */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(108,92,231,.4);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 4px 32px rgba(108,92,231,.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .65rem;
  line-height: 1;
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(214,48,49,.35));
  transition: transform var(--transition);
}
.nav-logo:hover .nav-logo-img { transform: rotate(-8deg) scale(1.08); }

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo .logo-name {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.02em;
}

.nav-logo .logo-name span {
  color: var(--accent);
}

.nav-logo .logo-sub {
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 1px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* CTA nav button */
.nav-cta {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--accent);
  padding: .55rem 1.3rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}

.hamburger:hover { background: rgba(255,255,255,.1); }

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--primary);
  padding: 1.5rem 0 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  padding: .85rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--transition), background var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,.05);
}

.mobile-menu a:last-child {
  border-bottom: none;
  margin: .5rem 1.5rem 0;
  text-align: center;
  background: var(--accent);
  border-radius: 50px;
  padding: .75rem 1rem;
}

/* ============================================================
   PAGE HERO (subpages: productos, galeria)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 140px 0 60px;
  background: linear-gradient(160deg, #1a1a1a 0%, #2a1010 50%, #1a1a1a 100%);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: .75rem;
  line-height: 1.1;
}

.page-hero p {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d0d1a;
  background: linear-gradient(160deg, #0d0d1a 0%, #1a0820 40%, #0d1020 70%, #0d0d1a 100%);
}

/* Video de fondo del hero */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-shapes {
  z-index: 2;
}
.hero-photo-bg { display: none !important; }
.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh; /* 16:9 */
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  pointer-events: none;
  border: none;
}

/* Imagen de fondo — se muestra solo si no hay video */
.hero-photo-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0d0d1a 0%, #1a0820 40%, #0d1020 70%, #0d0d1a 100%);
  z-index: 0;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
}

.hero-shape-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -150px;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 350px; height: 350px;
  background: var(--accent-warm);
  bottom: -100px; left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 200px; height: 200px;
  background: var(--accent);
  top: 40%; right: 25%;
  animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.04); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(233,69,96,.15);
  border: 1px solid rgba(233,69,96,.3);
  padding: .45rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeSlideDown .8s ease .2s both;
}

.hero-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  animation: fadeSlideUp .8s ease .4s both;
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.78);
  max-width: 540px;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp .8s ease .55s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeSlideUp .8s ease .7s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .85rem 2rem;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(233,69,96,.4);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 28px rgba(233,69,96,.55);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
  box-shadow: 0 4px 20px rgba(255,255,255,.1);
}

/* Floating badge */
.hero-badge {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: fadeSlideLeft .8s ease .9s both, badgeFloat 5s ease-in-out 1.7s infinite;
  z-index: 2;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(calc(-50% - 12px)) translateX(0); }
}

.hero-badge .badge-icon {
  font-size: 2rem;
  margin-bottom: .4rem;
}

.hero-badge .badge-text {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.3;
}

.hero-badge .badge-sub {
  font-size: .72rem;
  color: var(--text-light);
  margin-top: .2rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: fadeSlideUp .8s ease 1.2s both;
  z-index: 5;
}

.scroll-wheel {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel::before {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { top: 5px; opacity: 1; }
  70%  { top: 18px; opacity: 0; }
  100% { top: 5px; opacity: 0; }
}

@keyframes fadeSlideUp   { from { opacity:0; transform:translateY(24px) } to { opacity:1; transform:translateY(0) } }
@keyframes fadeSlideDown { from { opacity:0; transform:translateY(-24px) } to { opacity:1; transform:translateY(0) } }
@keyframes fadeSlideLeft { from { opacity:0; transform:translateY(-50%) translateX(32px) } to { opacity:1; transform:translateY(-50%) translateX(0) } }

.wave-sep {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}
.wave-sep svg { display: block; width: 100%; }

/* ============================================================
   FEATURES BAR
   ============================================================ */
#features {
  padding: 5rem 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.feature-icon {
  width: 62px; height: 62px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(233,69,96,.3);
  transition: transform var(--transition);
}

.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .4rem;
}

.feature-card p {
  font-size: .87rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
#productos {
  padding: 6rem 0;
  background: var(--light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.product-img-inner {
  position: absolute;
  inset: 0;
  transition: transform .5s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Real product images — drop files in assets/img/productos/ */
.product-img-inner.has-photo { background-color: transparent; }
.product-img-inner.has-photo .product-img-icon { display: none; }

.product-img-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease;
}
.product-card:hover .product-img-real { transform: scale(1.06); }

.product-card:hover .product-img-inner { transform: scale(1.06); }

.product-img .badge-new {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 50px;
  z-index: 2;
}

/* Product gradient placeholders — warm brand palette, no blue */
.product-grad-1 { background: linear-gradient(135deg, #1a1a1a 0%, #3d1212 100%); }
.product-grad-2 { background: linear-gradient(135deg, #d63031 0%, #a01e1e 100%); }
.product-grad-3 { background: linear-gradient(135deg, #2d2d2d 0%, #5a3a1a 100%); }
.product-grad-4 { background: linear-gradient(135deg, #4a2000 0%, #8b4000 100%); }
.product-grad-5 { background: linear-gradient(135deg, #1a6b4e 0%, #25a07a 100%); }
.product-grad-6 { background: linear-gradient(135deg, #d63031 0%, #f39c12 100%); }

.product-img-inner::after { display: none; }

.product-img-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: .25;
  z-index: 1;
}

.product-body {
  padding: 1.5rem;
}

.product-body h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .4rem;
}

.product-body p {
  font-size: .87rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--light);
}

.product-price {
  font-family: var(--font-head);
  font-size: .85rem;
  color: var(--text-light);
}

.product-price strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.btn-sm {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .55rem 1.25rem;
  border-radius: 50px;
  background: var(--primary);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}

.btn-sm:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* ============================================================
   CUSTOMIZATION / STEPS
   ============================================================ */
#personalizacion {
  padding: 6rem 0;
  background: var(--light);
}

.steps-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Connecting line */
.steps-wrapper::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(12.5% + 30px);
  right: calc(12.5% + 30px);
  height: 2px;
  background: var(--grad-brand);
  z-index: 0;
}

.step-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  z-index: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(233,69,96,.4);
}

.step-icon {
  font-size: 2.5rem;
  margin: .5rem 0 1rem;
}

.step-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}

.step-card p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ============================================================
   GALLERY
   ============================================================ */
#galeria {
  padding: 6rem 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}

/* Masonry-ish spans */
.gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 3; }
.gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-item:nth-child(7) { grid-column: span 2; grid-row: span 1; }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item:nth-child(1) { aspect-ratio: 1/2; }
.gallery-item:nth-child(5) { aspect-ratio: 2/1; }
.gallery-item:nth-child(7) { aspect-ratio: 2/1; }

/* Carrusel Razones */
.razones-carousel {
  position: relative;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.razon-track {
  position: relative;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 600px;
}
.razon-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: #111;
}
.razon-slide.active {
  transform: translateX(0);
  pointer-events: auto;
}
.razon-slide.exit-left  { transform: translateX(-100%); }
.razon-slide.exit-right { transform: translateX(100%); }
@media (max-width: 640px) {
  .razon-track { height: 90vw; max-width: 100%; }
}
.razon-prev, .razon-next {
  background: var(--primary-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.razon-prev:hover, .razon-next:hover { background: #c0392b; }
.razon-dots {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}
.razon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aaa;
  cursor: pointer;
  transition: background .2s;
}
.razon-dot.active { background: var(--primary-red); }

.gallery-bg {
  position: absolute;
  inset: 0;
  transition: transform .5s ease;
}

.gallery-item:hover .gallery-bg { transform: scale(1.08); }

/* Gallery gradient placeholders — warm, no blue */
.g-1  { background: linear-gradient(135deg, #1a1a1a, #3d1212); }
.g-2  { background: linear-gradient(135deg, #d63031, #7a0d0d); }
.g-3  { background: linear-gradient(135deg, #2d2d2d, #1a6b4e); }
.g-4  { background: linear-gradient(135deg, #5a1a00, #d63031); }
.g-5  { background: linear-gradient(135deg, #2d2d2d, #8b3a00); }
.g-6  { background: linear-gradient(135deg, #1a6b4e, #2d2d2d); }
.g-7  { background: linear-gradient(135deg, #7a2d00, #e17055); }
.g-8  { background: linear-gradient(135deg, #1a1a1a, #d63031); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  gap: .5rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span:first-child {
  font-size: 2rem;
  color: var(--white);
}

.gallery-overlay p {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

/* Gallery pattern texture */
.gallery-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.03) 0,
    rgba(255,255,255,.03) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 20px 20px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  width: min(90vw, 480px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(.9);
  transition: transform var(--transition);
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox.active .lightbox-inner { transform: scale(1); }

.lightbox-real-img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.lb-label {
  position: absolute;
  bottom: 1rem;
  left: 0; right: 0;
  text-align: center;
  color: #fff;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
  z-index: 5;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}

.lightbox-close:hover { background: var(--accent); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition);
}

.lightbox-nav:hover { background: var(--accent); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ============================================================
   ABOUT
   ============================================================ */
#nosotros {
  padding: 6rem 0;
  background: var(--white);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}

.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.about-text h2 span { color: var(--accent); }

.about-text p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-text p:last-of-type { margin-bottom: 2rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border-left: 3px solid var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .2rem;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-size: .83rem;
  color: var(--text-light);
  font-weight: 500;
}

/* About visual */
.about-visual {
  position: relative;
}

.about-visual-main {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1a1a1a 0%, #3d1212 50%, #d63031 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-visual-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.04) 0,
    rgba(255,255,255,.04) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 24px 24px;
}

.about-visual-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  opacity: .15;
}

.about-real-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 20px rgba(233,69,96,.4);
}

.about-badge .ab-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.about-badge .ab-label {
  font-size: .78rem;
  font-weight: 500;
  opacity: .9;
  margin-top: .2rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contacto {
  padding: 6rem 0;
  background: var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.contact-form-wrap h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(233,69,96,.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,.1);
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
  border-color: #27ae60;
}

.form-group .error-msg {
  font-size: .78rem;
  color: #e74c3c;
  display: none;
}

.form-group.has-error .error-msg { display: block; }

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(233,69,96,.35);
}

.btn-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(233,69,96,.5);
}

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

/* Contact info */
.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-wrap h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cc-whatsapp { background: #25d366; }
.cc-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.cc-email    { background: var(--secondary); }
.cc-phone    { background: var(--primary); }

.contact-card-text .cc-label {
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-light);
}

.contact-card-text .cc-value {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 700;
  color: var(--primary);
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f5f0ef 0%, #e8d8d5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid var(--border);
  margin-top: .5rem;
  cursor: pointer;
  transition: box-shadow var(--transition);
}

.map-placeholder:hover { box-shadow: var(--shadow-md); }

.map-placeholder .map-pin { font-size: 2.2rem; }
.map-placeholder p {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--secondary);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 900;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: waPulse 2.5s ease-out infinite;
  z-index: -1;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: .7; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============================================================
   SUCCESS MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 440px;
  width: 90%;
  transform: scale(.9) translateY(20px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 20px rgba(39,174,96,.35);
}

.modal-box h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .75rem;
}

.modal-box p {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-close-btn {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 2.5rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
}

.modal-close-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  padding: 4.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand .logo-name {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--white);
}

.footer-brand .logo-name span { color: var(--accent); }

.footer-brand .logo-sub {
  font-family: var(--font-head);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  display: block;
  margin-bottom: 1.1rem;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: .6rem;
}

.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }

.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  margin-bottom: .75rem;
}

.footer-contact-item .fci-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .83rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom a {
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .products-grid   { grid-template-columns: repeat(2, 1fr); }
  .steps-wrapper   { grid-template-columns: repeat(2, 1fr); }
  .steps-wrapper::before { display: none; }
  .gallery-grid    { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(7) { grid-column: span 1; aspect-ratio: 1; }
  .about-grid      { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual    { order: -1; max-width: 500px; margin: 0 auto; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-badge      { display: none; }
}

/* ============================================================
   RESPONSIVE — 768px (Mobile)
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-ctas  { flex-direction: column; align-items: flex-start; }

  /* Sections */
  .features-grid  { grid-template-columns: 1fr; }
  .products-grid  { grid-template-columns: 1fr; }
  .steps-wrapper  { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(7) { grid-column: span 1; aspect-ratio: 1; }
  .about-stats    { grid-template-columns: 1fr 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom  { flex-direction: column; gap: .5rem; text-align: center; }

  /* Lightbox */
  .lightbox-inner { width: 95vw; }
}

@media (max-width: 480px) {
  .gallery-grid   { grid-template-columns: 1fr; }
  .about-stats    { grid-template-columns: 1fr; }
  .btn            { width: 100%; justify-content: center; }
}


/* ============================================================
   SECCIÓN REDES / INSTAGRAM REEL
   ============================================================ */
#redes {
  padding: 7rem 0;
  background: var(--white);
  overflow: hidden;
}

.redes-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: center;
}

.redes-text {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  padding: .8rem 1.5rem;
  border-radius: 50px;
  transition: all var(--transition);
  width: fit-content;
  box-shadow: 0 4px 16px rgba(220,39,67,.25);
}
.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220,39,67,.35);
}

.redes-reel {
  display: flex;
  justify-content: center;
}

.reel-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  border: 3px solid var(--border);
  background: #000;
  line-height: 0;
}
.reel-frame iframe {
  display: block;
  border-radius: 22px;
}

/* Decorative ring behind the reel */
.reel-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  background: var(--grad-brand);
  z-index: -1;
  opacity: .35;
  filter: blur(20px);
}

@media (max-width: 900px) {
  .redes-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .redes-text { align-items: center; }
  .redes-reel { justify-content: center; }
  .reel-frame iframe { width: 280px; height: 490px; }
}

/* ============================================================
   FIESTA DE COLORES — MODO JARDÍN / PRIMARIA
   Ultra-colorido, fondo de fiesta, cero colores sólidos
   ============================================================ */

/* Variables colores fiesta */
:root {
  --col-yellow:  #ffd32a;
  --col-pink:    #ff6b9d;
  --col-teal:    #00cec9;
  --col-purple:  #a29bfe;
  --col-green:   #00b894;
  --col-coral:   #ff6b6b;
  --col-blue:    #74b9ff;
  --col-orange:  #fd9644;
  --col-magenta: #e056fd;
  --col-lime:    #badc58;
  --col-sky:     #7ed6df;

  --shadow-yellow: 0 8px 28px rgba(255,211,42,.4);
  --shadow-pink:   0 8px 28px rgba(255,107,157,.4);
  --shadow-teal:   0 8px 28px rgba(0,206,201,.4);
  --shadow-purple: 0 8px 28px rgba(162,155,254,.4);
  --shadow-green:  0 8px 28px rgba(0,184,148,.4);
}

/* Fuente más divertida */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');
body { font-family: 'Fredoka', 'Inter', sans-serif !important; }
.section-title, .hero-title, h1, h2, h3 { font-family: 'Fredoka', 'Montserrat', sans-serif !important; }

/* ── BODY BASE — fondo de fiesta con confetti ── */
body {
  background:
    radial-gradient(circle at 10% 20%, rgba(255,107,157,.18) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(162,155,254,.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0,206,201,.10) 0%, transparent 60%),
    linear-gradient(135deg, #fff5e8 0%, #ffe8f5 25%, #eee8ff 50%, #e8fff8 75%, #fffde8 100%) !important;
}

/* ── ANIMACIONES GLOBALES EXTRA ── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes bounceIn {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50%       { transform: rotate(3deg); }
}
@keyframes popUp {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
@keyframes colorPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,157,.4); }
  50%       { box-shadow: 0 0 0 10px rgba(255,107,157,0); }
}
@keyframes rainbowBorder {
  0%   { border-color: var(--col-yellow); }
  25%  { border-color: var(--col-pink); }
  50%  { border-color: var(--col-teal); }
  75%  { border-color: var(--col-purple); }
  100% { border-color: var(--col-yellow); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-15px) rotate(5deg); }
  66%      { transform: translateY(-8px) rotate(-3deg); }
}
@keyframes confettiFall {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes rainbowGlow {
  0%   { box-shadow: 0 0 20px rgba(255,211,42,.4), 0 0 40px rgba(255,211,42,.1); }
  25%  { box-shadow: 0 0 20px rgba(255,107,157,.4), 0 0 40px rgba(255,107,157,.1); }
  50%  { box-shadow: 0 0 20px rgba(0,206,201,.4), 0 0 40px rgba(0,206,201,.1); }
  75%  { box-shadow: 0 0 20px rgba(162,155,254,.4), 0 0 40px rgba(162,155,254,.1); }
  100% { box-shadow: 0 0 20px rgba(255,211,42,.4), 0 0 40px rgba(255,211,42,.1); }
}
@keyframes polkaMove {
  0%   { background-position: 0 0, 25px 25px; }
  100% { background-position: 50px 50px, 75px 75px; }
}
@keyframes slideColorBg {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}
@keyframes scaleWiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25%      { transform: scale(1.03) rotate(1deg); }
  75%      { transform: scale(0.97) rotate(-1deg); }
}

/* ── NAVBAR scrolled: arcoíris vibrante ── */
#navbar.scrolled {
  background: linear-gradient(135deg,
    rgba(108,92,231,.45) 0%,
    rgba(224,86,253,.35) 33%,
    rgba(255,107,157,.35) 66%,
    rgba(255,211,42,.3) 100%
  ) !important;
  background-size: 300% 300% !important;
  animation: gradientShift 6s ease infinite !important;
  backdrop-filter: blur(18px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.6) !important;
  box-shadow: 0 4px 32px rgba(108,92,231,.2) !important;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
#navbar.scrolled .nav-link { color: #fff !important; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
#navbar.scrolled .nav-link:hover { color: #ffd32a !important; }
.nav-cta {
  background: linear-gradient(135deg, #ffd32a, #fd9644) !important;
  box-shadow: 0 4px 16px rgba(255,211,42,.4);
  animation: colorPulse 3s infinite;
  color: #333 !important;
  font-weight: 700 !important;
}
.nav-cta:hover {
  background: linear-gradient(135deg, #ff6b9d, #e056fd) !important;
  color: #fff !important;
}

/* ── HERO — shapes más vibrantes ── */
.hero-shape-1 {
  background: linear-gradient(135deg, #ff6b9d, #a29bfe) !important;
  opacity: .18 !important;
  animation: float 6s ease-in-out infinite !important;
}
.hero-shape-2 {
  background: linear-gradient(135deg, #ffd32a, #fd9644) !important;
  opacity: .15 !important;
  animation: float 8s ease-in-out infinite 1s !important;
}
.hero-shape-3 {
  background: linear-gradient(135deg, #00cec9, #74b9ff) !important;
  opacity: .15 !important;
  animation: float 7s ease-in-out infinite 2s !important;
}
.hero-tag {
  background: rgba(255,211,42,.25) !important;
  border-color: rgba(255,211,42,.6) !important;
  color: #ffd32a !important;
  font-size: 1rem !important;
}
.hero-tag .dot {
  background: #ffd32a !important;
}
.hero-title span {
  color: transparent !important;
  background: linear-gradient(135deg, #ffd32a, #ff6b9d) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
.btn-primary {
  background: linear-gradient(135deg, #ff6b9d 0%, #e056fd 50%, #a29bfe 100%) !important;
  background-size: 200% auto !important;
  animation: slideColorBg 3s ease infinite !important;
  box-shadow: 0 6px 24px rgba(255,107,157,.45) !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(224,86,253,.6) !important;
  transform: translateY(-3px) scale(1.02) !important;
}
.hero-badge {
  background: linear-gradient(135deg, #ffd32a, #fd9644) !important;
  box-shadow: 0 8px 40px rgba(255,211,42,.45) !important;
  animation: scaleWiggle 3s ease-in-out infinite !important;
}
.hero-badge .badge-icon { color: #fff; }
.hero-badge .badge-text { color: #fff !important; }
.hero-badge .badge-sub  { color: rgba(255,255,255,.85) !important; }

/* ── PAGE HERO subpáginas ── */
.page-hero {
  background: linear-gradient(135deg, #ff6b9d 0%, #ffd32a 20%, #00cec9 40%, #a29bfe 60%, #e056fd 80%, #ff6b6b 100%) !important;
  background-size: 400% 400% !important;
  animation: gradientShift 8s ease infinite !important;
  padding-bottom: 80px;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0,60 C200,0 400,40 600,20 C800,0 1000,50 1200,20 L1200,60 Z' fill='%23fff8f0'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}
.page-hero h1 { text-shadow: 0 3px 20px rgba(0,0,0,.3); }

/* ── FEATURES BAR — polka dots background ── */
#features {
  background:
    radial-gradient(circle, rgba(255,107,157,.15) 2px, transparent 2px),
    radial-gradient(circle, rgba(162,155,254,.12) 2px, transparent 2px),
    radial-gradient(circle, rgba(0,206,201,.10) 2px, transparent 2px),
    linear-gradient(160deg, #fff0f8 0%, #f0f0ff 50%, #f0fff8 100%) !important;
  background-size: 47px 47px, 37px 37px, 53px 53px, 100% 100% !important;
  background-position: 0 0, 20px 20px, 10px 35px, 0 0 !important;
  position: relative;
}
#features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ffd32a, #ff6b9d, #a29bfe, #00cec9, #00b894, #fd9644, #ffd32a);
  background-size: 300% auto;
  animation: shimmer 2s linear infinite;
}
.feature-card {
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(10px) !important;
  border: 2px solid transparent !important;
  border-radius: 24px !important;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s !important;
  position: relative;
  overflow: hidden;
  animation: rainbowBorder 4s linear infinite;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.feature-card:nth-child(1)::before { background: linear-gradient(90deg, #ffd32a, #fd9644); }
.feature-card:nth-child(2)::before { background: linear-gradient(90deg, #ff6b9d, #e056fd); }
.feature-card:nth-child(3)::before { background: linear-gradient(90deg, #00cec9, #74b9ff); }
.feature-card:nth-child(4)::before { background: linear-gradient(90deg, #a29bfe, #6c5ce7); }

.feature-card:hover {
  transform: translateY(-12px) rotate(-1deg) !important;
}
.feature-card:nth-child(1):hover { box-shadow: var(--shadow-yellow), 0 0 0 3px rgba(255,211,42,.3) !important; }
.feature-card:nth-child(2):hover { box-shadow: var(--shadow-pink), 0 0 0 3px rgba(255,107,157,.3) !important; }
.feature-card:nth-child(3):hover { box-shadow: var(--shadow-teal), 0 0 0 3px rgba(0,206,201,.3) !important; }
.feature-card:nth-child(4):hover { box-shadow: var(--shadow-purple), 0 0 0 3px rgba(162,155,254,.3) !important; }

.feature-card:nth-child(1) .feature-icon {
  background: linear-gradient(135deg, #ffd32a, #fd9644) !important;
  box-shadow: 0 6px 20px rgba(255,211,42,.5) !important;
  animation: wiggle 2s ease-in-out infinite !important;
}
.feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, #ff6b9d, #e056fd) !important;
  box-shadow: 0 6px 20px rgba(255,107,157,.5) !important;
  animation: wiggle 2s ease-in-out infinite .3s !important;
}
.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, #00cec9, #74b9ff) !important;
  box-shadow: 0 6px 20px rgba(0,206,201,.5) !important;
  animation: wiggle 2s ease-in-out infinite .6s !important;
}
.feature-card:nth-child(4) .feature-icon {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7) !important;
  box-shadow: 0 6px 20px rgba(162,155,254,.5) !important;
  animation: wiggle 2s ease-in-out infinite .9s !important;
}
.feature-icon {
  border-radius: 50% !important;
  font-size: 1.6rem !important;
}

/* ── RAZONES SECTION — waves & confetti ── */
#razones {
  background:
    radial-gradient(circle at 15% 85%, rgba(255,211,42,.2) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(224,86,253,.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0,206,201,.1) 0%, transparent 60%),
    linear-gradient(160deg, #fff5f0 0%, #ffe8f5 33%, #f0e8ff 66%, #e8fff5 100%) !important;
  position: relative;
  overflow: hidden;
}
#razones::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ff6b9d, #ffd32a, #00cec9, #a29bfe, #e056fd, #ff6b9d);
  background-size: 300% auto;
  animation: shimmer 2s linear infinite;
}
#razones .section-tag {
  background: linear-gradient(135deg, rgba(255,107,157,.15), rgba(224,86,253,.15)) !important;
  color: #e91e63 !important;
}
.razon-prev, .razon-next {
  background: linear-gradient(135deg, #ff6b9d, #e056fd) !important;
  box-shadow: 0 4px 16px rgba(255,107,157,.4);
  transition: transform .2s, box-shadow .2s !important;
  border-radius: 50% !important;
}
.razon-prev:hover, .razon-next:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 6px 24px rgba(224,86,253,.6) !important;
}
.razon-dot.active { background: var(--col-pink) !important; box-shadow: 0 0 8px rgba(255,107,157,.5); }
.razon-dot       { background: rgba(255,255,255,.4) !important; }

/* ── SECCIÓN PRODUCTOS — zigzag pattern ── */
#productos {
  background:
    radial-gradient(circle, rgba(255,211,42,.1) 2px, transparent 2px),
    radial-gradient(circle, rgba(255,107,157,.08) 3px, transparent 3px),
    radial-gradient(circle at 20% 50%, rgba(0,206,201,.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(162,155,254,.15) 0%, transparent 40%),
    linear-gradient(160deg, #fff8e8 0%, #ffe8f5 33%, #e8f0ff 66%, #e8fff0 100%) !important;
  background-size: 40px 40px, 60px 60px, 100% 100%, 100% 100%, 100% 100% !important;
  background-position: 0 0, 30px 30px, 0 0, 0 0, 0 0 !important;
  position: relative;
  overflow: hidden;
}
#productos::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ff6b9d, #a29bfe, #00cec9, #ffd32a, #fd9644, #ff6b9d);
  background-size: 300% auto;
  animation: shimmer 2s linear infinite;
}
#productos .section-tag {
  background: linear-gradient(135deg, rgba(255,107,157,.15), rgba(255,211,42,.15)) !important;
  color: #e91e63 !important;
}
.product-card {
  border: 2px solid transparent !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease !important;
  background: rgba(255,255,255,.9) !important;
  animation: rainbowBorder 5s linear infinite;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  z-index: 3;
}
.product-card:nth-child(1)::before { background: linear-gradient(90deg, #ffd32a, #fd9644); }
.product-card:nth-child(2)::before { background: linear-gradient(90deg, #ff6b9d, #e056fd); }
.product-card:nth-child(3)::before { background: linear-gradient(90deg, #a29bfe, #6c5ce7); }
.product-card:nth-child(4)::before { background: linear-gradient(90deg, #00cec9, #74b9ff); }
.product-card:nth-child(5)::before { background: linear-gradient(90deg, #fd9644, #e74c3c); }
.product-card:nth-child(6)::before { background: linear-gradient(90deg, #00b894, #00cec9); }

.product-card:nth-child(1):hover { box-shadow: var(--shadow-yellow), 0 0 0 3px rgba(255,211,42,.2) !important; transform: translateY(-12px) rotate(1deg) !important; }
.product-card:nth-child(2):hover { box-shadow: var(--shadow-pink), 0 0 0 3px rgba(255,107,157,.2) !important; transform: translateY(-12px) rotate(-1deg) !important; }
.product-card:nth-child(3):hover { box-shadow: var(--shadow-purple), 0 0 0 3px rgba(162,155,254,.2) !important; transform: translateY(-12px) rotate(1deg) !important; }
.product-card:nth-child(4):hover { box-shadow: var(--shadow-teal), 0 0 0 3px rgba(0,206,201,.2) !important; transform: translateY(-12px) rotate(-1deg) !important; }
.product-card:nth-child(5):hover { box-shadow: 0 8px 28px rgba(253,150,68,.4), 0 0 0 3px rgba(253,150,68,.2) !important; transform: translateY(-12px) rotate(1deg) !important; }
.product-card:nth-child(6):hover { box-shadow: var(--shadow-green), 0 0 0 3px rgba(0,184,148,.2) !important; transform: translateY(-12px) rotate(-1deg) !important; }

/* BTN SM en cards */
.btn-sm {
  background: linear-gradient(135deg, #ff6b9d, #e056fd) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(255,107,157,.35);
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: all .3s ease !important;
}
.btn-sm:hover {
  background: linear-gradient(135deg, #ffd32a, #fd9644) !important;
  box-shadow: 0 6px 22px rgba(255,211,42,.45) !important;
  color: #333 !important;
  transform: scale(1.05) !important;
}

/* ── SECCIÓN PERSONALIZACIÓN — burbujas ── */
#personalizacion,
#personalizacion-steps {
  background:
    radial-gradient(circle at 10% 20%, rgba(0,206,201,.2) 0%, transparent 30%),
    radial-gradient(circle at 90% 70%, rgba(116,185,255,.15) 0%, transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(162,155,254,.12) 0%, transparent 40%),
    radial-gradient(circle, rgba(0,206,201,.08) 2px, transparent 2px),
    linear-gradient(160deg, #e8fff8 0%, #e0f8ff 33%, #e8f0ff 66%, #f0fff0 100%) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 50px 50px, 100% 100% !important;
  position: relative;
  overflow: hidden;
}
#personalizacion::before,
#personalizacion-steps::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #00cec9, #00b894, #74b9ff, #a29bfe, #e056fd, #00cec9);
  background-size: 300% auto;
  animation: shimmer 2s linear infinite;
}
#personalizacion .section-tag,
#personalizacion-steps .section-tag {
  background: linear-gradient(135deg, rgba(0,206,201,.18), rgba(116,185,255,.18)) !important;
  color: #00838f !important;
}
.step-card {
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(10px) !important;
  border: 2px solid transparent !important;
  border-radius: 24px !important;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease !important;
  animation: rainbowBorder 5s linear infinite;
}
.step-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.step-card:nth-child(1)::after { background: linear-gradient(90deg, #ffd32a, #fd9644); }
.step-card:nth-child(2)::after { background: linear-gradient(90deg, #ff6b9d, #e056fd); }
.step-card:nth-child(3)::after { background: linear-gradient(90deg, #00cec9, #74b9ff); }
.step-card:nth-child(4)::after { background: linear-gradient(90deg, #a29bfe, #6c5ce7); }

.step-card:nth-child(1):hover { box-shadow: var(--shadow-yellow) !important; transform: translateY(-10px) rotate(-1deg) !important; }
.step-card:nth-child(2):hover { box-shadow: var(--shadow-pink) !important; transform: translateY(-10px) rotate(1deg) !important; }
.step-card:nth-child(3):hover { box-shadow: var(--shadow-teal) !important; transform: translateY(-10px) rotate(-1deg) !important; }
.step-card:nth-child(4):hover { box-shadow: var(--shadow-purple) !important; transform: translateY(-10px) rotate(1deg) !important; }

.step-number {
  animation: popUp 2s ease-in-out infinite;
  border-radius: 50% !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
}
.step-card:nth-child(1) .step-number { background: linear-gradient(135deg, #ffd32a, #fd9644) !important; color: #333 !important; animation-delay: 0s; }
.step-card:nth-child(2) .step-number { background: linear-gradient(135deg, #ff6b9d, #e056fd) !important; animation-delay: .3s; }
.step-card:nth-child(3) .step-number { background: linear-gradient(135deg, #00cec9, #74b9ff) !important; animation-delay: .6s; }
.step-card:nth-child(4) .step-number { background: linear-gradient(135deg, #a29bfe, #6c5ce7) !important; animation-delay: .9s; }

/* ── SECCIÓN NOSOTROS — confetti y estrellas ── */
#nosotros {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,211,42,.2) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(255,107,157,.15) 0%, transparent 35%),
    radial-gradient(circle at 50% 10%, rgba(162,155,254,.12) 0%, transparent 40%),
    radial-gradient(circle, rgba(253,150,68,.08) 2px, transparent 2px),
    radial-gradient(circle, rgba(255,211,42,.06) 3px, transparent 3px),
    linear-gradient(160deg, #fffbe8 0%, #fff0e0 33%, #ffe8f0 66%, #fff8e0 100%) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 45px 45px, 65px 65px, 100% 100% !important;
  background-position: 0 0, 0 0, 0 0, 0 0, 15px 30px, 0 0 !important;
  position: relative;
  overflow: hidden;
}
#nosotros::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ffd32a, #fd9644, #ff6b9d, #e056fd, #a29bfe, #ffd32a);
  background-size: 300% auto;
  animation: shimmer 2s linear infinite;
}
.about-tag {
  background: linear-gradient(135deg, rgba(253,150,68,.18), rgba(255,211,42,.18)) !important;
  padding: .3rem .8rem !important;
  border-radius: 50px !important;
  color: #d35400 !important;
  font-weight: 700 !important;
}
.about-text h2 { color: #1a1a1a !important; }
.about-text h2 span {
  color: transparent !important;
  background: linear-gradient(135deg, #ff6b9d, #e056fd, #a29bfe) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
.stat-card {
  border: 2px solid transparent !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(10px) !important;
  padding: 1.25rem !important;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s !important;
  animation: rainbowBorder 4s linear infinite;
}
.stat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  border-radius: 2px;
}
.stat-card:nth-child(1)::before { background: linear-gradient(180deg, #ffd32a, #fd9644); }
.stat-card:nth-child(2)::before { background: linear-gradient(180deg, #ff6b9d, #e056fd); }
.stat-card:nth-child(3)::before { background: linear-gradient(180deg, #00cec9, #74b9ff); }
.stat-card:nth-child(4)::before { background: linear-gradient(180deg, #a29bfe, #6c5ce7); }

.stat-card:nth-child(1):hover { box-shadow: var(--shadow-yellow) !important; transform: translateY(-6px) rotate(-1deg) !important; }
.stat-card:nth-child(2):hover { box-shadow: var(--shadow-pink) !important; transform: translateY(-6px) rotate(1deg) !important; }
.stat-card:nth-child(3):hover { box-shadow: var(--shadow-teal) !important; transform: translateY(-6px) rotate(-1deg) !important; }
.stat-card:nth-child(4):hover { box-shadow: var(--shadow-purple) !important; transform: translateY(-6px) rotate(1deg) !important; }

.stat-number span {
  color: transparent !important;
  background: linear-gradient(135deg, #ff6b9d, #e056fd, #a29bfe) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  font-size: 2rem !important;
}
.about-badge {
  background: linear-gradient(135deg, #ffd32a, #ff6b9d, #a29bfe) !important;
  background-size: 200% 200% !important;
  animation: gradientShift 4s ease infinite !important;
  box-shadow: 0 8px 32px rgba(255,211,42,.45) !important;
}
.about-badge .ab-number { color: #fff !important; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.about-badge .ab-label  { color: rgba(255,255,255,.9) !important; }

/* ── SECCIÓN CONTACTO — burbujas coloridas ── */
#contacto {
  background:
    radial-gradient(circle at 15% 85%, rgba(0,184,148,.2) 0%, transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(0,206,201,.15) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(116,185,255,.1) 0%, transparent 50%),
    radial-gradient(circle, rgba(0,184,148,.06) 2px, transparent 2px),
    linear-gradient(160deg, #e8fff8 0%, #e0ffff 33%, #e8f8ff 66%, #f0fff0 100%) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 50px 50px, 100% 100% !important;
  position: relative;
  overflow: hidden;
}
#contacto::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #00b894, #00cec9, #74b9ff, #a29bfe, #e056fd, #00b894);
  background-size: 300% auto;
  animation: shimmer 2s linear infinite;
}
#contacto .section-tag {
  background: linear-gradient(135deg, rgba(0,184,148,.18), rgba(0,206,201,.18)) !important;
  color: #00b894 !important;
}
.contact-form-wrap {
  border-radius: 24px !important;
  border: 2px solid transparent !important;
  box-shadow: 0 8px 40px rgba(0,184,148,.15) !important;
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(10px) !important;
  animation: rainbowBorder 5s linear infinite;
}
.contact-form-wrap h3 {
  color: transparent !important;
  background: linear-gradient(135deg, #00b894, #00cec9, #74b9ff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #00cec9 !important;
  box-shadow: 0 0 0 4px rgba(0,206,201,.2) !important;
}
.btn-submit {
  background: linear-gradient(135deg, #00b894, #00cec9, #74b9ff) !important;
  background-size: 200% auto !important;
  animation: slideColorBg 3s ease infinite !important;
  box-shadow: 0 6px 24px rgba(0,184,148,.4) !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
}
.btn-submit:hover {
  box-shadow: 0 8px 32px rgba(0,206,201,.5) !important;
  transform: translateY(-2px) scale(1.02) !important;
}
.contact-card {
  border: 2px solid transparent !important;
  border-radius: 20px !important;
  transition: transform .3s, box-shadow .3s !important;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(10px) !important;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.contact-card:nth-child(2)::before { background: linear-gradient(90deg, #25d366, #128c7e); }
.contact-card:nth-child(3)::before { background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-card:nth-child(4)::before { background: linear-gradient(90deg, #ea4335, #fbbc04); }
.contact-card:nth-child(5)::before { background: linear-gradient(90deg, #00cec9, #0984e3); }
.contact-card:hover { transform: translateX(8px) scale(1.02) !important; }
.contact-card:nth-child(2):hover { box-shadow: 0 6px 24px rgba(37,211,102,.35), 0 0 0 2px rgba(37,211,102,.2) !important; }
.contact-card:nth-child(3):hover { box-shadow: 0 6px 24px rgba(225,48,108,.35), 0 0 0 2px rgba(225,48,108,.2) !important; }
.contact-card:nth-child(4):hover { box-shadow: 0 6px 24px rgba(234,67,53,.35), 0 0 0 2px rgba(234,67,53,.2) !important; }
.contact-card:nth-child(5):hover { box-shadow: var(--shadow-teal), 0 0 0 2px rgba(0,206,201,.2) !important; }

.cc-whatsapp  { background: linear-gradient(135deg, #25d366, #128c7e) !important; }
.cc-instagram { background: linear-gradient(135deg, #f09433, #bc1888) !important; }
.cc-email     { background: linear-gradient(135deg, #ea4335, #fbbc04) !important; }
.cc-phone     { background: linear-gradient(135deg, #00cec9, #0984e3) !important; }

.contact-card-icon { box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.contact-card-text .cc-label { color: #888 !important; }
.contact-card-text .cc-value {
  color: #1a1a1a !important;
  font-weight: 700 !important;
}
.map-placeholder {
  background: linear-gradient(135deg, rgba(0,206,201,.1), rgba(116,185,255,.1)) !important;
  border: 3px dashed #00cec9 !important;
  border-radius: 20px !important;
}
.map-placeholder p { color: #00838f !important; }

/* ── SECCIÓN GALERÍA — estrellas y arcoíris ── */
#galeria {
  background:
    radial-gradient(circle at 25% 75%, rgba(162,155,254,.2) 0%, transparent 35%),
    radial-gradient(circle at 75% 25%, rgba(224,86,253,.15) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(255,107,157,.1) 0%, transparent 50%),
    radial-gradient(circle, rgba(162,155,254,.07) 2px, transparent 2px),
    radial-gradient(circle, rgba(224,86,253,.05) 3px, transparent 3px),
    linear-gradient(160deg, #f8f0ff 0%, #ffe8ff 33%, #ffe0f0 66%, #f0f0ff 100%) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px, 58px 58px, 100% 100% !important;
  position: relative;
  overflow: hidden;
}
#galeria::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #a29bfe, #e056fd, #fd79a8, #ffd32a, #00cec9, #a29bfe);
  background-size: 300% auto;
  animation: shimmer 2s linear infinite;
}
#galeria .section-tag {
  background: linear-gradient(135deg, rgba(162,155,254,.18), rgba(224,86,253,.18)) !important;
  color: #6c5ce7 !important;
}

/* Gallery items rainbow glow on hover */
.gallery-item {
  border-radius: 16px !important;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease !important;
}
.gallery-item:hover {
  transform: scale(1.03) rotate(-1deg) !important;
  animation: rainbowGlow 2s linear infinite !important;
}

/* ── REDES / INSTAGRAM — dark party ── */
#redes {
  background:
    radial-gradient(circle at 20% 80%, rgba(240,148,51,.15) 0%, transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(188,24,136,.15) 0%, transparent 35%),
    radial-gradient(circle, rgba(240,148,51,.04) 2px, transparent 2px),
    linear-gradient(160deg, #1a1a2e 0%, #2d1b3d 33%, #1e1240 66%, #1a1a2e 100%) !important;
  background-size: 100% 100%, 100% 100%, 40px 40px, 100% 100% !important;
  position: relative;
  overflow: hidden;
}
#redes::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #f09433);
  background-size: 300% auto;
  animation: shimmer 2s linear infinite;
}
#redes .section-title { color: #fff !important; }
#redes .section-subtitle { color: rgba(255,255,255,.8) !important; }
#redes .section-tag {
  background: linear-gradient(135deg, rgba(240,148,51,.25), rgba(188,24,136,.25)) !important;
  color: #f09433 !important;
}


/* ── SECTION TAGS genéricos ── */
.section-tag {
  border-radius: 50px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
}

/* ── SECTION TITLE gradiente general ── */
.section-title {
  font-size: 2.5rem !important;
}
.section-title span {
  color: transparent !important;
  background: linear-gradient(135deg, #ff6b9d, #ffd32a, #00cec9, #a29bfe) !important;
  background-size: 200% auto !important;
  animation: slideColorBg 4s ease infinite !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* ── FOOTER colorido fiesta ── */
#footer, footer {
  background:
    radial-gradient(circle at 20% 80%, rgba(255,107,157,.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(162,155,254,.1) 0%, transparent 40%),
    radial-gradient(circle, rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(160deg, #16213e 0%, #1a1a2e 33%, #2d1b3d 66%, #1e1240 100%) !important;
  background-size: 100% 100%, 100% 100%, 30px 30px, 100% 100% !important;
}
.footer-brand .logo-name {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}
.social-link {
  transition: all .3s ease !important;
}
.social-link:hover {
  background: linear-gradient(135deg, #ff6b9d, #ffd32a, #a29bfe) !important;
  background-size: 200% auto !important;
  transform: scale(1.15) rotate(-5deg) !important;
}
.footer-col ul li a:hover { color: #ffd32a !important; }
.footer-bottom { border-top: 1px solid rgba(255,211,42,.15); }

/* ── WHATSAPP FLOAT pulso colorido ── */
.whatsapp-float {
  background: linear-gradient(135deg, #25d366, #00b894) !important;
  box-shadow: 0 6px 28px rgba(37,211,102,.5) !important;
  animation: popUp 3s ease-in-out infinite !important;
}
.whatsapp-float::before {
  background: #25d366 !important;
}
.whatsapp-float:hover {
  transform: scale(1.2) rotate(-10deg) !important;
  box-shadow: 0 8px 36px rgba(37,211,102,.6) !important;
}

/* ── MODAL ── */
.modal-close-btn {
  background: linear-gradient(135deg, #00b894, #00cec9) !important;
}
.modal-close-btn:hover {
  background: linear-gradient(135deg, #ff6b9d, #e056fd) !important;
  transform: rotate(90deg) !important;
}

/* ── SCROLL TO TOP REVEAL más suave ── */
.reveal, .reveal-left, .reveal-right {
  transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1), transform .7s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── RAINBOW DIVIDERS between sections ── */
section + section::after,
section + div::after {
  content: '';
  display: block;
  height: 0;
}

/* ── SCROLLBAR arcoíris ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f0f0ff; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b9d, #ffd32a, #00cec9, #a29bfe, #e056fd);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffd32a, #00cec9, #a29bfe, #e056fd, #ff6b9d);
}

/* ── SELECTION color ── */
::selection {
  background: rgba(255,107,157,.3);
  color: #1a1a1a;
}

/* ── LINKS GENERAL ── */
a { transition: all .3s ease !important; }

/* ══════════════════════════════════════════════════
   PHOTO STRIP — tira horizontal infinita
   ══════════════════════════════════════════════════ */
.photo-strip-section {
  overflow: hidden;
  padding: 14px 0;
  background: linear-gradient(90deg, #ffd32a, #ff6b9d, #a29bfe, #00cec9, #00b894, #fd9644, #ffd32a);
  background-size: 400% 100%;
  animation: gradBG 8s linear infinite;
}
.photo-strip {
  display: flex;
  gap: 10px;
  animation: strip-scroll 60s linear infinite;
  width: max-content;
}
.photo-strip:hover { animation-play-state: paused; }
.strip-item {
  flex-shrink: 0;
  width: 260px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}
.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.strip-item:hover img { transform: scale(1.06); }

@keyframes strip-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════
   ABOUT PHOTOS COLLAGE
   ══════════════════════════════════════════════════ */
.about-photos-collage {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
  border-radius: 16px;
  overflow: hidden;
  height: 420px;
}
.ap-main {
  grid-row: 1 / 2;
  border-radius: 12px;
  overflow: hidden;
}
.ap-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.ap-main:hover img { transform: scale(1.04); }
.ap-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}
.ap-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform .5s;
}
.ap-side img:hover { transform: scale(1.04); }

.about-single-photo {
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}
.about-single-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════════════
   LEVEL SECTIONS — ARCOÍRIS FULL COLOR
   ══════════════════════════════════════════════════ */

@keyframes rainbowShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes dotDrift {
  0%   { background-position: 0 0, 20px 20px; }
  100% { background-position: 200px 200px, 220px 220px; }
}
@keyframes blobDance {
  0%   { transform: translate(0,0)    scale(1)    rotate(0deg); }
  25%  { transform: translate(40px,-30px) scale(1.15) rotate(90deg); }
  50%  { transform: translate(-20px,40px) scale(.88) rotate(180deg); }
  75%  { transform: translate(30px,20px)  scale(1.1)  rotate(270deg); }
  100% { transform: translate(0,0)    scale(1)    rotate(360deg); }
}
@keyframes blobDance2 {
  0%   { transform: translate(0,0)     scale(1)    rotate(0deg); }
  25%  { transform: translate(-50px,30px) scale(1.2)  rotate(-90deg); }
  50%  { transform: translate(30px,-40px) scale(.85) rotate(-180deg); }
  75%  { transform: translate(-20px,20px) scale(1.12) rotate(-270deg); }
  100% { transform: translate(0,0)     scale(1)    rotate(-360deg); }
}
@keyframes blobDance3 {
  0%   { transform: translate(0,0)   scale(1); }
  33%  { transform: translate(60px,40px) scale(1.3); }
  66%  { transform: translate(-40px,60px) scale(.8); }
  100% { transform: translate(0,0)   scale(1); }
}
@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .7; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}
@keyframes gradBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Base de todas las secciones de nivel ── */
.level-section {
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.level-section > .container { position: relative; z-index: 2; }

/* ── Secciones con blobs (nosotros, contacto) ── */
.has-blobs {
  position: relative;
  overflow: hidden;
}
.has-blobs > .container { position: relative; z-index: 2; }

/* Blobs para Nosotros */
#nosotros.has-blobs .blob-1 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #a29bfe, #6c5ce7, transparent 70%);
  top: -150px; right: -100px;
  animation: blobDance 16s ease-in-out infinite;
}
#nosotros.has-blobs .blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #fd79a8, #e84393, transparent 70%);
  bottom: -100px; left: -80px;
  animation: blobDance2 12s ease-in-out infinite;
}
#nosotros.has-blobs .blob-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #fdcb6e, #e17055, transparent 70%);
  top: 40%; left: 30%;
  animation: blobDance3 20s ease-in-out infinite;
}

/* Blobs para Contacto */
#contacto.has-blobs .blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #55efc4, #00b894, transparent 70%);
  top: -100px; left: -120px;
  animation: blobDance2 14s ease-in-out infinite;
}
#contacto.has-blobs .blob-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #74b9ff, #0984e3, transparent 70%);
  bottom: -80px; right: -100px;
  animation: blobDance 18s ease-in-out infinite;
}
#contacto.has-blobs .blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ffeaa7, #fdcb6e, transparent 70%);
  top: 50%; left: 45%;
  animation: blobDance3 15s ease-in-out infinite;
}

/* ── Capa de puntos animada ── */
.level-section .dots-layer {
  display: none;
}

/* ── Blobs ── */
.level-section .blob, .has-blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: .75;
}

/* ═══ JARDÍN ═══ */
.level-jardin {
  background:
    linear-gradient(135deg,
      #FF6B6B, #FFD93D, #6BCB77, #4D96FF,
      #FF6B9D, #FFD93D, #00CEC9, #FF6B6B
    );
  background-size: 500% 500%;
  animation: rainbowShift 8s ease infinite;
}
.level-jardin .blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #fff176, #ffca28, #ff7043, transparent 70%);
  top: -120px; left: -80px;
  animation: blobDance 14s ease-in-out infinite;
}
.level-jardin .blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #69f0ae, #00e676, #1de9b6, transparent 70%);
  bottom: -100px; right: -60px;
  animation: blobDance2 11s ease-in-out infinite;
}
.level-jardin .blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ff80ab, #ea80fc, #b388ff, transparent 70%);
  top: 40%; left: 50%;
  animation: blobDance3 18s ease-in-out infinite;
}

/* ═══ PRIMARIA ═══ */
.level-primaria {
  background:
    linear-gradient(135deg,
      #A29BFE, #6C5CE7, #74B9FF, #00CEC9,
      #FD79A8, #FDCB6E, #A29BFE, #6C5CE7
    );
  background-size: 500% 500%;
  animation: rainbowShift 10s ease infinite;
}
.level-primaria .blob-1 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #80d8ff, #40c4ff, #7c4dff, transparent 70%);
  top: -130px; right: -100px;
  animation: blobDance 12s ease-in-out infinite;
}
.level-primaria .blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #ea80fc, #e040fb, #ff4081, transparent 70%);
  bottom: -80px; left: -80px;
  animation: blobDance2 15s ease-in-out infinite;
}
.level-primaria .blob-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #ffe57f, #ffd740, #69f0ae, transparent 70%);
  top: 30%; right: 30%;
  animation: blobDance3 20s ease-in-out infinite;
}

/* ═══ SECUNDARIA ═══ */
.level-secundaria {
  background:
    linear-gradient(135deg,
      #FD79A8, #E17055, #FDCB6E, #FF6B6B,
      #A29BFE, #FD79A8, #FF7675, #E17055
    );
  background-size: 500% 500%;
  animation: rainbowShift 9s ease infinite;
}
.level-secundaria .blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ff8a65, #ff5252, #ff1744, transparent 70%);
  top: -100px; left: -60px;
  animation: blobDance 13s ease-in-out infinite;
}
.level-secundaria .blob-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #ff80ab, #f06292, #ce93d8, transparent 70%);
  bottom: -90px; right: -70px;
  animation: blobDance2 16s ease-in-out infinite;
}
.level-secundaria .blob-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #ffe082, #ffca28, #26c6da, transparent 70%);
  top: 35%; left: 40%;
  animation: blobDance3 22s ease-in-out infinite;
}

/* ── Featured photos ── */
.level-featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}
.level-feat-img {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  transition: transform .4s, box-shadow .4s;
}
.level-feat-img:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.level-feat-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s;
}
.level-feat-img:hover img { transform: scale(1.06); }

@media (max-width: 900px) {
  .level-featured { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .level-featured { grid-template-columns: 1fr 1fr; gap: 8px; }
  .level-feat-img { aspect-ratio: 1/1; border-radius: 10px; }
}

/* ── Photo masonry grid ── */
.level-photo-grid {
  columns: 4;
  column-gap: 10px;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px)  { .level-photo-grid { columns: 3; } }
@media (max-width: 600px)  { .level-photo-grid { columns: 2; } }
@media (max-width: 400px)  { .level-photo-grid { columns: 2; column-gap: 6px; } }

.level-photo-item {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.level-photo-item:hover { transform: translateY(-4px); }
.level-photo-item img {
  width: 100%; display: block;
  border-radius: 12px;
  transition: transform .4s;
}
.level-photo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  border-radius: 12px; font-size: 1.5rem;
}
.level-photo-item:hover img { transform: scale(1.05); }
.level-photo-item:hover .level-photo-overlay { opacity: 1; }
.level-jardin    .level-photo-item:hover { box-shadow: 0 10px 35px rgba(255,100,0,.5); }
.level-primaria  .level-photo-item:hover { box-shadow: 0 10px 35px rgba(120,60,255,.5); }
.level-secundaria .level-photo-item:hover{ box-shadow: 0 10px 35px rgba(255,30,100,.5); }

/* ── CTA ── */
.level-cta { text-align: center; padding: 1rem 0 2rem; }

/* ── Texto legible sobre fondo brillante ── */
.level-section .section-tag {
  background: rgba(0,0,0,.18);
  color: #fff !important;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.3);
}
.level-section .section-title,
.level-section .section-title span { color: #fff !important; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.level-section .section-subtitle   { color: rgba(255,255,255,.92) !important; }

/* ── CTA buttons ── */
.level-jardin .btn-primary    { background: rgba(0,0,0,.35) !important; color:#fff !important; border:2px solid rgba(255,255,255,.6) !important; backdrop-filter:blur(4px); }
.level-primaria .btn-primary  { background: rgba(0,0,0,.35) !important; color:#fff !important; border:2px solid rgba(255,255,255,.6) !important; backdrop-filter:blur(4px); }
.level-secundaria .btn-primary{ background: rgba(0,0,0,.35) !important; color:#fff !important; border:2px solid rgba(255,255,255,.6) !important; backdrop-filter:blur(4px); }
.level-section .btn-primary:hover { background: rgba(0,0,0,.55) !important; transform: translateY(-3px) scale(1.04); }

/* ══════════════════════════════════════════
   NEWS SECTION
══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   ONDAS DE TRANSICIÓN ENTRE SECCIONES
═══════════════════════════════════════════ */
/* onda dentro de una sección (news → jardín) */
.section-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 4;
  pointer-events: none;
}
.section-wave svg {
  display: block;
  width: 100%;
  height: 120px;
}
/* onda entre secciones (hero → news), fuera del flujo */
.section-wave-divider {
  display: block;
  line-height: 0;
  margin-top: -2px;
  background: #050d1a;
  pointer-events: none;
}
.section-wave-divider svg {
  display: block;
  width: 100%;
  height: 110px;
  background: transparent;
}

/* ═══════════════════════════════════════════
   NEWS SECTION — colorida y con vida
═══════════════════════════════════════════ */
.news-section {
  position: relative;
  padding: 6rem 0 7rem;
  overflow: visible;
  background: linear-gradient(160deg,
    #050d1a 0%,
    #071428 30%,
    #0a1e3a 60%,
    #071428 100%);
}
/* destello de luz eléctrica que se mueve */
.news-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%,
    rgba(0,212,255,.10) 0%,
    rgba(0,168,255,.07) 40%,
    transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%,
    rgba(255,183,0,.08) 0%,
    transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Blobs decorativos */
.news-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.news-blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,212,255,.45), rgba(0,120,255,.25), transparent 70%);
  top: -250px; right: -200px;
  animation: blobDance 20s ease-in-out infinite;
}
.news-blob-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(255,183,0,.4), rgba(255,107,53,.25), transparent 70%);
  bottom: -180px; left: -150px;
  animation: blobDance2 16s ease-in-out infinite;
}
.news-blob-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0,230,180,.3), rgba(0,180,255,.2), transparent 70%);
  top: 35%; left: 40%;
  animation: blobDance3 24s ease-in-out infinite;
}

/* Header */
.news-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 2;
}
.news-tag-label {
  display: inline-block;
  background: linear-gradient(135deg, #00d4ff, #0078ff);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .4rem 1.3rem;
  border-radius: 99px;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 22px rgba(0,180,255,.45);
}
.news-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  margin: 0 0 .6rem;
  background: linear-gradient(120deg, #ffffff 0%, #7ee8ff 45%, #ffb700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0,200,255,.35));
}
.news-subtitle {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  margin: 0;
}

/* Grid de cards */
.news-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (max-width: 700px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ── Card base ── */
.news-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
  transition: transform .35s ease, box-shadow .35s ease;
}
/* glow de borde animado al hover */
.news-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, #00d4ff, #0078ff, #ffb700, #ff6b35, #00e6b4);
  background-size: 300% 300%;
  animation: rainbowShift 5s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity .35s ease;
}
.news-card:hover::before { opacity: 1; }
.news-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 30px 70px rgba(0,180,255,.3);
}

/* ── Primera card: HERO — ocupa las 2 columnas, layout horizontal ── */
.news-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
@media (max-width: 700px) {
  .news-card:first-child {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}
.news-card:first-child .news-card-img {
  position: relative;
  overflow: hidden;
}
.news-card:first-child .news-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card:first-child .news-card-body {
  padding: 2.8rem 2.6rem;
  justify-content: center;
}
.news-card:first-child .news-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  z-index: 2;
}
.news-card:first-child .news-cat-badge {
  font-size: .8rem;
  padding: .38rem 1.1rem;
}
.news-card:first-child .news-card-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.25;
}
.news-card:first-child .news-card-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
}

/* ── Cards normales (2ª en adelante) ── */
.news-card-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--accent-a, #00d4ff), var(--accent-b, #ffb700));
  display: block;
  flex-shrink: 0;
}
.news-card-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.news-card-body {
  padding: 1.8rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  background: rgba(5,13,26,.55);
}
.news-cat-badge {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .32rem 1rem;
  border-radius: 99px;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--accent-a, #00d4ff), var(--accent-b, #ffb700));
  color: #fff;
  box-shadow: 0 3px 14px rgba(0,180,255,.3);
  border: none;
}
.news-card-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.news-card-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  margin: 0;
  line-height: 1.7;
}
.news-card-date {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  margin-top: .3rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.news-card-date::before {
  content: '📅';
  font-size: .85rem;
}
.news-empty {
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 5rem;
  grid-column: 1/-1;
  font-size: 1.1rem;
}

/* ── Emojis flotantes ── */
.news-emoji {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: var(--s, 2rem);
  pointer-events: none;
  z-index: 1;
  animation: emojiFloat var(--t, 16s) var(--d, 0s) ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
  user-select: none;
  will-change: transform;
}
@keyframes emojiFloat {
  0%   { transform: translateY(0)    rotate(0deg)   scale(1); }
  20%  { transform: translateY(-18px) rotate(8deg)  scale(1.08); }
  45%  { transform: translateY(-8px)  rotate(-5deg) scale(.96); }
  70%  { transform: translateY(-24px) rotate(10deg) scale(1.06); }
  100% { transform: translateY(0)    rotate(0deg)   scale(1); }
}

/* ── Hover overlay en imagen ── */
.news-card-img {
  position: relative;
  overflow: hidden;
}
.news-card-img--click { cursor: zoom-in; }
.news-img-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity .25s ease;
  backdrop-filter: blur(2px);
}
.news-card-img--click:hover .news-img-zoom { opacity: 1; }
.news-card-img--click img {
  transition: transform .4s ease;
}
.news-card-img--click:hover img { transform: scale(1.06); }

/* ── Lightbox ── */
.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.news-lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.news-lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.8);
  transform: scale(.9);
  transition: transform .3s ease;
}
.news-lightbox.active .news-lightbox-img { transform: scale(1); }
.news-lightbox-close {
  position: fixed;
  top: 1.4rem;
  right: 1.8rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  backdrop-filter: blur(6px);
}
.news-lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ============================================================
   RESPONSIVE GLOBAL — nivel sections + general
   ============================================================ */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
  .level-section { padding: 3.5rem 0 2rem; }
  .section-header { margin-bottom: 2rem; }
  .section-title  { font-size: clamp(1.8rem, 5vw, 2.6rem); }
  .level-photo-item { margin-bottom: 8px; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .level-section { padding: 2.5rem 0 1.5rem; }
  .level-cta { padding: .5rem 0 1.5rem; }
  .level-cta .btn { width: 90%; max-width: 360px; justify-content: center; }

  /* Strip de fotos oculto en mobile */
  .photo-strip-section { display: none; }

  /* Navbar mobile */
  .nav-inner { padding: 0 1rem; }
  .nav-logo .logo-name { font-size: 1.3rem; }

  /* Hero mobile */
  .hero-content .container { padding-left: 1rem; padding-right: 1rem; }
  .hero-title  { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-subtitle { font-size: .9rem; max-width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero-ctas .btn { text-align: center; justify-content: center; }

  /* Sección Nosotros */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .stat-card   { padding: 1rem .75rem; }
  .stat-number { font-size: 1.6rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links-group { min-width: unset; }
  .footer-bottom { flex-direction: column; gap: .4rem; text-align: center; }

  /* Contacto */
  .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* Mobile pequeño (≤ 480px) */
@media (max-width: 480px) {
  .level-section { padding: 2rem 0 1rem; }
  .level-photo-grid { column-gap: 6px; }
  .level-photo-item { margin-bottom: 6px; border-radius: 8px; }
  .level-photo-item img,
  .level-photo-item video { border-radius: 8px; }

  .section-header { margin-bottom: 1.5rem; }
  .section-title  { font-size: 1.5rem; }
  .section-subtitle { font-size: .88rem; }

  /* Novedades mobile */
  .news-section { padding: 3rem 0; }
  .news-grid { gap: 1rem; }

  /* Botones full width en mobile */
  .hero-ctas .btn { width: 100%; }
  .level-cta .btn { width: 100%; max-width: 100%; }

  /* Contacto */
  .contact-card { padding: .85rem; }

  /* About badge */
  .about-badge { left: 0; right: auto; bottom: -1rem; padding: 1rem 1.2rem; }
  .ab-number { font-size: 1.6rem; }
}

/* ── video dentro del grid de fotos ── */
.level-photo-item video {
  width: 100%;
  display: block;
  border-radius: 12px;
  aspect-ratio: 9/16;
  object-fit: cover;
}

/* Mobile muy pequeño (≤ 360px) */
@media (max-width: 360px) {
  .level-photo-grid { columns: 2; column-gap: 4px; }
  .nav-logo-img { width: 36px; height: 36px; }
  .nav-logo .logo-name { font-size: 1.25rem; }
  .nav-logo .logo-sub  { display: none; }
}
