/* =========================================================
   FLORISTERÍA GEMITA — estilos
   Paleta: lino cálido, terracota, salvia, tinta café
   Tipografía: Fraunces (display) + Karla (texto/labels)
   Fuentes autohospedadas en assets/fonts/ (sin depender de
   Google Fonts, para que cargue rápido incluso con internet
   lento).
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("assets/fonts/karla-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("assets/fonts/karla-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("assets/fonts/karla-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("assets/fonts/karla-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --linen: #F6F1E4;
  --cream: #FFFDF8;
  --teal: #12766F;        /* turquesa principal (botones, links) — derivado del logo */
  --teal-dark: #08464A;   /* verde azulado oscuro del logo — texto e ink */
  --teal-deep: #026166;   /* verde azulado del logo — bloques destacados */
  --teal-deep-dark: #043538;
  --turquoise: #39B2A7;   /* turquesa claro del logo — acentos decorativos */
  --gold: #C9A227;        /* dorado del logo — acentos puntuales */
  --ink: #08464A;
  --ink-soft: #4E6B6A;
  --line: rgba(8, 70, 74, 0.14);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--teal-dark);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-style: normal;
}

.section-lead {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 17px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(18, 118, 111, 0.32);
}
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 8px 22px rgba(8, 70, 74, 0.38); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- NAV ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 236, 224, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo img { height: 34px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 600;
}
.nav-links a { color: var(--ink-soft); transition: color .15s ease; }
.nav-links a:hover { color: var(--teal-dark); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; color: var(--teal-dark); padding: 4px; }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 6px 28px 18px;
}
.nav-mobile a {
  padding: 13px 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.is-open { display: flex; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  #btn-nav-wa { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(52px, 9vw, 92px);
  margin-top: 18px;
}
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--teal-dark);
  font-size: clamp(20px, 2.4vw, 26px);
  margin-top: 6px;
}
.hero p.desc {
  margin-top: 20px;
  max-width: 460px;
  color: var(--ink-soft);
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid var(--cream);
  box-shadow: 0 24px 50px rgba(8, 70, 74, 0.22);
  transform: rotate(1.2deg);
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--teal-dark);
  background: var(--cream);
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(8, 70, 74, 0.12);
}

/* ---------- SLIDER DE VIDEO (solo móvil: en escritorio los videos se pixelan) ---------- */
.video-slider {
  display: none; /* oculto en escritorio */
  position: relative;
  width: 100%;
  height: min(74vh, 640px);
  min-height: 380px;
  overflow: hidden;
  background: var(--teal-dark);
}
@media (max-width: 700px) {
  .video-slider { display: block; }
}
.slides-track { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 26px 28px;
  background: linear-gradient(0deg, rgba(8,70,74,0.72) 0%, rgba(8,70,74,0.18) 26%, rgba(8,70,74,0) 42%);
}
.slide-overlay-content { max-width: 440px; }
.slide-overlay .eyebrow { color: var(--gold); font-size: 11.5px; }
.slide-overlay .eyebrow::before { background: var(--gold); }
.slide-overlay h2 { color: var(--cream); font-size: clamp(20px, 2.8vw, 28px); margin-top: 6px; }
.slide-overlay p { color: rgba(251,246,238,0.88); margin-top: 6px; font-size: 14px; }
.slide-overlay .btn { margin-top: 12px; padding: 11px 20px; font-size: 14px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  right: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--cream);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.slider-dots button.is-active { background: var(--cream); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(8,70,74,0.45);
  color: var(--cream);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.slider-arrow:hover { background: rgba(8,70,74,0.7); }
.slider-prev { left: 18px; }
.slider-next { right: 18px; }

@media (max-width: 700px) {
  /* Pantalla completa de inicio: 100vh/dvh menos topbar (~34px) y nav (~67px) */
  .video-slider {
    height: calc(100vh - 101px);
    height: calc(100dvh - 101px);
    min-height: 420px;
  }
  .slide-overlay { padding: 20px; padding-bottom: 26px; }
  .slide-overlay-content { max-width: 100%; }
  .slider-arrow { width: 34px; height: 34px; font-size: 20px; }
  .slider-dots { bottom: 14px; right: 16px; }
}

/* ---------- BANNER DE LLAMADA A LA ACCIÓN ---------- */
.cta-banner { padding: 56px 0; background: var(--teal); }
.cta-banner-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-banner h2 { color: var(--cream); }
.cta-banner p { color: rgba(251,246,238,0.9); margin-top: 12px; font-size: 16.5px; }
.cta-banner .btn-primary { background: var(--cream); color: var(--teal-dark); box-shadow: none; margin-top: 22px; }
.cta-banner .btn-primary:hover { background: #fff; }

/* ---------- BARRA SUPERIOR ---------- */
.top-bar {
  background: var(--teal-dark);
  color: rgba(246, 241, 228, 0.92);
  font-size: 13px;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 28px;
}
.top-bar a { color: var(--gold); font-weight: 700; }
.top-bar a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .top-bar-inner { flex-direction: column; gap: 4px; padding: 8px 20px; text-align: center; }
}

/* ---------- CHIPS DE CATEGORÍA ---------- */
.chips-categoria {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.chip {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip.is-active { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--cream); }

/* ---------- SELLOS DE CONFIANZA ---------- */
.sellos-section { padding: 50px 0; background: var(--linen); }
.sellos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .sellos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sellos-grid { grid-template-columns: 1fr; } }

.sello {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--teal-dark);
}
.sello svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  padding: 7px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--teal);
}

