/* =========================================================
   Salmarina Bungalows — estilos custom (complementan Tailwind)
   ========================================================= */

:root {
  --color-primary: #0e6e7d;
  --color-primary-deep: #0a4d59;
  --color-accent: #d9773f;
  --color-accent-soft: #e9a06b;
  --color-bg: #f5efe6;
  --color-surface: #fbf7f0;
  --color-text: #16323a;
  --color-text-soft: #4d6169;
  --color-deep: #0b272d;

  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: clamp(2.5rem, 6vw, 5rem);

  --shadow-soft: 0 18px 40px -22px rgba(11, 39, 45, 0.45);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

img { max-width: 100%; display: block; }

/* ---- Tipografía base ---- */
h1, h2, h3, h4 { line-height: 1.1; margin: 0; }
p { margin: 0 0 1rem; }

.font-display { font-family: "Cormorant Garamond", serif; }

.section { padding: 5.5rem 1.5rem; max-width: 1200px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--color-accent-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.02em; }
.section-sub { color: var(--color-text-soft); margin-top: 0.6rem; }

/* =========================================================
   Cursor personalizado
   ========================================================= */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--color-accent);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(14, 110, 125, 0.7);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.is-hover {
  width: 54px; height: 54px;
  background: rgba(217, 119, 63, 0.14);
  border-color: var(--color-accent);
}
.cursor-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* =========================================================
   Scrollbar personalizada
   ========================================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--color-primary), var(--color-primary-deep));
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* =========================================================
   Logo texto
   ========================================================= */
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.logo-accent { color: var(--color-accent); }
.logo-sub {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: var(--color-text-soft);
  margin-top: 2px;
}
#site-header.scrolled .logo-text { color: var(--color-text); }
.logo-text--menu { font-size: 1.7rem; }
.logo-text--footer { font-size: 2.4rem; color: #fff; }
.logo-text--footer .logo-accent { color: var(--color-accent-soft); }

/* =========================================================
   Header
   ========================================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5000;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 0.5rem 0;
}
#site-header.scrolled {
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -18px rgba(11, 39, 45, 0.5);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
/* Hero es oscuro: header claro cuando aún no hemos hecho scroll */
#site-header:not(.scrolled) .logo-text,
#site-header:not(.scrolled) .main-nav a,
#site-header:not(.scrolled) .header-phone { color: #fff; }
#site-header:not(.scrolled) .logo-accent { color: var(--color-accent-soft); }
#site-header:not(.scrolled) .logo-sub { color: rgba(255,255,255,0.72); }
#site-header:not(.scrolled) .menu-toggle span { background: #fff; }

.main-nav { display: none; gap: 2rem; }
.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--color-accent);
  transition: width 0.3s ease;
}
.main-nav a:hover { color: var(--color-accent); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: none; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--color-text);
  font-weight: 600; font-size: 0.95rem;
}
.header-phone i { color: var(--color-accent); }

.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; cursor: none;
}
.menu-toggle span {
  width: 26px; height: 2px; background: var(--color-text);
  border-radius: 2px; transition: background 0.3s ease;
}

/* =========================================================
   Menú móvil
   ========================================================= */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80000;
  visibility: hidden; opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open { visibility: visible; opacity: 1; }
.mobile-menu-overlay { position: absolute; inset: 0; background: rgba(11, 39, 45, 0.55); backdrop-filter: blur(3px); }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(82vw, 340px);
  background: var(--color-surface);
  padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 50px -25px rgba(11,39,45,0.6);
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.menu-close {
  background: none; border: none; font-size: 1.5rem; color: var(--color-text); cursor: none;
}
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  text-decoration: none; color: var(--color-text);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem; font-weight: 600;
  padding: 0.65rem 0;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.mobile-nav a:hover { color: var(--color-accent); padding-left: 8px; }
