:root {
  --bg: #0d141a;
  --bg-alt: #121c25;
  --card: #17232e;
  --text: #e8eef4;
  --muted: #b8c0cc;
  --blue: #2575fc;
  --purple: #4e0887;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { font-family: "Poppins", "Roboto", system-ui, sans-serif; background: #05030f; color: var(--text); line-height: 1.6; }

/* Fondo espacial: capas de estrellas fijas */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 120px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 160px 70px, #cfe0ff, transparent),
    radial-gradient(1px 1px at 230px 190px, #fff, transparent),
    radial-gradient(1px 1px at 60px 210px, #e6d9ff, transparent),
    radial-gradient(1px 1px at 40px 60px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 180px 140px, #fff, transparent),
    radial-gradient(1px 1px at 100px 20px, #bcd4ff, transparent);
  background-size: 250px 240px, 250px 240px, 250px 240px, 250px 240px, 170px 150px, 170px 150px, 310px 280px, 310px 280px;
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .65; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* Estrellas fugaces (las crea js/main.js) */
.shooting-star { position: fixed; z-index: -1; pointer-events: none; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(190, 215, 255, .8) 70%, #fff);
  box-shadow: 0 0 8px 1px rgba(150, 190, 255, .7);
  opacity: 0; transform: rotate(var(--angle)) translateX(0);
  animation: shoot var(--dur) ease-out forwards; }
@keyframes shoot {
  0% { opacity: 0; transform: rotate(var(--angle)) translateX(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--angle)) translateX(var(--dist)); }
}
/* Rayo azul con humo (lo crea js/main.js) */
.lightning { position: fixed; z-index: -1; pointer-events: none; }
.lightning svg { position: relative; display: block; overflow: visible; opacity: 0;
  filter: drop-shadow(0 0 5px #4da3ff) drop-shadow(0 0 16px #2575fc);
  animation: bolt-flash .9s linear forwards; }
.lightning path { fill: none; stroke: #e8f3ff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lightning .branch { stroke-width: 1.3; }
.lightning__smoke { position: absolute; inset: -10% -60%; border-radius: 50%; opacity: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(70, 140, 255, .4), rgba(37, 117, 252, .18) 45%, transparent 70%);
  filter: blur(28px); animation: bolt-smoke 3.2s ease-out forwards; }
@keyframes bolt-flash {
  0% { opacity: 0; } 4% { opacity: 1; } 10% { opacity: .25; } 16% { opacity: 1; }
  30% { opacity: .5; } 45% { opacity: .85; } 100% { opacity: 0; }
}
@keyframes bolt-smoke {
  0% { opacity: 0; transform: scale(.5); } 12% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.5) translateY(-6%); }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(640px, 100% - 32px); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(5, 3, 15, .75); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 96px; }
.header__logo img { height: 80px; width: auto; }
.nav { display: flex; gap: 28px; font-weight: 500; text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.nav a:hover { color: var(--blue); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.icon-link:hover { color: var(--blue); }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; height: 2px; background: var(--text); }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; font: 600 .95rem inherit; font-family: inherit; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 117, 252, .35); }
.btn--sm { padding: 8px 18px; font-size: .8rem; }

/* Hero */
/* Nebulosas continuas: un solo fondo para todo el contenido, sin cortes entre secciones */
main {
  background:
    radial-gradient(ellipse 60% 14% at 88% 6%, rgba(150, 90, 255, .5), transparent),
    radial-gradient(ellipse 55% 14% at 8% 16%, rgba(40, 90, 255, .45), transparent),
    radial-gradient(ellipse 70% 12% at 20% 34%, rgba(120, 70, 230, .4), transparent),
    radial-gradient(ellipse 60% 12% at 85% 44%, rgba(60, 60, 220, .35), transparent),
    radial-gradient(ellipse 60% 12% at 80% 54%, rgba(230, 90, 170, .25), transparent),
    radial-gradient(ellipse 65% 12% at 15% 64%, rgba(40, 110, 255, .35), transparent),
    radial-gradient(ellipse 70% 12% at 60% 76%, rgba(140, 70, 220, .35), transparent),
    radial-gradient(ellipse 60% 12% at 10% 92%, rgba(40, 90, 255, .4), transparent),
    radial-gradient(ellipse 60% 12% at 92% 96%, rgba(150, 90, 255, .45), transparent); }

.hero { padding: 64px 0 96px;
  background:
    radial-gradient(circle at 16% 78%, #fff 0, #7fb0ff 3px, rgba(60, 120, 255, .55) 14px, transparent 60px),
    radial-gradient(circle at 90% 70%, #fff 0, #8fd0ff 2px, rgba(60, 140, 255, .5) 12px, transparent 50px); }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 28px; }
.hero h1 span { display: block; background: linear-gradient(90deg, #6ea8ff, #c18bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Sections */
.section { padding: 80px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; color: #8fb4ff; font-weight: 700; font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.1; text-align: center; margin-bottom: 12px; }
.title { text-align: center; font-size: clamp(1.7rem, 3.8vw, 2.6rem); line-height: 1.3; margin-bottom: 48px; }
.lead { text-align: center; color: var(--muted); margin: -28px 0 32px; }

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { background: rgba(23, 15, 60, .6); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--blue); }
.card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card p { color: var(--muted); }

.plan { background: rgba(23, 15, 60, .6); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 36px 28px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.plan--featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 16px 40px rgba(37, 117, 252, .2); }
.plan h3 { font-size: 1.25rem; }
.plan__price { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.plan__price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan ul { color: var(--muted); text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; flex: 1; }
.plan li { padding: 4px 0; }

.extra { background: var(--card); border-radius: var(--radius); overflow: hidden; text-align: center; }
.extra img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 12px; }
.extra figcaption { padding: 14px; font-weight: 600; }

.cta { text-align: center;
  background: radial-gradient(circle at 12% 60%, #fff 0, #7fb0ff 3px, rgba(60, 120, 255, .5) 14px, transparent 60px); }
.cta blockquote { font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 600; line-height: 1.3; margin-bottom: 20px; }
.cta p { max-width: 720px; margin: 0 auto 16px; color: var(--muted); }
.cta .cta__sub { color: var(--text); font-weight: 600; margin-bottom: 24px; }

.footer { padding: 28px 0; text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .08); }

.wa { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); z-index: 60; }

/* Responsive */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__img { order: -1; max-width: 360px; margin-inline: auto; }
  .burger { display: flex; }
  .nav { position: absolute; top: 96px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid rgba(255, 255, 255, .08); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; }
}
@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .header__actions .btn { display: none; }
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 1.4s ease, visibility 0s linear 1.4s; }
.modal.open { opacity: 1; visibility: visible; transition: opacity 1.4s ease; }
.modal__box { position: relative; width: min(440px, 100%); margin: auto; background: #300a3c; border-radius: 10px; padding: 28px 32px 32px; overflow: hidden; isolation: isolate; }
@media (prefers-reduced-motion: reduce) { .modal { transition: none; } }
.modal__wave { position: absolute; top: 0; right: 0; width: 45%; height: 100%; z-index: -1; }
.modal__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #cfc3d6; font-size: 2rem; line-height: 1; cursor: pointer; }
.modal__orb { position: absolute; top: 64px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #1ec3ff, #4a3fe0); box-shadow: 0 0 24px rgba(0, 0, 0, .4); z-index: -1; }
.modal h2 { font-size: clamp(1.3rem, 4.5vw, 1.7rem); font-weight: 500; margin-bottom: 8px; padding-right: 24px; }
.modal__lead { color: #d3c8dd; font-weight: 500; font-size: .9rem; max-width: 300px; margin-bottom: 16px; }
.form { display: grid; gap: 12px; }
.form fieldset { font-size: .9rem; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea { width: 100%; padding: 11px 14px; font-size: .9rem; border: 0; border-radius: 4px; background: #fff; color: #333; font: inherit; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid #1ec3ff; }
.form fieldset { border: 0; display: grid; gap: 2px; }
.form fieldset label { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.btn--teal { justify-self: end; background: #038aa3; padding: 11px 30px; }
@media (max-width: 520px) { .modal__box { padding: 24px 20px 26px; } .modal__orb { display: none; } }

/* Palabra destacada con subrayado curvo */
.underline { color: #b48cff; display: inline-block; padding-bottom: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q75 1 150 6 T298 4' fill='none' stroke='%23b48cff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 0% 12px;
  transition: background-size 1.2s ease-out; }
.underline.draw { background-size: 100% 12px; }
@media (prefers-reduced-motion: reduce) { .underline { transition: none; background-size: 100% 12px; } }

/* Efecto máquina de escribir en el título del hero */
.hero h1 span { min-height: 1.15em; }
.hero h1 span.typing::after { content: ""; display: inline-block; width: 3px; height: .9em; margin-left: 4px; vertical-align: -.05em; background: #c18bff; animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Íconos de servicios */
.card { position: relative; }
.card__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 16px; color: #fff; box-shadow: 8px 8px 0 rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .35); transition: transform .3s; }
.card__icon svg { width: 32px; height: 32px; }
.card:hover .card__icon { transform: translateY(-4px) rotate(-6deg) scale(1.08); }
.card__icon--red { background: linear-gradient(135deg, #ff6b6b, #ee3d5a); }
.card__icon--blue { background: linear-gradient(135deg, #4da3ff, #2575fc); }
.card__icon--green { background: linear-gradient(135deg, #3ddc97, #1fa971); }
.card__icon--pink { background: linear-gradient(135deg, #e08cf0, #a45be0); }
.card:hover { box-shadow: 0 12px 36px rgba(120, 80, 255, .35); }
.card h3 { font-size: 1.25rem; }

/* Planes: flotan suavemente y se destacan al pasar el cursor */
.plan { position: relative; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background .35s ease; animation: plan-float 5s ease-in-out infinite; }
.grid--3 .plan:nth-child(2) { animation-delay: -1.7s; }
.grid--3 .plan:nth-child(3) { animation-delay: -3.4s; }
@keyframes plan-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.plan:hover, .plan:focus-within { animation-play-state: paused; transform: translateY(-10px) scale(1.04); border-color: #b48cff; background: rgba(48, 28, 110, .75); box-shadow: 0 0 0 1px #b48cff, 0 20px 50px rgba(150, 90, 255, .45); }
.plan__price { transition: transform .35s ease, color .35s ease; }
.plan:hover .plan__price { transform: scale(1.1); color: #d9c4ff; }
.plan .btn { transition: transform .2s, box-shadow .2s; }
.plan:hover .btn { transform: scale(1.08); box-shadow: 0 8px 24px rgba(37, 117, 252, .5); }
@media (prefers-reduced-motion: reduce) { .plan { animation: none; } }

/* WhatsApp: cambia de color al pasar el cursor */
.wa { transition: background .3s, transform .3s, box-shadow .3s; }
.wa svg { transition: fill .3s; }
.wa:hover, .wa:focus-visible { background: #fff; transform: scale(1.1); box-shadow: 0 8px 24px rgba(37, 211, 102, .6); }
.wa:hover svg, .wa:focus-visible svg { fill: #25d366; }

/* Tarjetas de servicios en 3D: se inclinan con el mouse y brilla la luz (js/main.js) */
.grid--4 .card { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .15s ease-out, border-color .2s, box-shadow .2s; will-change: transform; }
.card.is-tilting { transition: transform .08s linear, border-color .2s, box-shadow .2s; }
.card:hover { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(150, 190, 255, .28), transparent 55%); }
.card:hover::after { opacity: 1; }
.card__icon, .card h3 { transition: transform .25s ease; }
.card:hover .card__icon { transform: translateZ(46px) translateY(-4px) rotate(-6deg) scale(1.08); }
.card:hover h3 { transform: translateZ(26px); }
@media (hover: none) { .card:hover { transform: none; } .card::after { display: none; } }

/* Aparición suave al hacer scroll (la clase .reveal la agrega js/main.js y la quita al terminar) */
.reveal { opacity: 0; translate: 0 32px; transition: opacity .8s ease var(--d, 0s), translate .8s ease var(--d, 0s) !important; }
.reveal.in { opacity: 1; translate: 0 0; }

/* Mensaje flotante de WhatsApp */
.wa-bubble { position: fixed; right: 88px; bottom: 26px; z-index: 60; display: flex; align-items: center; max-width: calc(100vw - 110px);
  background: #fff; color: #1b2430; border-radius: 14px 14px 4px 14px; box-shadow: 0 8px 26px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.95); transform-origin: right bottom; transition: opacity .4s, transform .4s, visibility .4s; }
.wa-bubble.show { opacity: 1; visibility: visible; transform: none; }
.wa-bubble__link { padding: 12px 6px 12px 16px; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.wa-bubble__link:hover { color: #128c4a; }
.wa-bubble__close { background: none; border: 0; cursor: pointer; padding: 6px 12px 6px 6px; font-size: 1.3rem; line-height: 1; color: #7a8594; }
.wa-bubble__close:hover { color: #1b2430; }
@media (prefers-reduced-motion: reduce) { .reveal, .wa-bubble { transition: none !important; } }

/* Portfolio */
.work { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid rgba(255, 255, 255, .12); transition: transform .35s ease, border-color .35s, box-shadow .35s; }
.work img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; transition: transform .6s ease; }
.work__info { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 2px; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(5, 3, 15, .92) 70%); transition: padding .35s; }
.work__info small { color: var(--muted); }
.work:hover, .work:focus-visible { transform: translateY(-6px); border-color: #b48cff; box-shadow: 0 16px 40px rgba(150, 90, 255, .4); }
.work:hover img, .work:focus-visible img { transform: scale(1.07); }
.work:hover .work__info { padding-bottom: 20px; }

/* Ofertas adicionales con magia: borde de luz giratorio, destello y chispas */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.section--magic .extra { position: relative; isolation: isolate; border: 0; transition: transform .35s ease, box-shadow .35s ease; }
.section--magic .extra::before { content: ""; position: absolute; inset: 0; z-index: 2; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 55%, #4da3ff 75%, #c18bff 90%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: extra-spin 5s linear infinite; }
.section--magic .extra:nth-child(2)::before { animation-delay: -1.2s; }
.section--magic .extra:nth-child(3)::before { animation-delay: -2.5s; }
.section--magic .extra:nth-child(4)::before { animation-delay: -3.7s; }
@keyframes extra-spin { to { --ang: 360deg; } }
.section--magic .extra::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(190, 215, 255, .28) 50%, transparent 65%); transform: translateX(-120%); }
.section--magic .extra:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 0 28px rgba(77, 163, 255, .45), 0 18px 44px rgba(150, 90, 255, .4); }
.section--magic .extra:hover::after { transform: translateX(120%); transition: transform .9s ease; }
.section--magic .extra img { transition: transform .5s ease; animation: extra-float 4.5s ease-in-out infinite; }
.section--magic .extra:nth-child(even) img { animation-delay: -2.2s; }
.section--magic .extra:hover img { animation-play-state: paused; transform: scale(1.1) rotate(-2deg); }
@keyframes extra-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.section--magic .extra figcaption { position: relative; }
.section--magic .extra figcaption::before, .section--magic .extra figcaption::after { content: "\2726"; position: absolute; color: #bcd4ff; opacity: 0; text-shadow: 0 0 8px #4da3ff; pointer-events: none; }
.section--magic .extra figcaption::before { left: 14%; top: -34px; font-size: 1rem; }
.section--magic .extra figcaption::after { right: 16%; top: -58px; font-size: .75rem; }
.section--magic .extra:hover figcaption::before { animation: sparkle 1.4s ease-in-out infinite; }
.section--magic .extra:hover figcaption::after { animation: sparkle 1.4s ease-in-out .5s infinite; }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: translateY(8px) scale(.4) rotate(0); } 50% { opacity: 1; transform: translateY(-6px) scale(1.2) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .section--magic .extra::before, .section--magic .extra img { animation: none; } .work, .work img { transition: none; } }

/* Humo de fondo que se mueve y se intensifica con el scroll (js/main.js) */
.smoke { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: var(--smoke, .45); mix-blend-mode: screen; }
.smoke span { position: absolute; width: 70vw; height: 55vh; border-radius: 50%; will-change: transform; animation: smoke-breathe 14s ease-in-out infinite alternate; }
.smoke span:nth-child(1) { left: -15vw; top: 10vh; background: radial-gradient(closest-side, rgba(37, 117, 252, .5), rgba(37, 117, 252, .15) 55%, transparent); }
.smoke span:nth-child(2) { right: -20vw; top: 40vh; background: radial-gradient(closest-side, rgba(150, 90, 255, .5), rgba(150, 90, 255, .15) 55%, transparent); animation-duration: 18s; animation-delay: -5s; }
.smoke span:nth-child(3) { left: 20vw; bottom: -20vh; background: radial-gradient(closest-side, rgba(60, 160, 255, .4), rgba(60, 160, 255, .12) 55%, transparent); animation-duration: 16s; animation-delay: -9s; }
.smoke span:nth-child(4) { left: 40vw; top: -15vh; width: 55vw; background: radial-gradient(closest-side, rgba(190, 120, 255, .35), rgba(190, 120, 255, .1) 55%, transparent); animation-duration: 20s; animation-delay: -2s; }
@keyframes smoke-breathe { from { scale: .85; rotate: 0deg; } to { scale: 1.2; rotate: 25deg; } }
@media (prefers-reduced-motion: reduce) { .smoke span { animation: none; } }

/* Celular: portfolio en carrusel, secciones más compactas y ofertas en 2 columnas */
@media (max-width: 900px) {
  .grid--carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: -16px; padding: 4px 16px 14px; scrollbar-width: none; }
  .grid--carousel::-webkit-scrollbar { display: none; }
  .grid--carousel > * { flex: 0 0 78%; max-width: 360px; scroll-snap-align: center; }
}
@media (max-width: 520px) {
  .section { padding: 44px 0; }
  .title { margin-bottom: 26px; }
  .hero { padding: 36px 0 52px; }

  /* Servicios: 2 x 2 compactos */
  #servicios .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  #servicios .card { padding: 18px 14px; }
  #servicios .card__icon { width: 48px; height: 48px; margin-bottom: 12px; border-radius: 13px; }
  #servicios .card__icon svg { width: 26px; height: 26px; }
  #servicios .card h3 { font-size: 1rem; }
  #servicios .card p { font-size: .82rem; line-height: 1.4; }

  /* Planes más bajos */
  .plan { padding: 24px 20px; gap: 10px; }
  .plan__price { font-size: 2.2rem; }

  /* Ofertas adicionales: 2 columnas con ilustraciones más chicas */
  .section--magic .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section--magic .extra img { aspect-ratio: 4 / 3; padding: 8px 8px 0; }
  .section--magic .extra figcaption { padding: 4px 8px 12px; font-size: .85rem; }
}

/* Instagram (publicaciones desde Behold, las arma js/main.js) */
.insta-post { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid rgba(255, 255, 255, .12); transition: transform .35s ease, border-color .35s, box-shadow .35s; }
.insta-post img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s ease; }
.insta-post__info { position: absolute; inset: auto 0 0; padding: 36px 14px 12px; font-size: .85rem; line-height: 1.35; background: linear-gradient(transparent, rgba(5, 3, 15, .92) 65%);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.insta-post__tag { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(5, 3, 15, .65); backdrop-filter: blur(4px); }
.insta-post:hover, .insta-post:focus-visible { transform: translateY(-6px); border-color: #b48cff; box-shadow: 0 16px 40px rgba(150, 90, 255, .4); }
.insta-post:hover img, .insta-post:focus-visible img { transform: scale(1.07); }
.insta__cta { text-align: center; margin-top: 32px; }
@media (prefers-reduced-motion: reduce) { .insta-post, .insta-post img { transition: none; } }

/* Hero en notebook/escritorio: título y botón centrados en su columna; el botón llama la atención */
@media (min-width: 901px) {
  .hero__text { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero h1 { margin-bottom: 36px; }
}
.hero .btn { position: relative; overflow: hidden; padding: 15px 38px; font-size: 1.05rem; animation: cta-pulse 2.2s ease-out infinite; }
.hero .btn::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-130%); animation: cta-shine 3.6s ease-in-out infinite; }
.hero .btn:hover { animation-play-state: paused; }
@keyframes cta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(77, 163, 255, .65), 0 8px 24px rgba(37, 117, 252, .35); transform: scale(1); }
  12% { transform: scale(1.06); }
  24% { transform: scale(1); }
  70%, 100% { box-shadow: 0 0 0 22px rgba(77, 163, 255, 0), 0 8px 24px rgba(37, 117, 252, .35); transform: scale(1); }
}
@keyframes cta-shine { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .hero .btn, .hero .btn::after { animation: none; } }

/* Notebook y escritorio: menos aire entre secciones (el celular conserva su espaciado) */
@media (min-width: 901px) {
  .section { padding: 48px 0; }
  .hero { padding: 40px 0 56px; }
  .title { margin-bottom: 32px; }
  .eyebrow { margin-bottom: 8px; }
  .cta { padding-block: 56px; }
  .insta__cta { margin-top: 24px; }
}

/* Celular: Instagram más grande sobre el margen derecho, menú hamburguesa a su izquierda y más separado */
@media (max-width: 900px) {
  .header__actions { gap: 26px; }
  .header__actions .burger { order: 1; }
  .header__actions .icon-link { order: 2; display: grid; place-items: center; width: 34px; height: 34px; }
  .header__actions .icon-link svg { width: 32px; height: 32px; }
}

/* Planes agrupados */
.plans__group { text-align: center; text-transform: uppercase; letter-spacing: .18em; font-size: .95rem; font-weight: 600; color: #8fb4ff; margin: 36px 0 18px; }
.plans__group:first-of-type { margin-top: 0; }
.plans__note { text-align: center; margin-top: 16px; color: var(--muted); font-size: .95rem; }
.grid--4.plans-group { gap: 20px; }
.plans-group .plan { padding: 30px 22px; }
.plans-group .plan h3 { font-size: 1.15rem; }
.plans-group .plan ul { text-transform: none; letter-spacing: 0; font-size: .9rem; }
@media (max-width: 900px) {
  .plans-group.grid--carousel { padding-top: 16px; padding-bottom: 20px; }
  .plans-group.grid--carousel .plan { justify-content: space-between; }
}
.plans-group--single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.plan__price--text { font-size: 2rem; }
@media (max-width: 900px) { .plans-group--single .plan { flex: 0 0 100%; max-width: none; } }

/* Adicionales de la Landing Page */
.plan__link { text-decoration: underline; text-underline-offset: 3px; color: #b48cff; }
.plan__link:hover { color: #fff; }
.addons { max-width: 820px; margin: 28px auto 0; padding: 24px 28px; border-radius: var(--radius); background: rgba(23, 15, 60, .6); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.addons h4 { text-align: center; font-size: 1.1rem; margin-bottom: 14px; }
.addons ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.addons li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .92rem; }
.addons li strong { white-space: nowrap; color: #d9c4ff; }
.addons li small { font-weight: 500; color: var(--muted); }
.addons__cta { text-align: center; margin-top: 18px; }
@media (max-width: 700px) { .addons { padding: 20px 16px; } .addons ul { grid-template-columns: 1fr; } }
.addons h5 { margin: 18px 0 2px; text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: #8fb4ff; }
.addons h4 + h5 { margin-top: 0; }
