  :root {
    --pink: #FF3D9A;
    --cyan: #00D4B4;
    --yellow: #FFB800;
    --purple: #7B5EA7;
    --dark: #1a1a2e;
    --light: #fafafa;
    --text: #2d2d2d;
    --text-light: #888;
    --header-accent: #FF3D9A;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Nunito', sans-serif; color: var(--text); overflow-x: hidden; }
  body.page-leaving { overflow: hidden; }

  /* ── NAVBAR ── */
  nav {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    width: min(1240px, calc(100% - 28px)); z-index: 1000;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(14px);
    border: 2px solid color-mix(in srgb, var(--header-accent) 68%, white);
    border-radius: 24px;
    box-shadow: 0 16px 38px color-mix(in srgb, var(--header-accent) 14%, rgba(26,26,46,0.1));
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 26px; height: 72px;
  }
  .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .logo-icon { font-size: 26px; transform: rotate(-15deg); display: inline-block; }
  .logo-text { font-family: 'Fredoka One', sans-serif; font-size: 22px; letter-spacing: -0.5px; }
  .logo-text .pink-t { color: var(--pink); }
  .logo-text .cyan-t { color: var(--cyan); }
  .nav-links {
    display: flex; align-items: center; gap: 22px; list-style: none;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(26,26,46,0.06);
    border-radius: 999px;
    padding: 8px 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  }
  .nav-links a {
    text-decoration: none; color: var(--text); font-weight: 700; font-size: 13px;
    transition: color .2s;
  }
  .nav-links a:hover { color: var(--header-accent); }
  .btn-presupuesto {
    background: linear-gradient(135deg, var(--header-accent), color-mix(in srgb, var(--header-accent) 64%, white));
    color: white; border: none; padding: 11px 24px;
    border-radius: 50px; font-weight: 800; font-size: 14px;
    cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--header-accent) 34%, transparent);
  }
  .btn-presupuesto:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--header-accent) 42%, transparent); }

  /* ── HERO ── */
  #inicio {
    min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden; padding-top: 108px;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.45)),
      url('https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?w=1920&q=80') center/cover;
  }
  .hero-decor { position: absolute; pointer-events: none; }
  .hero-circle-1 { top: 12%; left: 4%; width: 60px; height: 60px; border-radius: 50%; border: 4px solid var(--yellow); opacity: 0.8; }
  .hero-circle-2 { bottom: 18%; right: 6%; width: 35px; height: 35px; border-radius: 50%; border: 4px solid var(--purple); opacity: 0.8; }
  .hero-square { bottom: 22%; left: 5%; width: 50px; height: 14px; background: var(--pink); border-radius: 4px; transform: rotate(-15deg); }
  .hero-content { position: relative; z-index: 2; max-width: 900px; padding: 20px; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.18); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3); color: white;
    padding: 9px 22px; border-radius: 50px; font-size: 14px; font-weight: 700; margin-bottom: 28px;
  }
  .hero-badge .sparkle { color: var(--yellow); }
  .hero-title { font-family: 'Fredoka One', sans-serif; font-size: clamp(2.6rem, 6.5vw, 5rem); color: white; line-height: 1.05; margin-bottom: 24px; letter-spacing: -1px; }
  .hero-title .amarillo { color: var(--yellow); }
  .hero-title .rosa { color: var(--pink); }
  .hero-sub { color: rgba(255,255,255,0.92); font-size: 18px; font-weight: 600; margin-bottom: 38px; line-height: 1.5; }
  .hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  .btn-main {
    background: linear-gradient(135deg, var(--pink), #ff6eb4);
    color: white; padding: 15px 34px; border-radius: 50px; font-weight: 800; font-size: 16px;
    text-decoration: none; box-shadow: 0 4px 20px rgba(255,61,154,0.5); transition: transform .2s;
  }
  .btn-main:hover { transform: translateY(-3px); }
  .btn-sec {
    background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.4);
    color: white; padding: 13px 32px; border-radius: 50px; font-weight: 800; font-size: 16px;
    text-decoration: none; transition: background .2s;
  }
  .btn-sec:hover { background: rgba(255,255,255,0.22); }
  .scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: white; font-size: 22px; animation: bounce 2s infinite; opacity: 0.8; }
  @keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(10px)} }

  /* ── BACKGROUNDS ── */
  .bg-dots {
    background-color: #fdf5f8;
    background-image: radial-gradient(#f9c0d8 1.2px, transparent 1.2px);
    background-size: 22px 22px;
  }
  .bg-checkers {
    background-color: #f9f5fc;
    background-image:
      linear-gradient(45deg, rgba(255,184,0,0.08) 25%, transparent 25%),
      linear-gradient(-45deg, rgba(255,61,154,0.08) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, rgba(123,94,167,0.08) 75%),
      linear-gradient(-45deg, transparent 75%, rgba(0,212,180,0.08) 75%);
    background-size: 28px 28px;
    background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  }

  /* ── SECTIONS ── */
  section { padding: 95px 40px; }
  .section-label { font-size: 12px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 12px; }
  .section-title { font-family: 'Fredoka One', sans-serif; font-size: clamp(2.2rem, 4.2vw, 3.2rem); color: var(--dark); margin-bottom: 16px; line-height: 1.1; letter-spacing: -0.5px; }
  .section-sub { color: var(--text-light); font-size: 16px; font-weight: 600; max-width: 620px; margin: 0 auto 50px; line-height: 1.5; }
  .text-center { text-align: center; }

  /* ── NOSOTROS ── */
  #nosotros .container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
  .memphis-logo-wrap {
    background: white; border-radius: 28px; padding: 50px; box-shadow: 0 10px 50px rgba(0,0,0,0.06);
    display: flex; align-items: center; justify-content: center; min-height: 420px; position: relative;
  }
  .deco-circle { position: absolute; top: 18px; right: 60px; width: 70px; height: 70px; border-radius: 50%; border: 4px solid var(--yellow); opacity: 0.7; }
  .deco-square { position: absolute; bottom: 18px; left: 30px; width: 36px; height: 36px; background: var(--cyan); opacity: 0.4; transform: rotate(45deg); border-radius: 4px; }
  .about-label { color: var(--pink); }
  .about-title { font-family: 'Fredoka One', sans-serif; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--dark); margin-bottom: 22px; line-height: 1.15; letter-spacing: -0.5px; }
  .about-title span { color: var(--cyan); }
  .about-p { color: #555; font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
  .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
  .stat-card {
    background: white; border-radius: 16px; padding: 22px; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  }
  .stat-icon {
    width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-bottom: 12px;
  }
  .icon-pink { background: rgba(255,61,154,0.12); color: var(--pink); }
  .icon-cyan { background: rgba(0,212,180,0.12); color: var(--cyan); }
  .icon-yellow { background: rgba(255,184,0,0.15); color: var(--yellow); }
  .icon-purple { background: rgba(123,94,167,0.12); color: var(--purple); }
  .stat-num { font-family: 'Fredoka One', sans-serif; font-size: 2rem; color: var(--dark); letter-spacing: -1px; }
  .stat-label { color: var(--text-light); font-size: 13px; font-weight: 700; }

  /* ── SERVICIOS ── */
  #servicios .container { max-width: 1280px; margin: 0 auto; }
  .services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .services-grid-2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; max-width: 960px; margin-left: auto; margin-right: auto; }
  .service-card {
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); cursor: pointer;
    transition: transform .3s, box-shadow .3s;
  }
  .service-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
  .service-img { width: 100%; height: 200px; object-fit: cover; display: block; }
  .service-img-wrap { position: relative; overflow: hidden; }
  .service-icon-badge {
    position: absolute; top: 14px; left: 14px;
    background: rgba(255,255,255,0.92); border-radius: 12px; padding: 8px 10px; font-size: 18px;
    backdrop-filter: blur(10px);
  }
  .service-body { padding: 22px; }
  .service-body h3 { font-family: 'Fredoka One', sans-serif; font-size: 1.2rem; color: var(--dark); margin-bottom: 10px; }
  .service-body p { color: #666; font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
  .service-link { color: var(--pink); font-weight: 800; font-size: 14px; text-decoration: none; }
  .service-link:hover { text-decoration: underline; }

  /* ── GALERÍA ── */
  #galeria { background: #fafafa; }
  #galeria .container { max-width: 1200px; margin: 0 auto; }
  .gallery-filters { display: flex; gap: 12px; justify-content: center; margin-bottom: 38px; flex-wrap: wrap; }
  .filter-btn {
    padding: 10px 26px; border-radius: 50px; font-weight: 800; font-size: 14px;
    border: 2px solid #e0e0e0; background: white; cursor: pointer; transition: all .2s; color: var(--text);
    font-family: inherit;
  }
  .filter-btn.active { background: linear-gradient(135deg, var(--pink), #ff6eb4); border-color: var(--pink); color: white; }
  .filter-btn:hover:not(.active) { border-color: var(--pink); color: var(--pink); }
  .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .gallery-item {
    border-radius: 18px; overflow: hidden; cursor: pointer; position: relative;
    aspect-ratio: 1; transition: transform .3s; display: block;
    text-decoration: none;
  }
  .gallery-item:hover { transform: scale(1.03); }
  .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .gallery-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(26,26,46,0.78) 100%);
    opacity: .92;
  }
  .gallery-item-copy {
    position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
    display: flex; flex-direction: column; gap: 8px;
  }
  .gallery-item-copy strong {
    color: white; font-family: 'Fredoka One', sans-serif; font-size: 1.05rem; line-height: 1.1;
  }
  .gallery-item-copy small {
    color: rgba(255,255,255,0.82); font-size: 12px; line-height: 1.45;
  }
  .gallery-item-tag {
    display: inline-flex; width: fit-content;
    padding: 7px 10px; border-radius: 999px;
    background: rgba(255,255,255,0.16); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    color: white; font-size: 10px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase;
  }

  /* ── TESTIMONIOS ── */
  #testimonios { background: linear-gradient(180deg, #14142b 0%, #1a1a2e 100%); padding-bottom: 110px; }
  #testimonios .section-title { color: white; }
  #testimonios .section-label { color: var(--yellow); }
  .testimonios-slider { max-width: 820px; margin: 0 auto; position: relative; }
  .testimonios-track { overflow: hidden; }
  .testimonios-inner { display: flex; transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1); }
  .testimonial {
    min-width: 100%; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px; padding: 55px 50px; text-align: center; flex-shrink: 0;
  }
  .quote-icon { font-size: 44px; color: var(--yellow); margin-bottom: 24px; display: block; font-family: Georgia, serif; line-height: 0.5; }
  .testimonial p { color: rgba(255,255,255,0.92); font-size: 17px; line-height: 1.7; margin-bottom: 28px; font-style: italic; }
  .stars { font-size: 20px; margin-bottom: 18px; letter-spacing: 2px; }
  .testimonial-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; border: 3px solid var(--yellow); }
  .testimonial-name { color: white; font-weight: 800; font-size: 16px; }
  .testimonial-type { color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 600; }
  .slider-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 36px; }
  .slider-btn {
    width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05); color: white; font-size: 20px; cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center;
  }
  .slider-btn:hover { background: var(--pink); border-color: var(--pink); }
  .slider-dots { display: flex; gap: 8px; }
  .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; transition: all .25s; }
  .dot.active { background: var(--pink); width: 30px; border-radius: 5px; }

  /* ── ZONAS (MAPA) ── */
  #zonas .container { max-width: 820px; margin: 0 auto; }
  .mapa-wrapper { position: relative; background: transparent; }
  .mapa-svg { width: 100%; height: auto; display: block; background: transparent; }
  .provincia { fill: #ede8f5; stroke: white; stroke-width: 1.2; cursor: pointer; transition: fill .25s; }
  .provincia:hover { fill: #cfc8e8; }
  .provincia.activa { fill: var(--cyan); filter: drop-shadow(0 0 5px rgba(0,212,180,0.55)); animation: pulsoActiva 2.6s ease-in-out infinite; }
  .provincia.activa:hover { fill: var(--purple); animation: none; filter: drop-shadow(0 0 8px rgba(123,94,167,0.65)); }
  @keyframes pulsoActiva { 0%,100% { fill-opacity:1; } 50% { fill-opacity:.68; } }
  .mapa-tooltip {
    position: absolute; background: var(--dark); color: white;
    padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;
    pointer-events: none; opacity: 0; transition: opacity .15s;
    white-space: nowrap; z-index: 10; top: 0; left: 0;
  }
  .mapa-tooltip.visible { opacity: 1; }
  .mapa-leyenda { display: flex; gap: 22px; justify-content: center; margin-top: 16px; }
  .ley-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-light); }
  .ley-dot { width: 14px; height: 14px; border-radius: 4px; background: #ede8f5; }
  .ley-dot.activa { background: var(--cyan); }
  .zonas-cta { text-align: center; margin-top: 28px; font-size: 14px; color: var(--text-light); font-weight: 600; }
  .zonas-cta a { color: var(--pink); font-weight: 800; text-decoration: none; }
  .zonas-cta a:hover { text-decoration: underline; }

  /* ── EQUIPO ── */
  #equipo .container { max-width: 1280px; margin: 0 auto; }
  .team-location-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: -18px auto 34px;
    flex-wrap: wrap;
  }
  .team-location-btn {
    border: 2px solid rgba(255,61,154,0.22);
    background: white;
    color: var(--dark);
    min-width: 132px;
    padding: 12px 24px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(26,26,46,0.06);
    transition: transform .2s, box-shadow .2s, color .2s, border-color .2s, background .2s;
  }
  .team-location-btn:hover {
    transform: translateY(-2px);
    border-color: var(--pink);
    color: var(--pink);
  }
  .team-location-btn.active {
    background: linear-gradient(135deg, var(--pink), #ff6eb4);
    border-color: var(--pink);
    color: white;
    box-shadow: 0 10px 26px rgba(255,61,154,0.28);
  }
  .team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
  .team-card {
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); cursor: pointer;
    transition: transform .3s, box-shadow .3s; text-align: center;
  }
  .team-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(255,61,154,0.18); }
  .team-photo-wrap { position: relative; }
  .team-photo {
    width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  }
  .team-number {
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(135deg, var(--pink), #ff6eb4);
    color: white; width: 32px; height: 32px;
    border-radius: 50%; font-weight: 900; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(255,61,154,0.4); font-family: 'Fredoka One', sans-serif;
  }
  .team-info { padding: 16px 12px; }
  .team-info h3 { font-family: 'Fredoka One', sans-serif; font-size: 1.05rem; color: var(--dark); margin-bottom: 4px; }
  .team-info p { color: var(--pink); font-size: 12px; font-weight: 800; letter-spacing: 0.5px; }

  /* ── PRESUPUESTO ── */
  #contacto .container { max-width: 820px; margin: 0 auto; }
  .form-card { background: white; border-radius: 24px; padding: 42px; box-shadow: 0 8px 40px rgba(0,0,0,0.07); }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .form-group { display: flex; flex-direction: column; gap: 8px; }
  .form-group.full { grid-column: 1 / -1; }
  .form-group label { font-weight: 800; font-size: 14px; color: var(--text); }
  .form-group input, .form-group select, .form-group textarea {
    border: 2px solid #e8e8e8; border-radius: 12px; padding: 12px 16px;
    font-family: 'Nunito', sans-serif; font-size: 15px; color: var(--text);
    transition: border-color .2s; outline: none;
  }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--pink); }
  .form-group textarea { min-height: 130px; resize: vertical; }
  .btn-submit {
    width: 100%; padding: 16px; background: linear-gradient(135deg, var(--pink), #ff6eb4);
    color: white; border: none; border-radius: 50px; font-size: 17px; font-weight: 800;
    cursor: pointer; margin-top: 24px; transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(255,61,154,0.4); font-family: inherit;
  }
  .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,61,154,0.5); }

  /* ── FAQ ── */
  #faq { background: #fafafa; }
  #faq .container { max-width: 800px; margin: 0 auto; }
  .faq-item { border: 2px solid #f0f0f0; border-radius: 16px; margin-bottom: 12px; overflow: hidden; background: white; transition: border-color .2s; }
  .faq-item:hover { border-color: rgba(255,61,154,0.3); }
  .faq-q {
    padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-weight: 800; font-size: 15px; color: var(--dark);
    transition: color .2s;
  }
  .faq-q:hover { color: var(--pink); }
  .faq-chevron { transition: transform .3s; font-size: 14px; color: var(--text-light); }
  .faq-item.open .faq-chevron { transform: rotate(180deg); }
  .faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
  .faq-item.open .faq-a { max-height: 250px; }
  .faq-a p { padding: 0 24px 22px; color: #666; font-size: 14px; line-height: 1.65; }

  /* ── FOOTER ── */
  footer { background: #0e0e1c; padding: 60px 40px 30px; }
  .footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 50px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-logo { margin-bottom: 18px; }
  .footer-desc { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.65; margin-bottom: 22px; }
  .social-links { display: flex; gap: 10px; }
  .social-link {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center; color: white; font-size: 15px;
    text-decoration: none; transition: background .2s, border-color .2s, transform .2s;
  }
  .social-link:hover { background: var(--pink); border-color: var(--pink); transform: translateY(-2px); }
  .footer-col h4 { color: var(--pink); font-weight: 800; font-size: 15px; margin-bottom: 18px; font-family: 'Fredoka One', sans-serif; letter-spacing: 0.5px; }
  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 11px; }
  .footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s; }
  .footer-col ul li a:hover { color: white; }
  .contact-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.55); font-size: 14px; margin-bottom: 14px; font-weight: 600; }
  .contact-item .icon-mini {
    width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
  }
  .footer-bottom { max-width: 1200px; margin: 26px auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
  .footer-bottom p { color: rgba(255,255,255,0.3); font-size: 13px; }
  .footer-legal { display: flex; gap: 22px; }
  .footer-legal a { color: rgba(255,255,255,0.3); font-size: 13px; text-decoration: none; font-weight: 600; transition: color .2s; }
  .footer-legal a:hover { color: white; }

  /* ── WHATSAPP ── */
  .whatsapp-btn {
    position: fixed; bottom: 28px; right: 28px; z-index: 9999;
    width: 58px; height: 58px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45); text-decoration: none;
    font-size: 28px; transition: transform .3s;
    animation: wppulse 2.5s infinite;
  }
  @keyframes wppulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
  }
  .whatsapp-btn:hover { transform: scale(1.1); }

  /* ── MODAL ── */
  .modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65);
    z-index: 10000; align-items: center; justify-content: center; padding: 20px;
    backdrop-filter: blur(4px);
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: white; border-radius: 24px; max-width: 540px; width: 100%;
    padding: 44px 40px; position: relative; animation: modalIn .35s ease;
    max-height: 90vh; overflow-y: auto;
  }
  @keyframes modalIn { from{transform:scale(0.9);opacity:0} to{transform:scale(1);opacity:1} }
  .modal-close {
    position: absolute; top: 16px; right: 16px; background: #f5f5f5;
    border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
    font-size: 18px; transition: background .2s;
  }
  .modal-close:hover { background: #ffd6e8; }
  .modal h2 { font-family: 'Fredoka One', sans-serif; font-size: 1.7rem; color: var(--dark); margin-bottom: 8px; line-height: 1.2; }
  .modal .modal-tag { color: var(--pink); font-weight: 800; font-size: 12px; margin-bottom: 14px; display: block; letter-spacing: 1.5px; text-transform: uppercase; }
  .modal p { color: #555; font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
  .modal ul { color: #555; font-size: 14px; padding-left: 22px; line-height: 1.8; }

  /* ── PAGE TRANSITION ── */
  .page-transition {
    position: fixed; inset: 0; z-index: 5000;
    display: flex; align-items: center; justify-content: center;
    background:
      radial-gradient(circle at 20% 20%, rgba(255,61,154,0.16), transparent 26%),
      radial-gradient(circle at 80% 24%, rgba(0,212,180,0.16), transparent 24%),
      linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250,250,252,0.98));
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .page-transition.is-active {
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .page-transition__inner {
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    transform: translateY(12px) scale(.96);
    transition: transform .35s cubic-bezier(0.16,1,0.3,1);
  }
  .page-transition.is-active .page-transition__inner { transform: translateY(0) scale(1); }
  .page-transition__logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Fredoka One', sans-serif; font-size: 1.55rem; color: var(--dark);
  }
  .page-transition__logo .pink-t { color: var(--pink); }
  .page-transition__logo .cyan-t { color: var(--cyan); }
  .page-transition__spinner {
    width: 54px; height: 54px; border-radius: 50%;
    border: 3px solid rgba(255,61,154,0.12);
    border-top-color: var(--pink);
    border-right-color: var(--cyan);
    animation: pageSpin .8s linear infinite;
    box-shadow: 0 12px 32px rgba(26,26,46,0.08);
  }
  .page-transition__text {
    font-size: 12px; font-weight: 800; letter-spacing: 1.8px;
    text-transform: uppercase; color: rgba(26,26,46,0.45);
  }
  @keyframes pageSpin { to { transform: rotate(360deg); } }
  @keyframes pageContentIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  main, section, footer, .sp-hero, .sp-statsbar {
    animation: pageContentIn .45s ease both;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 1024px) {
    .services-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    #nosotros .container { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    nav { width: calc(100% - 24px); padding: 0 18px; }
  }
  @media (max-width: 640px) {
    nav { top: 10px; width: calc(100% - 18px); padding: 0 14px; height: 64px; border-radius: 18px; }
    section { padding: 70px 20px; }
    .services-grid, .services-grid-2, .gallery-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .stats-grid { grid-template-columns: 1fr; }
    .logo-text { font-size: 18px; }
    .btn-presupuesto { padding: 10px 16px; font-size: 12px; }
    #inicio { padding-top: 96px; }
  }

  /* color helpers */
  .pink { color: var(--pink); }
  .cyan { color: var(--cyan); }
  .yellow { color: var(--yellow); }
  .purple { color: var(--purple); }

/* ═══════════════════════════════════════════════════════
   ANIMACIONES ESPECTACULARES
   ═══════════════════════════════════════════════════════ */

/* ── KEYFRAMES ── */
@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-25px) rotate(5deg); }
}
@keyframes floatUpDelay {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(-6deg); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes bouncing {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 15px rgba(255,61,154,0.4); }
  50%      { box-shadow: 0 6px 30px rgba(255,61,154,0.8), 0 0 0 8px rgba(255,61,154,0.15); }
}
@keyframes bounceLetter {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-8px) scale(1.05); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealScale {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes revealRotate {
  from { opacity: 0; transform: rotate(-15deg) scale(0.8); }
  to   { opacity: 1; transform: rotate(0) scale(1); }
}
@keyframes sparkleSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25%      { transform: rotate(15deg) scale(1.2); }
  75%      { transform: rotate(-15deg) scale(1.2); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-3deg); }
  75%      { transform: rotate(3deg); }
}