.mobile-nav hr { border: none; border-top: 1px solid rgba(14, 110, 125, 0.14); margin: 0; }
.mobile-phone {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: #fff; background: var(--color-primary);
  padding: 0.8rem 1rem; border-radius: 999px; justify-content: center;
  font-weight: 600;
}
.mobile-menu-social { display: flex; gap: 1rem; justify-content: center; margin-top: 1.2rem; }
.mobile-menu-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--color-primary); border: 1px solid rgba(14,110,125,0.3);
  text-decoration: none; transition: all 0.25s ease;
}
.mobile-menu-social a:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding: 0 1.5rem 6rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("assets/images/hero-piscina.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  will-change: transform;
  z-index: 0;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 45, 52, 0.82) 0%, rgba(10, 45, 52, 0.45) 42%, rgba(10, 45, 52, 0.05) 78%),
    linear-gradient(0deg, rgba(8, 34, 40, 0.75) 0%, rgba(8, 34, 40, 0) 55%);
}
.hero-content {
  position: relative; z-index: 3;
  max-width: 1200px; width: 100%; margin: 0 auto;
  color: #fff;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.45rem 1rem; border-radius: 999px;
  backdrop-filter: blur(6px);
  margin-bottom: 1.4rem;
}
.hero-eyebrow i { color: var(--color-accent-soft); }
.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: var(--fs-4xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 15ch;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.hero h1 em { font-style: italic; color: var(--color-accent-soft); }
.hero-lead {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.9);
  font-weight: 300;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-ghost-number {
  position: absolute;
  right: -2vw; bottom: 4vh; z-index: 2;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(12rem, 34vw, 34rem);
  line-height: 0.8;
  color: rgba(255,255,255,0.07);
  pointer-events: none;
  user-select: none;
}

/* Partículas de luz/mar */
.hero-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0));
  border-radius: 50%;
  animation: float-up linear infinite;
  opacity: 0;
}
@keyframes float-up {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.5; }
  100% { transform: translateY(-90vh) scale(1.1); opacity: 0; }
}

/* Olas animadas del hero */
.hero-waves {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3;
  line-height: 0;
}
.hero-waves svg { width: 100%; height: clamp(70px, 12vw, 150px); display: block; }
.hero-waves .wave { fill: var(--color-bg); }
.wave-1 { opacity: 0.55; animation: wave-shift 11s ease-in-out infinite alternate; }
.wave-2 { opacity: 0.8; animation: wave-shift 8s ease-in-out infinite alternate-reverse; }
.wave-3 { fill: var(--color-bg); animation: wave-shift 6s ease-in-out infinite alternate; }
@keyframes wave-shift {
  from { transform: translateX(-2.5%); }
  to { transform: translateX(2.5%); }
}

/* =========================================================
   Botones
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  text-decoration: none;
  cursor: none;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(217, 119, 63, 0.7);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(217, 119, 63, 0.8); }
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; color: var(--color-primary-deep); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   Sobre nosotros
   ========================================================= */
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 2; object-fit: cover;
}
.about-media::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.4);
  pointer-events: none;
}
.about-media-badge {
  position: absolute; bottom: -20px; right: -8px;
  background: var(--color-accent); color: #fff;
  padding: 1rem 1.3rem; border-radius: 14px;
  text-align: center; box-shadow: 0 16px 30px -14px rgba(217,119,63,0.8);
}
.about-media-badge .num { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.9rem; font-weight: 700; line-height: 1; }
.about-media-badge .lbl { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

.about-text h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.about-text p { color: var(--color-text-soft); }
.about-quote {
  position: relative;
  margin-top: 1.8rem; padding: 0.4rem 0 0.4rem 1.6rem;
  border-left: 4px solid var(--color-accent);
}
.about-quote .quote-mark {
  position: absolute; left: 0.6rem; top: -1.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem; color: rgba(14,110,125,0.18); line-height: 1;
}
.about-quote p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem; font-style: italic; color: var(--color-primary-deep);
  margin: 0;
}

/* Contadores */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  margin-top: 4rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700; color: var(--color-primary);
  line-height: 1; letter-spacing: -0.02em;
}
.stat-label { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-soft); }

/* =========================================================
   Marquee (banda de títulos)
   ========================================================= */
