/* ============================================================
   CANEDO BY A LAXA — CSS
   Palette extraída del logotipo:
     · Verde bosque profundo  #2D7A52
     · Crema/blanco roto      #E4EDE7
     · Carbón (la N)          #1C1C1A
   Estilo: geométrico, moderno, limpio, premium
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Colores principales del logotipo ── */
  --green-deep:    #2D7A52;   /* verde fondo logo */
  --green-dark:    #1E5A3C;   /* verde más oscuro */
  --green-mid:     #3D9068;   /* verde medio / hover */
  --green-light:   #4FAD80;   /* verde claro / acentos */
  --green-pale:    #E0EDE6;   /* verde muy claro / superficies */
  --green-bg:      #F3F8F5;   /* fondo de secciones claras */
  --cream:         #E4EDE7;   /* blanco roto del logo */
  --charcoal:      #1C1C1A;   /* carbón de la N del logo */
  --charcoal-mid:  #2E2E2C;
  --text-dark:     #1A1C1A;
  --text-mid:      #3A4A3E;
  --text-muted:    #5A6B5F;
  --white:         #F8FBF9;

  /* ── Tipografía ── */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* ── Espaciado ── */
  --section-py: clamp(4rem, 8vw, 7rem);
  --container:  1200px;
  --radius:     3px;

  /* ── Transiciones ── */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--green-bg);
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn--primary {
  background-color: var(--green-deep);
  color: var(--cream);
  border-color: var(--green-deep);
}
.btn--primary:hover {
  background-color: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 122, 82, 0.35);
}

.btn--outline {
  background-color: transparent;
  color: var(--cream);
  border-color: rgba(228, 237, 231, 0.6);
}
.btn--outline:hover {
  background-color: rgba(228, 237, 231, 0.1);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.btn--cta {
  background-color: var(--cream);
  color: var(--green-deep);
  border-color: var(--cream);
  font-size: 0.85rem;
  padding: 1rem 2.75rem;
}
.btn--cta:hover {
  background-color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

/* ---------- Labels y títulos de sección ---------- */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.75rem;
}
.section-label--light {
  color: var(--green-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* ---------- Scroll Reveal ---------- */
.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-item:nth-child(2) { transition-delay: 0.15s; }
.reveal-item:nth-child(3) { transition-delay: 0.30s; }

.revealed {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.1s var(--ease) 0.35s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--green-deep);
  /* textura sutil de carbón sobre verde, igual que el logo */
  background-image:
    radial-gradient(ellipse at 20% 70%, rgba(30, 90, 60, 0.7) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(28, 28, 26, 0.5) 0%, transparent 50%),
    linear-gradient(160deg, #1E5A3C 0%, #2D7A52 45%, #245E42 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 28, 26, 0.08) 0%,
    rgba(28, 28, 26, 0.45) 100%
  );
  pointer-events: none;
}

/* Patrón geométrico sutil inspirado en las formas circulares del logo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(228, 237, 231, 0.04) 180px, transparent 180px),
    radial-gradient(circle at 85% 15%, rgba(228, 237, 231, 0.04) 220px, transparent 220px),
    radial-gradient(circle at 50% 50%, rgba(228, 237, 231, 0.02) 300px, transparent 300px);
  pointer-events: none;
}

.hero__logo {
  height: clamp(80px, 14vw, 140px);
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  display: block;
  margin-inline: auto;
  margin-bottom: 0.25rem;
}

.hero__content {
  position: relative;
  z-index: 5;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 3rem) 5rem;
  max-width: 740px;
}

.hero__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.hero__title span {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 4.2vw, 3rem);
  color: rgba(228, 237, 231, 0.75);
  letter-spacing: 0.04em;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 400;
  color: rgba(228, 237, 231, 0.8);
  margin: 1.25rem 0 1.5rem;
  line-height: 1.55;
}

.hero__intro {
  font-size: 0.92rem;
  color: rgba(228, 237, 231, 0.6);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.hero__phone {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--green-light);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  transition: color 0.25s;
}
.hero__phone:hover { color: var(--cream); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Indicador de scroll */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.hero__scroll-hint span {
  display: block;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(228, 237, 231, 0.3);
  border-radius: 11px;
  position: relative;
}
.hero__scroll-hint span::after {
  content: '';
  display: block;
  width: 3px;
  height: 7px;
  background: rgba(228, 237, 231, 0.55);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.9s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: 5px;  opacity: 1; }
  80%  { top: 19px; opacity: 0; }
  100% { top: 5px;  opacity: 0; }
}

/* ============================================================
   IDENTIDAD
   ============================================================ */
.identity {
  background-color: var(--white);
  padding-block: var(--section-py);
  border-top: 3px solid var(--green-deep);
}

.identity__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.identity__deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  flex-shrink: 0;
}