/* ---------- TESTIMONIOS ---------- */
.grid-testimonios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .grid-testimonios { grid-template-columns: 1fr; } }
.testimonio {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}
.testimonio p { font-style: italic; color: var(--ink); margin: 0 0 14px; }
.testimonio .autor { font-size: 13.5px; font-weight: 700; color: var(--teal-dark); }

/* ---------- GALERÍA DE PLAYA ---------- */
.grid-playa {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 700px) { .grid-playa { grid-template-columns: repeat(2, 1fr); } }
.grid-playa img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 14px;
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* red de seguridad: si JS no corre, igual se ve todo */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- SECTION generic ---------- */
section { padding: 90px 0; }
.section-head { margin-bottom: 46px; }

/* ---------- SOBRE ---------- */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.about-photo {
  aspect-ratio: 4/5;
  border-radius: 18px;
  background: linear-gradient(160deg, #CFE6E1, #A9CFC9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
  padding: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.about-text p { color: var(--ink-soft); margin-top: 16px; }
.about-text .lead { font-size: 19px; color: var(--ink); }

/* ---------- CATALOGO ---------- */
.grid-catalogo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .grid-catalogo { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-catalogo { grid-template-columns: 1fr; } }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(56,42,34,0.10); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 30px; height: 30px; }

.card-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
}

.card h3 { font-size: 20px; }
.card p { color: var(--ink-soft); font-size: 15px; flex-grow: 1; margin: 0; }

.card .btn { align-self: flex-start; padding: 10px 18px; font-size: 13.5px; }

/* ---------- EVENTOS ---------- */
.eventos-card {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-deep-dark) 100%);
  border-radius: 24px;
  padding: 40px;
  color: var(--cream);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 860px) { .eventos-card { grid-template-columns: 1fr; padding: 28px; gap: 26px; } }

.eventos-foto {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 420px;
}
.eventos-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eventos-card h2 { color: var(--cream); }
.eventos-card p { color: rgba(251, 246, 238, 0.88); margin-top: 14px; max-width: 440px; }
.eventos-card .btn-primary { background: var(--cream); color: var(--teal-deep-dark); box-shadow: none; margin-top: 22px; }
.eventos-card .btn-primary:hover { background: #fff; }

/* ---------- UBICACION ---------- */
.ubicacion {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}
@media (max-width: 860px) { .ubicacion { grid-template-columns: 1fr; } }

.info-list { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; color: var(--teal-dark); }
.info-item .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; }
.info-item .value { font-size: 16px; }

.map-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 360px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: var(--linen);
  padding: 56px 0 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-brand { font-family: var(--serif); font-size: 24px; }
.footer-brand .tag { font-family: var(--sans); font-size: 13px; color: rgba(243,236,224,0.6); margin-top: 6px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(243,236,224,0.55); margin: 0 0 12px; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; margin-bottom: 8px; color: rgba(243,236,224,0.9); }
.footer-legal {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(243,236,224,0.15);
  font-size: 13px;
  color: rgba(243,236,224,0.5);
}

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  background: #25D366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .eventos-card { border-radius: 18px; }
}