.marquee-wrapper { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex; align-items: center;
  width: max-content;
  will-change: transform;
}
.marquee-track--left { animation: marquee-left 32s linear infinite; }
.marquee-track--right { animation: marquee-right 42s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.title-marquee {
  background: var(--color-primary-deep);
  padding: 1.5rem 0;
  overflow: hidden;
}
.title-marquee .marquee-item {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600; font-style: italic;
  color: #fff;
  padding: 0 1.4rem;
}
.title-marquee .marquee-dot { color: var(--color-accent-soft); font-size: 1rem; }

/* =========================================================
   Servicios
   ========================================================= */
.services { background: var(--color-surface); border-radius: 0; max-width: 100%; }
.services > .section-head, .services > .services-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.4rem;
}
.service-card {
  position: relative;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(14,110,125,0.12);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(14,110,125,0.12), rgba(217,119,63,0.14));
  color: var(--color-primary);
  font-size: 1.5rem; margin-bottom: 1.2rem;
  transition: background 0.35s ease, color 0.35s ease;
}
.service-card:hover .service-icon { background: var(--color-accent); color: #fff; }
.service-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.service-card p { color: var(--color-text-soft); font-size: 0.98rem; margin: 0; }

/* =========================================================
   Galería
   ========================================================= */
.gallery { max-width: 100%; padding-left: 0; padding-right: 0; }
.gallery > .section-head { padding: 0 1.5rem; }
.gallery-row { padding: 0.6rem 0; }
.gallery-row + .gallery-row { margin-top: 0.4rem; }
.gallery-item {
  display: inline-block;
  padding: 0; margin: 0 0.5rem; border: none; background: none;
  cursor: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  vertical-align: middle;
}
.gallery-item img {
  height: 280px; width: auto; max-width: none;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.1); }

/* =========================================================
   Por qué elegirnos
   ========================================================= */
.why {
  max-width: 100%;
  background:
    linear-gradient(180deg, rgba(10,45,52,0.92), rgba(11,39,45,0.96)),
    url("assets/images/vista-mar-piscinas.jpg");
  background-size: cover; background-position: center; background-attachment: fixed;
  color: #fff;
}
.why-inner { max-width: 1200px; margin: 0 auto; }
.why-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.why-head h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 600; letter-spacing: -0.02em; }
.why-head p { color: rgba(255,255,255,0.78); margin-top: 0.6rem; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
.why-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  backdrop-filter: blur(6px);
  transition: transform 0.35s ease, background 0.35s ease;
}
.why-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.12); }
.why-card i { font-size: 1.7rem; color: var(--color-accent-soft); margin-bottom: 0.9rem; }
.why-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4rem; }
.why-card p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin: 0; }

/* =========================================================
   Contacto
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-info h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1rem; }
.contact-info > p { color: var(--color-text-soft); max-width: 42ch; }
.contact-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-deep));
  color: #fff; font-size: 1.1rem;
}
.ci-label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-soft); }
.contact-list a, .contact-list div > span:not(.ci-label) { color: var(--color-text); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--color-accent); }

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(14,110,125,0.1);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--color-text-soft); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid rgba(14,110,125,0.2);
  border-radius: 12px;
  background: #fff;
  font-family: inherit; font-size: 0.98rem; color: var(--color-text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: none;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(14,110,125,0.12);
}
.field textarea { resize: vertical; }
.form-note { margin: 1rem 0 0; color: var(--color-primary); font-weight: 600; }
.form-note i { color: #2f9e44; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { position: relative; background: var(--color-deep); color: #fff; padding-top: 5rem; }
.footer-waves { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; transform: rotate(180deg); }
.footer-waves svg { width: 100%; height: clamp(50px, 8vw, 100px); }
.footer-waves .wave-1 { fill: var(--color-bg); opacity: 0.5; }
.footer-waves .wave-2 { fill: var(--color-bg); }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
.footer-brand p { color: rgba(255,255,255,0.65); margin-top: 0.8rem; max-width: 36ch; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08); color: #fff;
  text-decoration: none; transition: all 0.25s ease;
}
.footer-social a:hover { background: var(--color-accent); transform: translateY(-3px); }
.footer-links, .footer-contact { display: flex; flex-direction: column; }
.footer-links h4, .footer-contact h4 {
  font-family: "Cormorant Garamond", serif; font-size: 1.4rem; font-weight: 600;
  margin-bottom: 1rem; color: #fff;
}
.footer-links a { color: rgba(255,255,255,0.68); text-decoration: none; padding: 0.3rem 0; transition: color 0.25s ease, padding-left 0.25s ease; }
.footer-links a:hover { color: var(--color-accent-soft); padding-left: 6px; }
.footer-contact p { color: rgba(255,255,255,0.68); display: flex; align-items: center; gap: 0.6rem; margin: 0.3rem 0; }
.footer-contact i { color: var(--color-accent-soft); width: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.4rem 1.5rem;
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0.4rem; text-align: center;
  color: rgba(255,255,255,0.55); font-size: 0.85rem;
}
.footer-demo { color: var(--color-accent-soft); font-style: italic; }

/* =========================================================
   WhatsApp flotante
   ========================================================= */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 9000;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  font-size: 1.8rem; text-decoration: none;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.7);
  cursor: none;
  animation: wa-pulse 2.6s ease-in-out infinite;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 28px -8px rgba(37,211,102,0.7), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 12px 28px -8px rgba(37,211,102,0.7), 0 0 0 14px rgba(37,211,102,0); }
}
.whatsapp-float:hover { transform: scale(1.08); }