.deco-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--green-deep), transparent);
}
.deco-icon {
  font-size: 1.1rem;
  color: var(--green-deep);
}

.identity__text .section-title { color: var(--charcoal); }

.identity__text p {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 600px;
}
.identity__text p:last-child { margin-bottom: 0; }

/* ============================================================
   PROPUESTA GASTRONÓMICA
   ============================================================ */
.proposal {
  background-color: var(--green-bg);
  padding-block: var(--section-py);
  text-align: center;
}

.proposal__lead {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--text-muted);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.proposal__cta {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.proposal__pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.pillar {
  background-color: var(--white);
  border: 1px solid var(--green-pale);
  border-radius: 6px;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(45, 122, 82, 0.1);
  border-color: var(--green-mid);
}

.pillar__icon {
  width: 48px;
  height: 48px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  color: var(--green-deep);
}
.pillar__icon svg { width: 100%; height: 100%; }

.pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.7rem;
}
.pillar p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   EXPERIENCIA
   ============================================================ */
.experience {
  background-color: var(--white);
  padding-block: var(--section-py);
}

.experience__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 768px) {
  .experience__grid { grid-template-columns: 1fr 1fr; }
}

.experience__text .section-title { color: var(--charcoal); }
.experience__text > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.experience__list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.experience__list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.experience__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.5rem;
  color: var(--green-deep);
}

/* Visual decorativo inspirado en las formas circulares del logo */
.experience__visual { position: relative; }

.experience__frame {
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--green-deep);
  background-image:
    radial-gradient(ellipse at 40% 30%, rgba(79, 173, 128, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 75%, rgba(28, 28, 26, 0.4) 0%, transparent 45%),
    linear-gradient(145deg, #1E5A3C 0%, #2D7A52 50%, #245E42 100%);
  position: relative;
}

/* Círculos geométricos del logo como decoración */
.experience__frame::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 10%;
  width: 55%;
  aspect-ratio: 1;
  border: 1.5px solid rgba(228, 237, 231, 0.2);
  border-radius: 50%;
}
.experience__frame::after {
  content: '';
  position: absolute;
  bottom: 12%;
  right: 8%;
  width: 45%;
  aspect-ratio: 1;
  border: 1.5px solid rgba(228, 237, 231, 0.15);
  border-radius: 50%;
}

.experience__inner {
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(228, 237, 231, 0.18);
  border-radius: 4px;
}

/* ============================================================
   HORARIO
   ============================================================ */
.schedule {
  background-color: var(--green-bg);
  padding-block: var(--section-py);
}
.schedule__wrap { text-align: center; }

.schedule__cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 600px) {
  .schedule__cards {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }
}

.schedule__card {
  flex: 1;
  max-width: 320px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background-color: var(--white);
  border: 1px solid var(--green-pale);
  border-radius: 6px;
  text-align: center;
  transition: box-shadow 0.3s var(--ease);
}
.schedule__card:hover {
  box-shadow: 0 8px 24px rgba(45, 122, 82, 0.1);
}

