/* ── TOKENS ─────────────────────────────────── */
:root {
  --crema: #F5EED8;
  --crema-light: #FAF5E9;
  --marron: #B5895A;
  --marron-dark: #8B6240;
  --verde: #7D9171;
  --verde-dark: #5A6E52;
  --pastel-rose: #E8D5C4;
  --pastel-sage: #D4DDD0;
  --text-dark: #3A2E22;
  --text-mid: #6B5740;
  --text-light: #9C8370;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', sans-serif;

  --nav-h: 72px;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background: var(--crema-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

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

ul {
  list-style: none;
}

/* ── UTILITY ─────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verde);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-dark);
}

.btn {
  display: inline-block;
  padding: 0.8em 2em;
  border: 1.5px solid currentColor;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-dark {
  color: var(--text-dark);
  border-color: var(--marron);
}

.btn-dark:hover {
  background: var(--marron);
  color: var(--crema-light);
}

.btn-light {
  color: var(--crema-light);
  border-color: var(--crema-light);
}

.btn-light:hover {
  background: var(--crema-light);
  color: var(--text-dark);
}

/* ── NAVBAR ─────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar .container {
  max-width: 100%;
  padding-inline: clamp(1.5rem, 6vw, 5rem);
}

#navbar.scrolled {
  background: rgba(245, 238, 216, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 20px rgba(58, 46, 34, 0.08);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--crema-light);
  transition: color var(--transition);
  line-height: 1;
  margin-right: auto;

  position: relative;
  left: -30px;
}

#navbar.scrolled .nav-logo {
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
  margin-right: 3rem;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 245, 233, 0.9);
  position: relative;
  transition: color var(--transition);
}

#navbar.scrolled .nav-links a {
  color: var(--text-mid);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--marron);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6em 1.4em;
  border: 1.5px solid rgba(250, 245, 233, 0.7);
  color: var(--crema-light);
  transition: all var(--transition);
}

#navbar.scrolled .nav-cta {
  border-color: var(--marron);
  color: var(--marron-dark);
}

.nav-cta:hover {
  background: var(--marron);
  border-color: var(--marron);
  color: var(--crema-light) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--crema-light);
  transition: all var(--transition);
}

#navbar.scrolled .hamburger span {
  background: var(--text-dark);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--crema);
  padding: 2rem var(--pad, 1.5rem) 2.5rem;
  z-index: 99;
  border-bottom: 1px solid var(--pastel-sage);
  box-shadow: 0 8px 32px rgba(58, 46, 34, 0.1);
  flex-direction: column;
  gap: 1.2rem;
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--transition);
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  padding-block: 0.3rem;
  border-bottom: 1px solid var(--pastel-sage);
}

/* ── HERO ────────────────────────────────────── */
#hero {
  position: relative;
  height: 100dvh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Placeholder gradient — replace with your photo */
  background:
    linear-gradient(160deg, rgba(90, 110, 82, .55) 0%, rgba(58, 46, 34, .75) 100%),
    url('imagenes/logoTeLoResuelvo.jpg') 10% 20% / 20% no-repeat;
  transform: scale(1.04);
  /*animation: heroZoom 14s ease-out forwards; */
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100dvh;

  display: flex;
  align-items: center;

  padding: 0 1.5rem;
}

.hero-content .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  align-items: center;
  text-align: center;

  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero-tag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pastel-sage);
  opacity: 0;
  animation: fadeUp 1s 0.4s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  color: var(--crema-light);
  line-height: 1.05;
  max-width: 16ch;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--pastel-rose);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 300;
  color: rgba(250, 245, 233, 0.8);
  max-width: 42ch;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s 1.3s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 5vw, 3rem);
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 245, 233, 0.5);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 50px;
  background: rgba(250, 245, 233, 0.3);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── NOSOTROS ────────────────────────────────── */
#nosotros {
  padding-block: clamp(4rem, 10vh, 8rem);
  background: var(--crema-light);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.nosotros-img-wrap {
  position: relative;
}

.nosotros-img-main {
  height: clamp(320px, 50vw, 540px);
  border-radius: var(--radius);
  /* Replace with your photo */
  background: url('imagenes/nosotrosTeLoResuelvo.png') center/cover;
}



.nosotros-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nosotros-text .section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.nosotros-text p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-mid);
}

.nosotros-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.stat {
  padding: 1.2rem;
  background: var(--pastel-sage);
  border-radius: var(--radius);
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--marron);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde-dark);
  margin-top: 0.4rem;
}

/* ── SERVICIOS ───────────────────────────────── */
#servicios {
  padding-block: clamp(4rem, 10vh, 8rem);
  background: var(--pastel-sage);
}