/* =========================================================
   Pop-up KORA
   ========================================================= */
#kora-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: none; place-items: center;
  background: rgba(8, 30, 36, 0.72);
  backdrop-filter: blur(5px);
  padding: 1.5rem;
  cursor: none;
}
#kora-modal * { cursor: none; }
#kora-modal.show { display: grid; animation: kora-fade 0.4s ease; }
#kora-modal.hide { animation: kora-fade-out 0.4s ease forwards; }
@keyframes kora-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kora-fade-out { from { opacity: 1; } to { opacity: 0; } }
.kora-card {
  pointer-events: auto;
  background: var(--color-surface);
  border-radius: 22px;
  max-width: 440px; width: 100%;
  padding: 2.5rem 2rem 2.2rem;
  text-align: center;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.6);
  border-top: 5px solid var(--color-accent);
  animation: kora-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes kora-pop { from { transform: translateY(24px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.kora-badge {
  display: inline-block;
  background: var(--color-accent); color: #fff;
  font-size: 0.72rem; letter-spacing: 0.28em; font-weight: 600;
  padding: 0.35rem 1rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.kora-card h2 { font-size: 2rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.kora-card p { color: var(--color-text-soft); font-size: 0.98rem; }
#kora-close {
  margin-top: 1.6rem;
  background: var(--color-primary); color: #fff;
  border: none; border-radius: 999px;
  padding: 0.85rem 2.4rem; font-family: inherit; font-weight: 600; font-size: 1rem;
  cursor: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
#kora-close:hover { background: var(--color-accent); transform: translateY(-2px); }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 95000;
  display: none; align-items: center; justify-content: center;
  background: rgba(6, 24, 29, 0.94);
  backdrop-filter: blur(4px);
  padding: 2rem;
}
.lightbox.open { display: flex; animation: kora-fade 0.3s ease; }
.lb-figure { margin: 0; max-width: 90vw; max-height: 86vh; text-align: center; }
.lb-figure img {
  max-width: 90vw; max-height: 78vh;
  border-radius: 12px; object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  animation: lb-zoom 0.35s ease;
}
@keyframes lb-zoom { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb-figure figcaption { color: rgba(255,255,255,0.8); margin-top: 1rem; font-size: 0.95rem; letter-spacing: 0.02em; }
.lb-close, .lb-arrow {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; cursor: none;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lb-close:hover, .lb-arrow:hover { background: var(--color-accent); transform: scale(1.08); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .header-phone { display: inline-flex; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1.2fr; }
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .section { padding: 7rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { padding-bottom: 8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .wave-1, .wave-2, .wave-3, .particle, .whatsapp-float { animation: none !important; }
  html { scroll-behavior: auto; }
}