/* ── CLASES DE ANIMACIÓN PERMANENTES ── */
.floating       { animation: floatUp 6s ease-in-out infinite; }
.floating-delay { animation: floatUpDelay 7s ease-in-out infinite; }
.spinning       { animation: spinSlow 25s linear infinite; }
.bouncing       { animation: bouncing 2s ease-in-out infinite; }
.pulse-glow     { animation: pulseGlow 2.5s ease-in-out infinite; }
.bounce-letter  { display: inline-block; animation: bounceLetter 2s ease-in-out infinite; }
.sparkle        { display: inline-block; animation: sparkleSpin 2s ease-in-out infinite; }

/* Reveal: invisibles hasta que el observer añada .is-visible */
.reveal { opacity: 0; will-change: opacity, transform; }
.reveal.is-visible.reveal-up     { animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal.is-visible.reveal-left   { animation: revealLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal.is-visible.reveal-right  { animation: revealRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal.is-visible.reveal-scale  { animation: revealScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.reveal.is-visible.reveal-rotate { animation: revealRotate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* Stagger automático para hijos consecutivos dentro de un .reveal-group visible */
.reveal-group.is-visible > .reveal-child { animation: revealUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.reveal-group.is-visible > .reveal-child:nth-child(1) { animation-delay: 0.05s; }
.reveal-group.is-visible > .reveal-child:nth-child(2) { animation-delay: 0.15s; }
.reveal-group.is-visible > .reveal-child:nth-child(3) { animation-delay: 0.25s; }
.reveal-group.is-visible > .reveal-child:nth-child(4) { animation-delay: 0.35s; }
.reveal-group.is-visible > .reveal-child:nth-child(5) { animation-delay: 0.45s; }
.reveal-group.is-visible > .reveal-child:nth-child(6) { animation-delay: 0.55s; }
.reveal-group.is-visible > .reveal-child:nth-child(7) { animation-delay: 0.65s; }
.reveal-group.is-visible > .reveal-child:nth-child(8) { animation-delay: 0.75s; }
.reveal-group > .reveal-child { opacity: 0; }

/* ── ELEMENTOS FLOTANTES DEL HERO (formas geométricas) ── */
.hero-float {
  position: absolute;
  opacity: 0.88;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.2));
  animation: floatUp 6s ease-in-out infinite;
}
.hero-float-1 { top: 12%;  left:  6%; animation-delay: 0s;   }
.hero-float-2 { top: 18%;  right: 8%; animation-delay: 1s;   }
.hero-float-3 { top: 62%;  left:  4%; animation-delay: 2s;   }
.hero-float-4 { top: 68%;  right: 6%; animation-delay: 0.5s; }
.hero-float-5 { top: 35%;  left:  10%;animation-delay: 1.5s; }
.hero-float-6 { top: 45%;  right: 12%;animation-delay: 2.5s; }

/* ── CANVAS DE PARTÍCULAS ── */
#hero-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* ── CURSOR PERSONALIZADO ── */
.cursor-dot {
  width: 8px; height: 8px; background: var(--pink); border-radius: 50%;
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%); transition: background 0.3s, transform 0.1s;
}
.cursor-ring {
  width: 42px; height: 42px; border: 2px solid rgba(255,61,154,0.6);
  border-radius: 50%; position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
}
.cursor-ring.hovering {
  width: 64px; height: 64px;
  background: rgba(255,61,154,0.08);
  border-color: var(--cyan);
}

/* ── TEXTO GRADIENTE ANIMADO EN HERO ── */
@keyframes gradientText {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-title .amarillo {
  background: linear-gradient(90deg,#FFB800,#FF3D9A,#00D4B4,#7B5EA7,#FFB800);
  background-size: 300% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 3.5s ease infinite;
}
.hero-title .rosa {
  background: linear-gradient(90deg,#FF3D9A,#7B5EA7,#00D4B4,#FF3D9A);
  background-size: 300% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 3.5s ease infinite reverse;
}

/* ── BLOB MORFOLÓGICO EN HERO ── */
@keyframes morphBlob {
  0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(-50%,-50%) scale(1); }
  25%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(-50%,-50%) scale(1.05); }
  50%      { border-radius: 50% 60% 30% 60% / 40% 70% 60% 30%; transform: translate(-50%,-50%) scale(0.97); }
  75%      { border-radius: 70% 30% 50% 60% / 30% 60% 70% 50%; transform: translate(-50%,-50%) scale(1.03); }
}
.hero-blob {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(255,61,154,0.12) 0%, rgba(0,212,180,0.06) 50%, transparent 70%);
  animation: morphBlob 9s ease-in-out infinite;
  pointer-events: none; z-index: 1;
  top: 50%; left: 50%;
}

/* ── RIPPLE EN BOTONES ── */
@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.7; }
  100% { transform: scale(4.5); opacity: 0; }
}
.ripple-circle {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: ripple 0.65s ease-out forwards;
  pointer-events: none;
}

/* ── GLOW NEON EN CARDS ── */
.service-card:hover {
  box-shadow: 0 0 0 2px rgba(255,61,154,0.5), 0 0 30px rgba(255,61,154,0.3), 0 20px 50px rgba(255,61,154,0.18) !important;
}
.team-card:hover {
  box-shadow: 0 0 0 2px rgba(0,212,180,0.5), 0 0 30px rgba(0,212,180,0.3), 0 20px 50px rgba(0,212,180,0.18) !important;
}
.gallery-item:hover {
  box-shadow: 0 10px 40px rgba(123,94,167,0.35) !important;
}

/* ── STAGGER ANIMACIÓN DE CARDS ── */
.service-card[data-reveal-delay] { transition-delay: attr(data-reveal-delay s); }

/* ── SCROLL-DOWN SVG ── */
.scroll-down { display: flex; align-items: center; justify-content: center; }

/* ── HOVERS POTENTES EN CARDS Y BOTONES ── */
.service-card, .team-card, .zona-card, .gallery-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease !important;
}
.service-card:hover, .team-card:hover, .zona-card:hover {
  transform: translateY(-12px) scale(1.03) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18) !important;
}
.gallery-item:hover { transform: scale(1.05) rotate(-1deg) !important; }
.gallery-item img   { transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.12); }

.btn-main, .btn-sec, .btn-presupuesto {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}
.btn-main:hover, .btn-presupuesto:hover { transform: translateY(-4px) scale(1.05) !important; }
.btn-sec:hover { transform: translateY(-4px) scale(1.05) !important; }

/* Wiggle al pasar el ratón sobre los iconos de servicio */
.service-icon { transition: transform 0.3s ease; }
.service-card:hover .service-icon { animation: wiggle 0.5s ease-in-out; }

/* ── ACCESIBILIDAD: respetar preferencia de menos movimiento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-float { display: none; }
}