.servicios-header {
  text-align: center;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.servicios-header .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.servicio-card {
  background: var(--crema-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(58, 46, 34, 0.12);
}

.servicio-img {
  height: 200px;
  /* Replace each with your photos */
}

.s1 {
  background: url('imagenes/brusquetasTeLoResuelvo.jpg') center/cover;
}

.s2 {
  background: url('imagenes/canapesTeLoResuelvo.jpg') center/cover;
}

.s3 {
  background: url('imagenes/dulceTeLoResuelvo.jpg') center/cover;
}

.s4 {
  background: url('imagenes/saladoTeLoResuelvo.jpg') center/cover;
}

.s5 {
  background: url('imagenes/vegana.jpg') center/cover;
}

.s6 {
  background: url('imagenes/domicilio.jpg') center/cover;
}

.servicio-body {
  padding: 1.5rem;
}

.servicio-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pastel-sage);
  border-radius: 50%;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.servicio-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.servicio-body p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── GALERÍA ─────────────────────────────────── */
#galeria {
  padding-block: clamp(4rem, 10vh, 8rem);
  background: var(--crema);
}

.galeria-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.galeria-header .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 0.8rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(58, 46, 34, 0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(58, 46, 34, 0.25);
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(2) {
  grid-column: span 2;
}

.g1 {
  background: url('imagenes/publicidadTeLoResuelvo.jpg') center/cover;
}

.g2 {
  background: url('imagenes/canapesTeLoResuelvo.jpg') center/cover;
}

.g3 {
  background: url('imagenes/dulceTeLoResuelvo.jpg') center/cover;
}

.g4 {
  background: url('imagenes/saladoTeLoResuelvo.jpg') center/cover;
}

.g5 {
  background: url('imagenes/brusquetasTeLoResuelvo.jpg') center/cover;
}

/* ── PROCESO ─────────────────────────────────── */
#proceso {
  padding-block: clamp(4rem, 10vh, 8rem);
  background: var(--marron-dark);
}

#proceso .section-label {
  color: var(--pastel-sage);
}

#proceso .section-title {
  color: var(--crema);
  font-size: clamp(2rem, 4vw, 3rem);
}

.proceso-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}

.proceso-header p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(250, 245, 233, 0.7);
  line-height: 1.85;
}

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(100% - 1rem);
  width: calc(100% - 1rem);
  height: 1px;
  background: rgba(250, 245, 233, 0.15);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(250, 245, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--pastel-rose);
}

.step h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--crema-light);
}

.step p {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(250, 245, 233, 0.6);
  line-height: 1.7;
}

/* ── TESTIMONIOS ─────────────────────────────── */
#testimonios {
  padding-block: clamp(4rem, 10vh, 8rem);
  background: var(--crema-light);
}

.testi-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.testi-header .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testi-card {
  background: var(--crema);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 3px solid var(--verde);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testi-stars {
  color: var(--marron);
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.testi-card blockquote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.7;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pastel-sage);
  flex-shrink: 0;
  overflow: hidden;
}

.testi-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
}

.testi-event {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

/* ── CONTACTO ────────────────────────────────── */
#contacto {
  padding-block: clamp(4rem, 10vh, 8rem);
  background: var(--verde-dark);
  position: relative;
  overflow: hidden;
}

#contacto::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  justify-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  width: 100%;
}

.contacto-info .section-label {
  color: var(--pastel-sage);
  opacity: 0.7;
}

.contacto-info .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--crema-light);
}

.contacto-info p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(250, 245, 233, 0.75);
  line-height: 1.85;
}

.contacto-details {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(250, 245, 233, 0.85);
}

.contacto-item span.icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--text-dark);
  padding-block: 3rem 1.5rem;
  color: rgba(250, 245, 233, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--crema);
}

.footer-brand p {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition);
}

.social-btn:hover {
  border-color: var(--marron);
  color: var(--marron);
}

.footer-col h5 {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crema-light);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.82rem;
  font-weight: 300;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--marron);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── SCROLL REVEAL ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proceso-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nosotros-grid {
    grid-template-columns: 1fr;
  }

  .nosotros-img-accent {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    height: 240px;
  }

  .gallery-item:nth-child(2) {
    grid-column: span 2;
    height: 200px;
  }

  .gallery-item {
    height: 180px;
  }

  .proceso-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .proceso-steps {
    grid-template-columns: 1fr 1fr;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .nosotros-stats {
    grid-template-columns: 1fr 1fr;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .proceso-steps {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 220px !important;
    grid-column: span 1 !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}