:root {
  --page: #f7eee1;
  --surface: #fffaf3;
  --surface-soft: #f0dfca;
  --ink: #172033;
  --muted: #5b6473;
  --line: rgba(23, 32, 51, 0.18);
  --accent: #f15a2a;
  --accent-hover: #d84318;
  --accent-contrast: #fffaf3;
  --navy: #112447;
  --navy-soft: #1a3563;
  --navy-text: #fff9ee;
  --header: rgba(247, 238, 225, 0.87);
  --shadow: 0 26px 68px rgba(39, 28, 18, 0.16);
  --visual-text: #fff9ee;
  --visual-muted: rgba(255, 249, 238, 0.77);
}

:root[data-theme="dark"] {
  --page: #0e172a;
  --surface: #15223b;
  --surface-soft: #1b2d4c;
  --ink: #f8f2e9;
  --muted: #c5cfde;
  --line: rgba(248, 242, 233, 0.2);
  --accent: #ff7a3b;
  --accent-hover: #ff985f;
  --accent-contrast: #201004;
  --navy: #0a1225;
  --navy-soft: #14284a;
  --navy-text: #fff9ee;
  --header: rgba(14, 23, 42, 0.87);
  --shadow: 0 26px 68px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }

/* ES: AOS es mejora progresiva; si el script no inicia, usamos un observador local.
   EN: AOS is progressive enhancement; if the script does not start, a local observer is used. */
html:not(.aos-ready):not(.scroll-fallback) [data-aos] { opacity: 1 !important; transform: none !important; }
html.aos-ready [data-aos] { will-change: opacity, transform; }

/* ES: Animación de respaldo independiente de AOS para la vista local.
   EN: AOS-independent fallback animation for local previews. */
html.scroll-fallback [data-aos] {
  opacity: 0 !important;
  transform: translate3d(0, 28px, 0) !important;
  transition: opacity 900ms ease-out, transform 900ms cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: var(--scroll-delay, 0ms);
  will-change: opacity, transform;
}

html.scroll-fallback [data-aos="fade-left"] { transform: translate3d(28px, 0, 0) !important; }
html.scroll-fallback [data-aos].is-scroll-visible { opacity: 1 !important; transform: none !important; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 87% 6%, rgba(241, 90, 42, 0.16), transparent 18rem),
    radial-gradient(circle at 4% 45%, rgba(41, 110, 193, 0.11), transparent 22rem),
    var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  transition: background-color 180ms ease, color 180ms ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: clamp(4.75rem, 9vw, 7.9rem) 0; }

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 60;
  padding: 0.65rem 0.8rem;
  transform: translateY(-150%);
  border-radius: 0.5rem;
  background: var(--navy);
  color: var(--navy-text);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(18px);
}

.nav-bar { min-height: 78px; display: flex; align-items: center; gap: 1.1rem; }

.brand {
  display: inline-flex;
  flex: 0 0 190px;
  align-items: center;
  gap: 0.28rem;
  color: var(--ink);
  font-size: 0.89rem;
  font-weight: 950;
  letter-spacing: 0.075em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  margin-right: 0.28rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--page);
  font-size: 0.92rem;
  letter-spacing: 0;
}

.brand-accent { color: var(--accent); }

