
    :root{
      --bg-1: #0f0b12;           /* dark background */
      --panel: rgba(255,255,255,0.03);
      --warm-1: #d417ab;        /* gold */
      --warm-2: #ff6f61;        /* coral */
      --warm-3: #ff93c4;        /* pink */
      --accent: linear-gradient(90deg,var(--warm-1),var(--warm-2),var(--warm-3));
      --glass: rgba(255,255,255,0.06);
      --muted: rgba(255,255,255,0.75);
      --white-soft: rgba(255,255,255,0.95);
      --rounded: 14px;
    }

    /* Reset */
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      background:
        radial-gradient(600px 400px at 10% 10%, rgba(255,153,102,0.07), transparent 10%),
        radial-gradient(800px 400px at 90% 80%, rgba(255,115,140,0.06), transparent 12%),
        var(--bg-1);
      color:var(--white-soft);
      -webkit-font-smoothing:antialiased;
      -moz-osx-font-smoothing:grayscale;
      overflow-x:hidden;
    }
    body {
  transition: 
    background 1s ease, 
    color 0.8s ease, 
    border-color 0.8s ease, 
    box-shadow 0.8s ease;
}

/* Inicialmente oculto y desenfocado */
.animate-on-load {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, filter 0.8s ease-out, transform 0.8s ease-out;
}

