:root {
  --ink: #082f31;
  --teal-950: #032f31;
  --teal-900: #073f40;
  --teal-800: #075657;
  --teal-700: #087174;
  --teal-500: #14a2a1;
  --cream: #f8ecd7;
  --sand: #e7c99a;
  --white: #ffffff;
  --mist: #e8f5f3;
  --muted: #5f7475;
  --shadow: 0 22px 70px rgba(4, 47, 49, .16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fbfdfc;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section-pad { padding: 96px 0; position: relative; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 10px; transition: top .2s ease; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(3, 47, 49, .74);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(3, 47, 49, .94); box-shadow: 0 10px 40px rgba(0,0,0,.16); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: var(--white); }
.brand-mark { width: 48px; height: 48px; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(248,236,215,.45); border-radius: 50%; box-shadow: 0 0 20px rgba(20,162,161,.28); background: #075657; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.03); }
.brand-mark.small { width: 38px; height: 38px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 1rem; letter-spacing: .13em; text-transform: uppercase; }
.brand-copy span { margin-top: 3px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.05rem; color: var(--cream); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: rgba(255,255,255,.86); font-size: .89rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--sand); transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 9px; }
.menu-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .25s ease, opacity .25s ease; }

.hero {
  min-height: 780px;
  padding-top: 162px;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 30%, rgba(20,162,161,.26), transparent 32%),
    radial-gradient(circle at 90% 40%, rgba(231,201,154,.11), transparent 27%),
    linear-gradient(135deg, #032f31 0%, #064f51 58%, #073f40 100%);
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(circle at center, rgba(255,255,255,.7) 0 1px, transparent 1.2px); background-size: 31px 31px; mask-image: linear-gradient(to right, transparent, #000 58%, transparent); }
.hero-glow { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; filter: blur(.2px); }
.hero-glow-a { width: 500px; height: 500px; right: -160px; top: 70px; }
.hero-glow-b { width: 300px; height: 300px; left: -130px; bottom: 40px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 16px; font-size: .78rem; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; color: var(--sand); }
.hero h1, .section-heading h2, .about-copy h2, .laser h2, .contact h2 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-weight: 700; letter-spacing: .015em; text-transform: uppercase; line-height: .94; }
.hero h1 { max-width: 750px; font-size: clamp(4.2rem, 8.7vw, 8.4rem); }
.hero h1 span { display: block; font-size: .44em; letter-spacing: .08em; margin-bottom: .08em; }
.script-line { margin: 28px 0 34px; color: var(--cream); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.4vw, 2.1rem); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: .84rem; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; border: 1px solid transparent; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cream); color: var(--ink); box-shadow: 0 12px 34px rgba(0,0,0,.2); }
.btn-primary:hover { box-shadow: 0 16px 42px rgba(0,0,0,.28); }
.btn-ghost { border-color: rgba(255,255,255,.25); color: var(--white); background: rgba(255,255,255,.04); }
.btn-light { background: var(--white); color: var(--teal-900); }
.quick-info { margin-top: 46px; display: grid; grid-template-columns: .65fr 1.35fr; gap: 18px; max-width: 700px; }
.quick-info > div { padding: 16px 18px; border-left: 2px solid rgba(231,201,154,.78); background: linear-gradient(90deg, rgba(255,255,255,.07), transparent); }
.quick-label { display: block; margin-bottom: 3px; font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: rgba(255,255,255,.56); }
.quick-info a, .quick-info p { margin: 0; color: var(--white); font-weight: 800; font-size: .95rem; }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.foot-orbit { width: min(430px, 90%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; background: radial-gradient(circle at center, rgba(255,255,255,.1), rgba(255,255,255,.02) 45%, transparent 68%); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 0 80px rgba(20,162,161,.13), 0 0 70px rgba(20,162,161,.08); }
.foot-orbit::before, .foot-orbit::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; inset: -24px; }
.foot-orbit::after { inset: -58px; border-style: dashed; opacity: .5; animation: spin 26s linear infinite; }
.foot-orbit svg { width: 78%; filter: drop-shadow(0 24px 20px rgba(0,0,0,.2)); transform: rotate(6deg); }
.pulse { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 8px rgba(231,201,154,.08), 0 0 30px var(--sand); animation: pulse 2.1s ease-out infinite; }
.pulse-one { left: 8%; top: 35%; }.pulse-two { right: 11%; top: 21%; animation-delay: .7s; }.pulse-three { right: 4%; bottom: 28%; animation-delay: 1.4s; }
.hero-card { position: absolute; right: 0; bottom: 24px; padding: 18px 22px; border-radius: 18px; border: 1px solid rgba(255,255,255,.16); background: rgba(3,47,49,.76); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.hero-card span { display: block; color: var(--sand); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .72rem; }
.hero-card strong { display: block; margin-top: 2px; font-size: 1.2rem; text-transform: uppercase; }

.services { background: linear-gradient(180deg, #fbfdfc 0%, #eef8f6 100%); }
.section-heading { display: grid; grid-template-columns: .3fr 1fr; gap: 20px; align-items: end; margin-bottom: 48px; }
.section-heading .eyebrow { margin: 0 0 8px; color: var(--teal-700); }
.section-heading h2 { max-width: 720px; font-size: clamp(2.7rem, 5.6vw, 5.4rem); color: var(--teal-950); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { position: relative; min-height: 166px; padding: 24px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(7,86,87,.13); border-radius: var(--radius-md); background: rgba(255,255,255,.8); box-shadow: 0 10px 30px rgba(4,47,49,.06); transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease; }
.service-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -54px; bottom: -70px; border: 1px solid rgba(20,162,161,.16); transition: transform .3s ease; }
.service-card:hover { transform: translateY(-6px); background: var(--teal-900); color: var(--white); box-shadow: 0 18px 50px rgba(4,47,49,.16); }
.service-card:hover::after { transform: scale(1.35); border-color: rgba(255,255,255,.15); }
.service-num { color: var(--teal-500); font-weight: 900; letter-spacing: .1em; font-size: .76rem; }
.service-card h3 { margin: 24px 0 0; max-width: 250px; font-size: 1.3rem; line-height: 1.13; text-transform: uppercase; letter-spacing: .02em; }

.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 76px; align-items: center; }
.about-art { min-height: 420px; position: relative; display: grid; place-items: center; }
.about-icon { position: relative; z-index: 2; width: 190px; height: 190px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-900); background: var(--cream); box-shadow: 0 25px 60px rgba(4,47,49,.14); }
.about-icon svg { width: 105px; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(7,86,87,.16); }
.ring-a { width: 330px; height: 330px; }
.ring-b { width: 420px; height: 420px; border-style: dashed; animation: spin 38s linear infinite reverse; }
.about-copy .eyebrow { color: var(--teal-700); }
.about-copy h2 { margin-bottom: 28px; font-size: clamp(2.6rem, 5vw, 4.8rem); color: var(--teal-950); }
.about-copy p:last-child { margin: 0; max-width: 720px; color: #4c6667; font-size: 1.07rem; }

.laser { color: var(--white); background: linear-gradient(120deg, #032f31, #075657 60%, #08696b); overflow: hidden; }
.laser::before { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -280px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.laser-beam { position: absolute; width: 62%; height: 1px; right: -8%; top: 68%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), #ff5148); box-shadow: 0 0 18px rgba(255,81,72,.62); transform: rotate(-10deg); transform-origin: right; }
.laser-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.laser .eyebrow { color: var(--sand); }
.laser h2 { font-size: clamp(4rem, 8.8vw, 8.6rem); }
.laser h2 span { display: block; margin-top: 6px; font-size: .42em; color: var(--cream); }
.laser .btn { margin-top: 34px; }
.laser-device { min-height: 350px; position: relative; }
.device-body { position: absolute; width: 98px; height: 205px; right: 28%; top: 20px; border: 3px solid rgba(255,255,255,.82); border-radius: 32px 32px 20px 20px; transform: rotate(23deg); box-shadow: inset 0 0 30px rgba(255,255,255,.08), 0 0 40px rgba(255,255,255,.06); }
.device-body::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 20px; }
.device-tip { position: absolute; right: 21%; top: 198px; width: 30px; height: 84px; border-radius: 10px; background: linear-gradient(#f5ede5, #9eb7b7); transform: rotate(23deg); }
.beam-line { position: absolute; right: 18%; top: 271px; width: 160px; height: 2px; transform: rotate(23deg); transform-origin: right; background: linear-gradient(90deg, #ff5148, transparent); box-shadow: 0 0 16px #ff5148; }
.beam-point { position: absolute; right: 47%; top: 318px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 5px #fff, 0 0 16px #ff5148, 0 0 34px #ff5148, 0 0 65px #ff5148; animation: laserPulse 1.25s ease-in-out infinite alternate; }

.contact { background: #edf7f5; }
.contact-panel { display: grid; grid-template-columns: .78fr 1.22fr; gap: 60px; align-items: center; padding: 58px; border-radius: var(--radius-xl); background: var(--cream); box-shadow: var(--shadow); }
.contact .eyebrow { color: var(--teal-700); }
.contact h2 { color: var(--teal-950); font-size: clamp(3rem, 5.7vw, 5.3rem); }
.contact-lead { margin: 16px 0 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.1rem; color: #5d6d6d; }
.contact-details { display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.62); border: 1px solid rgba(7,86,87,.1); transition: transform .2s ease, background .2s ease; }
a.contact-item:hover { transform: translateX(4px); background: var(--white); }
.contact-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-900); color: var(--white); font-size: 1.4rem; }
.contact-item small { display: block; font-size: .69rem; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.contact-item strong { display: block; margin-top: 2px; font-size: 1rem; line-height: 1.35; }

.site-footer { padding: 28px 0; color: rgba(255,255,255,.72); background: var(--teal-950); border-top: 1px solid rgba(255,255,255,.07); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand div { display: grid; }
.footer-brand strong { color: var(--white); font-size: .95rem; }
.footer-brand span { font-size: .82rem; }
.site-footer p { margin: 0; font-size: .85rem; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: #0b8f6a; box-shadow: 0 14px 34px rgba(0,0,0,.23); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 42px rgba(0,0,0,.3); }
.whatsapp-float svg { width: 31px; height: 31px; }

/* El contenido queda visible por defecto para máxima compatibilidad en Cloudflare.
   Las animaciones solo se activan cuando JavaScript está funcionando. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(231,201,154,.42), 0 0 30px var(--sand); } 70% { box-shadow: 0 0 0 18px rgba(231,201,154,0), 0 0 30px var(--sand); } 100% { box-shadow: 0 0 0 0 rgba(231,201,154,0), 0 0 30px var(--sand); } }
@keyframes laserPulse { from { transform: scale(.75); opacity: .75; } to { transform: scale(1.25); opacity: 1; } }

@media (max-width: 980px) {
  .section-pad { padding: 78px 0; }
  .hero { padding-top: 138px; min-height: auto; }
  .hero-grid, .about-grid, .laser-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 450px; }
  .hero h1 { font-size: clamp(4rem, 12vw, 7.2rem); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { grid-template-columns: 1fr; }
  .about-grid { gap: 24px; }
  .about-art { min-height: 360px; }
  .contact-panel { gap: 32px; padding: 42px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav-wrap { min-height: 70px; }
  .brand-copy strong { font-size: .82rem; }
  .brand-copy span { font-size: .88rem; }
  .brand-mark { width: 42px; height: 42px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 14px; right: 14px; top: calc(100% + 8px); display: grid; gap: 0; padding: 12px; border-radius: 18px; background: rgba(3,47,49,.98); box-shadow: 0 22px 50px rgba(0,0,0,.26); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease; }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { padding-top: 122px; }
  .hero h1 { font-size: clamp(3.55rem, 18vw, 5.8rem); }
  .hero h1 span { font-size: .35em; }
  .quick-info { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; }
  .hero-card { right: 2%; bottom: 0; }
  .foot-orbit { width: 310px; }
  .section-heading h2, .about-copy h2, .contact h2 { font-size: clamp(2.5rem, 11vw, 4.4rem); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 135px; }
  .about-art { min-height: 310px; }
  .ring-a { width: 260px; height: 260px; }
  .ring-b { width: 310px; height: 310px; }
  .about-icon { width: 150px; height: 150px; }
  .about-icon svg { width: 84px; }
  .laser h2 { font-size: clamp(3.6rem, 18vw, 6rem); }
  .laser-device { min-height: 280px; }
  .contact-panel { padding: 30px 20px; border-radius: 24px; }
  .contact-item { grid-template-columns: 44px 1fr; padding: 14px; }
  .contact-icon { width: 44px; height: 44px; }
  .footer-grid { align-items: flex-start; flex-direction: column; gap: 16px; }
  .whatsapp-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
  .brand-copy span { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-card { font-size: .85rem; }
  .contact-item strong { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