.site-nav {
  flex: 1 1 17rem;
  width: 17rem;
  min-width: 17rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-left: 0;
}
.site-nav a, .text-link { color: var(--muted); font-size: 0.91rem; font-weight: 760; }
.site-nav a { min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.site-nav a:hover, .text-link:hover { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 0.45rem; }

.utility-button, .fiverr-header-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.52rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.language-button { flex: 0 0 3.35rem; width: 3.35rem; }
.theme-button { flex: 0 0 5.85rem; width: 5.85rem; }
.fiverr-header-link { flex: 0 0 9.8rem; width: 9.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.utility-button {
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
}

.utility-button:hover { border-color: var(--accent); color: var(--accent); }

.fiverr-header-link { border-color: #1dbf73; background: #1dbf73; color: #062d1a; }
.fiverr-header-link:hover { filter: brightness(1.08); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 0.84fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.075em;
}

h1 { max-width: 680px; margin-bottom: 1.35rem; font-size: clamp(3.9rem, 7.7vw, 6.65rem); line-height: 0.88; }
h1 span { color: var(--accent); }
h2 { margin-bottom: 1rem; font-size: clamp(2.45rem, 4.7vw, 4.3rem); line-height: 0.96; }
h3 { margin-bottom: 0.6rem; font-size: 1.18rem; letter-spacing: -0.025em; }

.intro { max-width: 590px; margin-bottom: 2rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.17rem); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.12rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-weight: 900;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 15px 28px rgba(241, 90, 42, 0.23); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: var(--accent); }

.quick-details { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.6rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.87rem; font-weight: 720; }
.quick-details li { padding: 0.45rem 0.62rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 72%, transparent); }

/* ES: El hero mantiene contraste propio para que el texto no desaparezca al cambiar tema.
   EN: The hero keeps its own contrast so text remains readable across themes. */
.studio-visual {
  position: relative;
  min-height: clamp(390px, 48vw, 535px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 249, 238, 0.18);
  border-radius: 1.45rem;
  background: #111d35;
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 260ms ease, box-shadow 260ms ease;
  will-change: transform;
}

.studio-photo, .visual-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-photo { z-index: -3; object-fit: cover; object-position: center 38%; transform: scale(1.02); transition: transform 700ms ease; }
.studio-visual:hover .studio-photo { transform: scale(1.07); }
.visual-scrim { z-index: -2; background: linear-gradient(155deg, rgba(17, 36, 71, 0.1), rgba(8, 14, 30, 0.92) 88%); }
.visual-scrim::after { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.16), transparent 62%); content: ""; transform: translateX(-120%); transition: transform 700ms ease; }
.studio-visual:hover .visual-scrim::after { transform: translateX(120%); }

.visual-topline { position: absolute; z-index: 3; top: 1.45rem; right: 1.45rem; left: 1.45rem; display: flex; align-items: center; justify-content: space-between; color: var(--visual-text); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.visual-logo { display: inline-flex; gap: 0.3rem; }
.visual-badge { padding: 0.42rem 0.62rem; border: 1px solid rgba(255, 249, 238, 0.35); border-radius: 999px; background: rgba(8, 14, 30, 0.36); color: var(--visual-muted); font-size: 0.64rem; letter-spacing: 0.1em; }

.visual-copy { position: absolute; z-index: 3; right: 1.45rem; bottom: 1.45rem; left: 1.45rem; padding: clamp(1.1rem, 2.2vw, 1.6rem); border: 1px solid rgba(255, 249, 238, 0.24); border-radius: 1rem; background: rgba(8, 14, 30, 0.58); color: var(--visual-text); backdrop-filter: blur(12px); }
.visual-kicker { display: block; margin-bottom: 0.65rem; color: #ffb08d; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.visual-copy p { max-width: 15rem; margin-bottom: 0.42rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3.5vw, 2.8rem); font-weight: 500; line-height: 0.94; letter-spacing: -0.065em; }
.visual-copy span { color: var(--visual-muted); font-size: 0.84rem; font-weight: 740; }
.visual-copy .visual-kicker { color: #ffb08d; }
.visual-stamp { position: absolute; z-index: 2; right: -1.9rem; top: 42%; display: grid; width: 7rem; height: 7rem; place-items: center; border: 1px solid rgba(255, 249, 238, 0.22); border-radius: 50%; color: rgba(255, 249, 238, 0.15); font-size: 2.3rem; font-weight: 950; transform: rotate(12deg); }

/* ES: Bloque de servicios con tarjetas visibles, enfocadas y presionables.
   EN: Service block with visible, focused and clickable cards. */
.services { background: var(--navy); color: var(--navy-text); }
.services .eyebrow { color: #ff8c5c; }
.services-layout { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(2.5rem, 8vw, 7rem); }
.services-heading > p:last-child { max-width: 28rem; min-height: 4.4rem; margin-bottom: 0; color: rgba(255, 249, 238, 0.7); }
.service-list { display: grid; gap: 0.8rem; }
.service-reveal { min-width: 0; }
.service-card { position: relative; display: grid; grid-template-columns: 2.3rem minmax(0, 1fr) auto; gap: 0.85rem; min-height: 7.25rem; padding: 1.45rem 1.35rem 1.35rem; overflow: hidden; border: 1px solid rgba(255, 249, 238, 0.18); border-radius: 1rem; background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)); color: inherit; cursor: pointer; text-decoration: none; transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease; will-change: transform; }
.service-card::after { position: absolute; top: -4rem; right: -4rem; width: 9rem; height: 9rem; border-radius: 50%; background: rgba(255, 140, 92, 0.12); content: ""; transition: transform 300ms ease; }
.service-card:hover { border-color: rgba(255, 140, 92, 0.72); background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2); transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-7px); }
.service-card:hover::after { transform: scale(1.35); }
.number { color: #ff8c5c; font: 0.72rem "Courier New", monospace; }
.service-list h3 { margin-bottom: 0.35rem; }
.service-list p { min-height: 2.9rem; margin: 0; color: rgba(255, 249, 238, 0.68); font-size: 0.92rem; }
.service-list strong { min-width: 5rem; color: #fff9ee; font-size: 0.86rem; text-align: right; white-space: nowrap; }
.service-arrow { position: absolute; right: 1.25rem; bottom: 0.9rem; color: #ff8c5c; font-size: 1.25rem; opacity: 0.55; transition: transform 220ms ease, opacity 220ms ease; }
.service-card:hover .service-arrow { opacity: 1; transform: translate(3px, -3px); }
.service-card:focus-visible { outline: 3px solid #ffb08d; outline-offset: 4px; }
.services .service-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)); }
.services .service-card h3 { color: #fff9ee; }
.services .service-card p { color: rgba(255, 249, 238, 0.78); }

/* ES: Reserva y contacto directo; no se usa formulario en el paquete Basic.
   EN: Booking and direct contact; Basic intentionally uses no form. */
.booking-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.7rem, 4.3vw, 3.8rem);
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background:
    radial-gradient(circle at 92% 8%, rgba(241, 90, 42, 0.16), transparent 14rem),
    var(--surface);
  box-shadow: var(--shadow);
}