/* Cuando se activa */
.animate-on-load.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Secuencias con delay */
.animate-on-load.delay-1 { transition-delay: 0.2s; }
.animate-on-load.delay-2 { transition-delay: 0.4s; }
.animate-on-load.delay-3 { transition-delay: 0.6s; }
.animate-on-load.delay-4 { transition-delay: 0.8s; }
.animate-on-load.delay-5 { transition-delay: 1s; }


    /* Header */
    header{
      position:fixed; left:0; right:0; top:0;
      height:76px;
      display:flex; align-items:center; justify-content:space-between;
      padding:0 48px;
      z-index:30;
      background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
      backdrop-filter: blur(8px);
      border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .logo{
      display:flex; align-items:center; gap:12px;
      font-weight:700; letter-spacing:0.6px;
    }
    .logo img {
    width: 140px;
    filter: drop-shadow(0 0 10px rgba(255, 180, 120, 0.4));
}
    .logo .mark{
      width:40px; height:40px; border-radius:10px;
      background: conic-gradient(from 120deg, #ff9ccf, #ffd27a, #ff7a6b);
      box-shadow: 0 6px 20px rgba(255,121,110,0.12), inset 0 -6px 16px rgba(0,0,0,0.25);
      display:flex; align-items:center; justify-content:center;
      color:#1b0b0b; font-weight:800;
    }
    nav{display:flex; gap:22px; align-items:center}
    nav a{
      color:var(--muted); text-decoration:none; font-weight:600; font-size:14px;
      padding:8px 10px; border-radius:8px;
    }
    nav a:hover{ color: white; background: rgba(255,255,255,0.03) }

    /* CTA on header */
    .cta{
      padding:8px 14px; border-radius:999px;
      background: linear-gradient(90deg,#fff6e1,#ffd6c1);
      color:#2b1209; font-weight:700; border:none; cursor:pointer;
      box-shadow:0 6px 24px rgba(255,150,110,0.08);
    }

    /* Layout: hero area */
    main{ padding-top:110px } /* leave space for header */
    .hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1fr 460px; /* dos columnas: texto + imagen */
  gap: 48px;
  align-items: center;
  justify-content: center;
  padding: 48px 8vw;
  position: relative;
}


    /* Left stats column */
    .stats {
      display:flex;
      flex-direction:column;
      gap:18px;
      align-self:center;
    }
    .stat-card{
      background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
      border-radius:12px;
      padding:18px;
      width:220px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.5);
      border: 1px solid rgba(255,255,255,0.04);
    }
    .stat-card .num{ font-size:20px; font-weight:800; background:var(--accent); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
    .stat-card .label{ font-size:13px; color:var(--muted); margin-top:6px }

    /* Center hero text */
    .hero-content{
      padding:42px 24px;
      display:flex; flex-direction:column; gap:18px;
    }
    .eyebrow{
      color: #ffd9b3;
      font-weight:700; font-size:13px; letter-spacing:1.4px;
      text-transform:uppercase;
    }
    .title{
      line-height:0.95; font-weight:800;
      max-width:720px;
      background: linear-gradient(90deg,#ffffff,#ffedc7 20%, #ff9db1 60%);
      -webkit-background-clip:text; -webkit-text-fill-color:transparent;
      filter: drop-shadow(0 10px 30px rgba(255,110,120,0.06));
    }
    .title .accent{
      display:inline-block;
      background: linear-gradient(90deg,#ff758c,#ffd36b);
      -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    }
    .subtitle{
      color: rgba(255,255,255,0.8); max-width:640px; font-size:16px; line-height:1.6;
    }
    .hero-actions{ margin-top:18px; display:flex; gap:14px; align-items:center; }
    

    .btn-primary{
      padding:14px 22px; border-radius:999px; border:none; cursor:pointer;
      background: linear-gradient(90deg,#ffb86b,#ff6f61); color:#14090a; font-weight:800;
      box-shadow:0 12px 30px rgba(255,110,120,0.12);
      transition: all ease .5s;
    }
    .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 150, 50, 0.3);
}
    .btn-ghost{
      padding:12px 18px; border-radius:999px; border:1px solid rgba(255,255,255,0.06);
      background:transparent; color:var(--muted); font-weight:700;
      transition: all ease .5s;
    }
    .btn-ghost:hover {
        background: linear-gradient(90deg,#ffb86b,#ff6f61);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 150, 50, 0.3);
  cursor: pointer;
}

    
    #headImg:hover{ transform:scale(1.03) rotate(-2deg) }
 
.head-wrap {
  position: relative;
  width: 100%;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

#headImg {
  width: 440px;
  height: auto;
  object-fit: contain;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 40px 80px #d417ab);
  pointer-events: none;
}

    

    /* Bottom ribbon / cinta */
    .ribbon{
      position:relative; left:0; right:0; bottom:18px; z-index:40;
      display:flex; justify-content:center;
      pointer-events:none;
    }
    .marquee{
      width:92%; max-width:1200px; border-radius:999px;
      background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
      padding:10px 18px;
      overflow:hidden; border:1px solid rgba(255,255,255,0.04);
      box-shadow: 0 10px 40px rgba(0,0,0,0.6);
      pointer-events:auto;
    }
    .marquee .track{
      display:inline-block; white-space:nowrap;
      animation: moveLeft 18s linear infinite;
      font-weight:700; font-size:15px; color:var(--muted);
      letter-spacing:0.6px;
    }
    .marquee .chip{
      display:inline-block; margin-right:26px; padding:6px 12px; border-radius:999px;
      background: linear-gradient(90deg,#fff6e1,#ffd6c1);
      color:#2b1209; margin-left:8px; font-weight:800;
      box-shadow: 0 6px 18px rgba(255,120,100,0.06);
    }
    @keyframes moveLeft{
      0%{ transform:translateX(0) }
      100%{ transform:translateX(-50%) }
    }

    /* Responsive */
    @media (max-width:1100px){
      .hero { grid-template-columns: 200px 1fr; grid-template-areas: "stats content" "stats head"; gap:20px }
      .head-wrap{ height:420px }
      .title{ font-size:44px }
      .head-card{ width:360px; height:360px }
    }
    @media (max-width:760px){
      header{ padding:0 18px }
      nav{ display:none }
      .hero{ grid-template-columns:1fr; padding:28px }
      .stats{ flex-direction:row; gap:12px; justify-content:center; order:2 }
      .hero-content{ order:1; text-align:center; padding:6px 6px }
      .head-wrap{ order:3; margin-top:8px; justify-content:center }
      .head-card{ width:320px; height:320px; margin:0 auto }
      .marquee{ width:98% }
    }


    /* ==== SERVICES SECTION ==== */

.services {
    background: radial-gradient(circle at 70% 50%, #d417ab33 0%, transparent 60%), #111;
    padding: 100px 8vw;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.services-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.services-text {
  flex: 1 1 420px;
  max-width: 600px;
}

.services-text h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #ff8a3d, #ffc86a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-text h3 {
  font-size: 1.8rem;
  color: #ffe5b3;
  margin-bottom: 15px;
}

.services-text p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 20px;
  line-height: 1.6;
}

.services-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.services-text li {
  margin: 8px 0;
  color: #ffde9f;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-learn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(90deg, #ff7f32, #ffb347);
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-learn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 150, 50, 0.3);
}

.services-image {
  flex: 1 1 360px;
  text-align: center;
  position: relative;
  perspective: 800px;
}

.services-image img {
  max-width: 100%;
  border-radius: 24px;
  filter: drop-shadow(0 0 30px #d417ab);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.services-image img:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
  filter: drop-shadow(0 0 50px #d417ab);
}

/* ==== STATS SECTION ==== */
.stats-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.15));
  padding: 80px 8vw;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: #fff;
}

.stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.stat {
  flex: 1 1 180px;
  min-width: 160px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 40px #d417ab;
}

.stat h3 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ffb86b, #ff6f61);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.stat p {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
}
/* ==== FOOTER ==== */
.footer {
  background: radial-gradient(circle at top center, rgba(255,153,102,0.07), transparent 60%), #0f0b12;
  padding: 70px 8vw 40px;
  color: rgba(255,255,255,0.85);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  width: 240px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(255,180,120,0.4));
}

.footer-logo h4 {
  margin: 5px 0;
  font-size: 1.3rem;
  background: linear-gradient(90deg, #ffb86b, #ff6f61);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links h5,
.footer-contact h5,
.footer-social h5 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #ffcf8b;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a img {
  width: 26px;
  filter: brightness(0.9) saturate(1.4);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a img:hover {
  transform: scale(1.15);
  filter: brightness(1.3);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
}

/* ==== BOTÓN DE MODO CLARO/OSCURO ==== */
.theme-toggle {
  background: var(--panel);
  border: none;
  color: var(--white-soft);
  font-size: 1.3rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--warm-2);
  color: #fff;
}

/* ==== VARIABLES DEL MODO CLARO ==== */
body.light-mode {
  --bg-1: #fefefe;
  --panel: rgba(0,0,0,0.05);
  --warm-1: #ff8a3d;
  --warm-2: #ffb347;
  --warm-3: #ff6f61;
  --accent: linear-gradient(90deg, var(--warm-1), var(--warm-2), var(--warm-3));
  --glass: rgba(0,0,0,0.05);
  --muted: rgba(30,30,30,0.8);
  --white-soft: #111;
  color: #111;
  background: #fefefe;
}
/* Ajustes específicos para que todo se vea bien en modo claro */
body.light-mode header {
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(255, 132, 132, 0.04));
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

body.light-mode nav a {
  color: #333;
}
body.light-mode nav a:hover {
  background: rgba(0,0,0,0.05);
  color: #000;
}

body.light-mode .cta {
  background: linear-gradient(90deg,#ff7f32,#ffb347);
  color: #fff;
}

body.light-mode .subtitle,
body.light-mode .footer,
body.light-mode .footer-links a,
body.light-mode .services-text p,
body.light-mode .services-text li,
body.light-mode .stat p {
  color: #333;
}

body.light-mode .footer h4,
body.light-mode .services-text h3,
body.light-mode .footer-links h5,
body.light-mode .footer-contact h5,
body.light-mode .footer-social h5 {
  color: #ff8a3d;
}

body.light-mode .footer-bottom {
  color: rgba(0,0,0,0.6);
  border-top: 1px solid rgba(0,0,0,0.08);
}

body.light-mode .services {
  background: radial-gradient(circle at 70% 50%, #ee909035 0%, transparent 60%), #fafafa;
}

body.light-mode .stat {
  background: rgba(0,0,0,0.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

body.light-mode .btn-ghost {
  border-color: rgba(0,0,0,0.1);
  color: #333;
}

body.light-mode .btn-ghost:hover {
  background: rgba(0,0,0,0.05);
}
/* ===== FIX: textos y títulos invisibles en modo claro ===== */

/* Textos generales */
body.light-mode, 
body.light-mode p, 
body.light-mode span, 
body.light-mode li {
  color: #222;
}

/* Títulos principales */
body.light-mode h1, 
body.light-mode h2, 
body.light-mode h3, 
body.light-mode h4, 
body.light-mode h5, 
body.light-mode h6 {
  color: #111;
}

/* Hero y títulos destacados con gradiente */
body.light-mode .hero h1,
body.light-mode .hero h2,
body.light-mode .title-gradient {
  background: linear-gradient(90deg, #ff8a3d, #ff6f61);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtítulos y párrafos secundarios */
body.light-mode .subtitle,
body.light-mode .text-muted,
body.light-mode .hero p {
  color: #444 !important;
}

/* Corrige textos del header y hero */
body.light-mode header,
body.light-mode header a,
body.light-mode header .logo,
body.light-mode .hero {
  color: #111;
}

/* Fondo del hero */
body.light-mode .hero {
  background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
}

/* Corrige botones */
body.light-mode .btn, 
body.light-mode button {
  color: #fff;
  background: linear-gradient(90deg, #ff8a3d, #ff6f61);
}
/* ==== HEADER & FOOTER Fix para modo claro ==== */

body.light-mode header {
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255, 189, 189, 0.6));
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

body.light-mode header a {
  color: #333;
}
body.light-mode header a:hover {
  background: rgba(0,0,0,0.04);
  color: #000;
}

body.light-mode header .logo div:first-child {
  color: #111;
}
body.light-mode header .logo div:last-child {
  color: rgba(0,0,0,0.55);
}

body.light-mode .cta {
  background: linear-gradient(90deg, #ff8a3d, #ffb347);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,150,50,0.25);
}


/* ==== FOOTER ==== */
body.light-mode footer {
  background: #f8f8f8;
  border-top: 1px solid rgba(0,0,0,0.1);
  color: #333;
}

body.light-mode footer a {
  color: #444;
}
body.light-mode footer a:hover {
  color: #000;
}

body.light-mode footer .footer-logo div:first-child {
  color: #111;
}
body.light-mode footer .footer-logo div:last-child {
  color: rgba(0,0,0,0.55);
}

/* ==== FIX FINAL HEADER MODO CLARO ==== */
body.light-mode header {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

body.light-mode header .logo div:first-child {
  color: #111; /* Marca principal visible */
}

body.light-mode header .logo div:last-child {
  color: rgba(0,0,0,0.55); /* Subtítulo más suave */
}

body.light-mode header a {
  color: #222;
  text-shadow: none;
}

body.light-mode header a:hover {
  background: rgba(0,0,0,0.05);
  color: #000;
}

body.light-mode .cta {
  background: linear-gradient(90deg, #ff8a3d, #ffb347);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,150,50,0.25);
}

/* Ícono del tema más visible */
body.light-mode .theme-toggle {
  background: rgba(0,0,0,0.06);
  color: #222;
}
body.light-mode .theme-toggle:hover {
  background: #ffb347;
  color: #fff;
}



/* //////////// BOTON DE EDITAR   ////////////// */

/* Overlay container para textos e imágenes */
.editable-wrapper {
  position: relative;
  display: inline-block; /* permite abarcar solo el contenido */
}

.editable-overlay {
  position: absolute;
  inset: 0; /* cubre todo el wrapper */
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.editable-wrapper:hover .editable-overlay {
  opacity: 1;
  pointer-events: all;
}

.editable-overlay button {
  padding: 0.5rem 1rem;
  background: #ff6f61;
  border: none;
  border-radius: 4px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.editable-overlay button:hover {
  background: #ff3b2e;
}
/* //////////// FIN BOTON DE EDITAR   ////////////// */