.schedule__divider {
  width: 1px;
  height: 90px;
  background: var(--green-pale);
  align-self: center;
  margin-inline: clamp(1.5rem, 3vw, 3rem);
  display: none;
}
@media (min-width: 600px) {
  .schedule__divider { display: block; }
}

.schedule__days {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.schedule__time {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.schedule__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ============================================================
   UBICACIÓN Y CONTACTO
   ============================================================ */
.location {
  background-color: var(--white);
  padding-block: var(--section-py);
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}
@media (min-width: 768px) {
  .location__grid { grid-template-columns: 1fr 1.5fr; align-items: center; }
}

.location__phone {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 2rem;
  transition: color 0.25s;
}
.location__phone:hover { color: var(--green-dark); }

.location__map {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(28, 28, 26, 0.1);
  border: 1px solid var(--green-pale);
}
.location__map iframe { display: block; }

/* ============================================================
   CALL TO ACTION
   ============================================================ */
.cta {
  position: relative;
  background-color: var(--green-deep);
  background-image:
    radial-gradient(ellipse at 20% 60%, rgba(30, 90, 60, 0.8) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 40%, rgba(28, 28, 26, 0.5) 0%, transparent 50%),
    linear-gradient(135deg, #1E5A3C 0%, #2D7A52 50%, #1E5A3C 100%);
  padding-block: var(--section-py);
  text-align: center;
  overflow: hidden;
}

/* Círculos decorativos del logo */
.cta__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cta__overlay::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  aspect-ratio: 1;
  border: 1px solid rgba(228, 237, 231, 0.08);
  border-radius: 50%;
}
.cta__overlay::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 350px;
  aspect-ratio: 1;
  border: 1px solid rgba(228, 237, 231, 0.07);
  border-radius: 50%;
}

.cta__content { position: relative; z-index: 2; }

.cta__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.cta__text {
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  color: rgba(228, 237, 231, 0.7);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}
.cta__phone {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--green-light);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  transition: color 0.25s;
}
.cta__phone:hover { color: var(--cream); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--charcoal);
  padding-block: 2.5rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer__logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}
.footer__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(228, 237, 231, 0.85);
}
.footer__info a {
  color: var(--green-light);
  font-weight: 500;
  transition: color 0.25s;
}
.footer__info a:hover { color: var(--cream); }

.footer__copy {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(228, 237, 231, 0.55);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 599px) {
  .identity__grid     { grid-template-columns: 1fr; }
  .identity__deco     { display: none; }
  .hero__actions      { flex-direction: column; align-items: center; }
  .btn                { width: 100%; max-width: 280px; text-align: center; }
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.wa-float__link {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  position: relative;
}

/* Burbuja de texto */
.wa-float__bubble {
  background-color: #25D366;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.55rem 1rem 0.55rem 1.1rem;
  border-radius: 50px 0 0 50px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);

  /* Estado inicial: oculto y desplazado a la derecha */
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(12px);
  transition:
    max-width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.35s ease,
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

/* Al hacer hover aparece el texto */
.wa-float__link:hover .wa-float__bubble,
.wa-float__link:focus-visible .wa-float__bubble {
  max-width: 220px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Icono */
.wa-float__icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.wa-float__link:hover .wa-float__icon {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* Animación shake periódica */
@keyframes shake {
  0%, 100%         { transform: rotate(0deg); }
  10%, 30%, 50%    { transform: rotate(-10deg); }
  20%, 40%         { transform: rotate(10deg); }
  60%              { transform: rotate(6deg); }
  70%              { transform: rotate(-6deg); }
  80%              { transform: rotate(3deg); }
  90%              { transform: rotate(-3deg); }
}

.shake {
  animation: shake 3.5s ease-in-out 2s infinite;
}

.wa-float__link:hover .shake {
  animation: none;
}

/* Mobile: burbuja siempre visible pero más compacta */
@media (max-width: 599px) {
  .wa-float {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .wa-float__bubble {
    display: none;
  }

  .wa-float__icon {
    width: 54px;
    height: 54px;
  }
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-item { opacity: 1; transform: none; }
}