.booking-intro > p:last-child { max-width: 35rem; min-height: 4.9rem; margin-bottom: 0; color: var(--muted); font-size: 1.04rem; }
.booking-side { display: grid; gap: 1.5rem; }
.booking-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; }
.booking-actions .button { width: 100%; }
.text-link { text-align: center; text-decoration: underline; text-underline-offset: 0.2rem; }
.social-links { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.25rem; }
.social-links a { width: 2.45rem; height: 2.45rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.74rem; font-weight: 900; }
.social-links a:hover { border-color: var(--accent); color: var(--accent); }

.location-card { padding: 1.15rem; border: 1px solid var(--line); border-radius: 1rem; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.location-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.location-heading .eyebrow { margin-bottom: 0.45rem; }
.location-heading h3 { max-width: 17rem; margin-bottom: 0; font-size: 1.1rem; }
.location-pin { display: grid; width: 2.35rem; height: 2.35rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); font-size: 1.25rem; }
.location-note { margin: 0.8rem 0 1rem; color: var(--muted); font-size: 0.78rem; }
.map-frame { position: relative; min-height: 180px; overflow: hidden; border: 1px solid var(--line); border-radius: 0.8rem; background: #d8d2c6; }
.map-frame iframe { display: block; width: 100%; min-height: 180px; border: 0; filter: saturate(0.75) contrast(0.92); }
.map-label { position: absolute; left: 0.65rem; bottom: 0.65rem; padding: 0.4rem 0.55rem; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; background: rgba(8, 14, 30, 0.82); color: #fff9ee; font-size: 0.67rem; font-weight: 800; }

.video-showcase { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: 1.7rem; padding: clamp(1.4rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: 1.35rem; background: var(--surface); box-shadow: var(--shadow); }
.video-copy h3 { max-width: 21rem; margin-bottom: 0.65rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 0.98; letter-spacing: -0.055em; }
.video-copy > p:not(.eyebrow) { max-width: 25rem; margin-bottom: 0.8rem; color: var(--muted); font-size: 0.9rem; }
.video-note { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 1rem; background: #111d35 url("https://i.ytimg.com/vi/W18jsNa8KmA/maxresdefault.jpg") center / cover no-repeat; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-local-panel { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 0.65rem; padding: 1.5rem; background: linear-gradient(145deg, #111d35, #0a1225); color: #fff9ee; text-align: center; }
.video-local-panel strong { font-size: 1rem; }
.video-local-panel span { max-width: 23rem; color: rgba(255, 249, 238, 0.72); font-size: 0.78rem; }
.video-local-panel .button { min-height: 42px; margin-top: 0.35rem; font-size: 0.78rem; }
.video-frame.is-local iframe { visibility: hidden; }
.video-frame.is-local .video-local-panel { display: flex; }

.site-footer { padding: 2.85rem 0 5.55rem; border-top: 1px solid var(--line); }
.footer-content { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.footer-content p { max-width: 42rem; margin: 0.8rem 0 0; color: var(--muted); font-size: 0.85rem; }
.creator-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem; }
.creator-links a { min-height: 2.7rem; display: inline-flex; align-items: center; justify-content: center; padding: 0.66rem 0.8rem; border: 1px solid transparent; border-radius: 0.68rem; color: #fff; font-size: 0.78rem; font-weight: 850; transition: transform 180ms ease, filter 180ms ease; }
.creator-links a:hover { transform: translateY(-2px); filter: brightness(1.08); }
.creator-fiverr { background: #1dbf73; color: #062d1a !important; }
.creator-github { background: #26364f; }
.creator-cloudflare { background: #f6821f; color: #271300 !important; }

.floating-whatsapp { position: fixed; right: 1.15rem; bottom: 1.15rem; z-index: 20; width: 3.3rem; height: 3.3rem; display: grid; place-items: center; border: 2px solid var(--page); border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 13px 32px rgba(0, 0, 0, 0.25); font-size: 1.5rem; transition: transform 180ms ease; }
.floating-whatsapp .whatsapp-icon { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.floating-whatsapp:hover { transform: scale(1.07); }

@media (max-width: 900px) {
  .brand { flex-basis: 165px; }
  .site-nav { width: 15rem; min-width: 15rem; }
  .hero-grid, .services-layout, .booking-panel { grid-template-columns: 1fr; }
  .hero-grid { gap: 3rem; }
  .services-layout { gap: 2.9rem; }
  .studio-visual { max-width: 40rem; }
  .video-showcase { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .creator-links { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .nav-bar { flex-wrap: wrap; min-height: 70px; }
  .brand { flex-basis: auto; }
  .site-nav { width: 100%; min-width: 0; display: none; order: 4; margin: -0.35rem 0 0; padding: 0.5rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--surface); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 0.7rem; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: grid; }
  .service-list .service-card { grid-template-columns: 2rem minmax(0, 1fr); }
  .service-list strong { grid-column: 2; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1140px); }
  .brand { font-size: 0.77rem; }
  .brand-mark { width: 1.9rem; height: 1.9rem; }
  .nav-actions { gap: 0.25rem; }
  .utility-button { width: 2.45rem; flex-basis: 2.45rem; padding: 0; }
  .theme-label { display: none; }
  .fiverr-header-link { width: auto; flex-basis: auto; max-width: 8.4rem; padding: 0.55rem 0.58rem; font-size: 0.69rem; }
  .hero-actions .button, .creator-links a { flex: 1 1 100%; }
  .studio-visual { min-height: 380px; border-radius: 1rem; }
  .visual-copy { right: 1.35rem; bottom: 1.45rem; left: 1.35rem; }
  .visual-topline { top: 1rem; right: 1rem; left: 1rem; }
  .visual-copy { right: 1rem; bottom: 1rem; left: 1rem; }
  .visual-stamp { right: -2.4rem; }
  .video-showcase { margin-top: 1.1rem; padding: 1.1rem; }
  .site-footer { padding-bottom: 5.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  /* ES: La demo conserva sus entradas suaves; se reduce el tilt y los adornos.
     EN: The demo keeps smooth reveals while reducing tilt and decorative motion. */
  html { scroll-behavior: auto; }
  .service-card, .studio-photo, .visual-scrim::after { transition-duration: 0.01ms !important; }
}
