/* ============ Variables (cambiar aquí los colores al recibir el logo) ============ */
:root {
  --ink: #0e3d4a;          /* texto principal (color exacto del logo) */
  --ink-soft: #46707c;     /* texto secundario */
  --brand: #1f628e;        /* color de marca: botones y enlaces */
  --brand-dark: #0e3d4a;
  --accent: #3cb4a9;       /* verde agua: detalles y acentos */
  --accent-soft: #7be2d9;  /* aguamarina claro */
  --bg: #fffdf7;           /* fondo principal */
  --bg-alt: #fcf4e4;       /* fondo crema de secciones alternas */
  --line: #eadfc8;
  --radius: 10px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; margin-bottom: .5rem; }
p + p { margin-top: 1rem; }

a { color: var(--brand); }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 247, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .8rem; padding-bottom: .8rem;
}
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.logo img { height: 48px; width: auto; }
.logo-mark {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  background: var(--accent); color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
}
.logo-text { font-size: .8rem; font-weight: 600; line-height: 1.25; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--brand); }
.ig-link { display: inline-flex; align-items: center; color: var(--ink); }
.ig-link:hover { color: var(--brand); }
.gallery-cta { margin-top: 2rem; text-align: center; }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: .55rem 1.1rem; border-radius: var(--radius);
}
.nav-cta:hover { background: var(--brand-dark); }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ============ Hero ============ */
.hero { padding: 4.5rem 0 5rem; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 3rem; align-items: center;
}
.hero-kicker, .section-kicker {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 600; color: var(--accent);
  margin-bottom: .9rem;
}
.hero-sub { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.08rem; max-width: 32rem; }
.hero-actions { margin-top: 2rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-rating { margin-top: 1.4rem; font-size: .9rem; color: var(--ink-soft); letter-spacing: .02em; }
.hero-photo { aspect-ratio: 9 / 7; border-radius: var(--radius); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Botones ============ */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: var(--radius); transition: .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ============ Secciones ============ */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }

/* ============ Tarjetas ============ */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 2rem;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
}
.card p { color: var(--ink-soft); font-size: .95rem; }

/* Tarjetas de servicio con foto y overlay */
.card-photo {
  position: relative; display: block;
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: #fff;
}
.card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.card-photo:hover img { transform: scale(1.08); }
.card-overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(8, 58, 71, .82) 0%, rgba(8, 58, 71, .25) 55%, rgba(8, 58, 71, 0) 100%);
  transition: background .3s cubic-bezier(.4, 0, .2, 1);
}
.card-photo:hover .card-overlay {
  background: linear-gradient(to top, rgba(60, 180, 169, .88) 0%, rgba(60, 180, 169, .3) 55%, rgba(60, 180, 169, 0) 100%);
}
.card-overlay h3 { margin-bottom: .2rem; }
.card-overlay p { font-size: .85rem; opacity: .85; }
.card-arrow {
  position: absolute; right: 1.1rem; bottom: 1.1rem;
  font-size: 1.3rem; opacity: 0; transform: translateX(-8px);
  transition: opacity .3s, transform .3s;
}
.card-photo:hover .card-arrow { opacity: 1; transform: none; }

/* ============ Split (nosotros / contacto) ============ */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.split p { color: var(--ink-soft); }
.split-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Galería ============ */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 2rem;
}
.gallery > * { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Placeholders de fotos ============ */
.placeholder {
  background: repeating-linear-gradient(45deg, #efe6d2, #efe6d2 12px, #f6efdf 12px, #f6efdf 24px);
  position: relative; min-height: 120px;
}
.placeholder::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #8b897f; font-size: .85rem; font-weight: 500; text-align: center; padding: 1rem;
}

/* ============ Videos de testimonios ============ */
.videos {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.25rem; margin: 2rem 0 2.5rem;
}
.video-card {
  flex: 0 0 260px; max-width: 260px;
  aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer; background: #000;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-card .play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(8, 58, 71, .85); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem;
  border: 0; cursor: pointer; transition: background .2s, transform .2s;
  padding-left: 4px;
}
.video-card:hover .play-btn { background: var(--accent); transform: scale(1.08); }

@media (max-width: 540px) { .video-card { flex-basis: 220px; max-width: 220px; } }

/* ============ Testimonios ============ */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; font-size: .97rem; color: var(--ink-soft);
}
.quote footer { margin-top: 1rem; font-weight: 600; color: var(--ink); font-size: .9rem; }
.note { margin-top: 1.2rem; font-size: .8rem; color: #a09d92; }

/* Carrusel de reseñas en bucle */
.marquee {
  overflow: hidden; margin: 2rem 0 1.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; gap: 1.25rem; width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card {
  flex: 0 0 340px; max-width: 340px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.review-card .stars { color: #f5b50a; letter-spacing: .1em; font-size: .95rem; }
.review-card p { margin: .7rem 0 1rem; color: var(--ink-soft); font-size: .97rem; line-height: 1.55; }
.review-card footer { font-weight: 600; color: var(--ink); font-size: .88rem; }
@media (max-width: 540px) { .review-card { flex-basis: 280px; max-width: 280px; } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ============ FAQ ============ */
.faq-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; font-weight: 600;
  padding: 1.1rem 2rem 1.1rem 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 1.2rem; color: var(--ink-soft); }

/* ============ Contacto ============ */
.contact-list { list-style: none; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.contact-list strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: #bcd6dd; padding: 3rem 0 1.5rem; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-brand img { height: 64px; width: auto; flex-shrink: 0; }
.footer strong { color: #fff; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: #bcd6dd; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-legal { text-align: center; margin-top: 2.5rem; font-size: .78rem; color: #7da2ad; }

/* ============ Lightbox de galería ============ */
.gallery img { cursor: zoom-in; }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  color: #fff; font-size: 2.2rem; line-height: 1;
  background: none; border: 0; cursor: pointer; padding: .25rem .5rem;
}

/* ============ Animaciones de aparición al hacer scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Botón flotante de WhatsApp ============ */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 2rem; }
  .cards, .cards-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }

  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0; }
}

@media (max-width: 540px) {
  .cards, .cards-3 { grid-template-columns: 1fr; }
  .section { padding: 3.2rem 0; }
  .hero { padding: 3rem 0; }
}
