@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  --sand: #f5f0e8;
  --sand-dark: #e8e0d0;
  --earth: #8b7355;
  --earth-light: #a8956e;
  --black: #0d0d0d;
  --white: #ffffff;
  --gray: #6b6560;
  --gray-light: #f0ede6;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Josefin Sans', sans-serif; color: var(--black); background: var(--white); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 100;
  padding: 24px 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,0));
  border-radius: 0;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease, border-radius .4s ease, margin .4s ease, width .4s ease;
}
.header.scrolled {
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(12px);
  padding: 14px 32px;
  margin: 14px auto 0;
  width: calc(100% - 40px);
  max-width: 1200px;
  border-radius: 18px;
  border-bottom: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.header-inner {
  max-width: var(--max);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.logo {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .4s ease;
}
.header.scrolled .logo { color: var(--black); }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-transform: none;
  text-shadow: 1px 1px 0 rgba(0,0,0,.8);
  transition: color .4s ease, opacity .2s ease;
  opacity: .9;
}
.nav a:hover { opacity: 1; }
.header.scrolled .nav a { color: var(--black); text-shadow: none; }

.nav-instagram {
  display: inline-flex;
  color: var(--white);
  opacity: .9;
  transition: color .4s ease, opacity .2s ease, transform .2s ease;
}
.nav-instagram svg { width: 20px; height: 20px; display: block; }
.nav-instagram:hover { opacity: 1; transform: scale(1.08); }
.header.scrolled .nav-instagram { color: var(--black); }

.pill {
  border: 1px solid rgba(255,255,255,.7);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: .75rem;
  letter-spacing: .18em;
  transition: background .2s, color .2s, border-color .4s;
}
.pill:hover { background: var(--white); color: var(--black); }
.header.scrolled .pill { border-color: rgba(0,0,0,.25); }
.header.scrolled .pill:hover { background: var(--black); color: var(--white); }

.pill-whatsapp {
  width: 38px; height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pill-whatsapp img { width: 17px; height: 17px; }

.pill-flag {
  width: 34px; height: 24px;
  padding: 0;
  border-radius: 5px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.7);
  background: none;
  cursor: pointer;
  transition: border-color .4s ease, transform .2s ease;
}
.pill-flag:hover { transform: scale(1.08); }
.pill-flag img { width: 100%; height: 100%; display: block; object-fit: cover; }
.header.scrolled .pill-flag { border-color: rgba(0,0,0,.25); }

.lang-dropdown { position: relative; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 50;
}
.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu .pill-flag { border: 1px solid rgba(0,0,0,.12); }

.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float img { width: 100%; height: 100%; }

/* ── HERO ── */
.hero { position: relative; height: 100vh; overflow: hidden; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.38) 0%, rgba(0,0,0,.18) 50%, rgba(0,0,0,.42) 100%);
  z-index: 1;
}
.hero-img {
  position: absolute; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  width: min(90vw, 680px);
}
.hero-logo {
  width: min(220px, 50vw);
  margin: 0 auto 32px;
  filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(0,0,0,.3));
}
.hero h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero p,
.hero-cta {
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85;
}
.hero-cta {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.6);
  padding-bottom: 4px;
  transition: opacity .2s ease;
}
.hero-cta:hover { opacity: 1; }

/* ── INTRO ── */
.intro {
  background: var(--white);
  padding: 120px 40px;
  text-align: center;
}
.intro-inner { max-width: 680px; margin: auto; }
.intro p {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gray);
  line-height: 2;
  margin: 0 0 4px;
}
.intro p:first-child,
.intro p:last-child {
  font-style: normal;
  color: var(--black);
  font-weight: 500;
}

/* ── TESTIMONIOS ── */
.testimonials {
  position: relative;
  background: url('img/bird.jpg') center/cover no-repeat;
  padding: 130px 40px;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.18);
}
.testimonials::after {
  content: '';
  position: absolute;
  left: -20px; bottom: -10px;
  width: 600px; height: 100%;
  background: url('img/bird.png') no-repeat left bottom/contain;
  z-index: 1;
  pointer-events: none;
}
.testimonials-inner {
  position: relative; z-index: 2;
  max-width: var(--max);
  margin: 0 auto 0 auto;
  padding-left: 300px;
}
.section-kicker {
  font-size: .95rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 12px;
  text-align: center;
}
.section-kicker-light { color: var(--sand-dark); }

.testimonials h2,
.description h2,
.values h2,
.contact-form h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: .02em;
  margin-bottom: 40px;
  text-align: center;
}
.values h2 { color: var(--white); text-align: left; }
.contact-form h3 { text-align: left; margin-bottom: 28px; font-size: 1.7rem; }

.testimonial-slider {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 16px;
  align-items: center;
}
.slider-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.85);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.slider-arrow:hover { background: var(--white); }
.testimonial-card {
  background: rgba(255,255,255,.82);
  padding: 48px 52px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.35);
  transition: opacity .4s ease, transform .4s ease;
}
.testimonial-card.is-changing { opacity: 0; transform: translateY(6px); }
.testimonial-text {
  font-family: 'Josefin Sans', sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--black);
  margin: 0 0 18px;
}
.testimonial-author {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--earth);
}

/* ── DESCRIPCION ── */
.description {
  background: var(--sand);
  padding: 130px 40px;
}
.description-inner { max-width: 780px; margin: auto; }
.description .section-kicker { text-align: left; margin-bottom: 10px; }
.description h2 { text-align: left; margin-bottom: 36px; }
.description p:not(.section-kicker) {
  font-size: 1.4rem;
  line-height: 1.95;
  color: #3a3530;
  margin: 0 0 22px;
}
.description p:last-child { margin: 0; }

/* ── VALUES ── */
.values {
  background: var(--black);
  padding: 130px 40px;
}
.values-inner { max-width: 780px; margin: auto; }
.values .section-kicker { text-align: left; }
.values ul { list-style: none; padding: 0; }
.values li {
  color: rgba(255,255,255,.75);
  font-size: 1.4rem;
  line-height: 1.3;
  padding: 14px 0;
}

/* ── CONTACTO ── */
.contacto {
  background: var(--white);
  padding: 130px 40px;
}
.contact-grid {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact-logo { width: 260px; max-width: 100%; }
.contact-form .section-kicker { text-align: left; margin-bottom: 10px; }

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.18);
  background: transparent;
  padding: 12px 2px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: .95rem;
  color: var(--black);
  outline: none;
  border-radius: 0;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--earth); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #aaa; }
.contact-form textarea { min-height: 120px; resize: vertical; margin-top: 4px; }

.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.form-actions button,
.form-actions a {
  padding: 12px 28px;
  border-radius: 999px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.form-actions button {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}
.form-actions button:hover { background: var(--earth); border-color: var(--earth); }
.form-actions a {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(0,0,0,.25);
  text-decoration: none;
}
.form-actions a:hover { border-color: var(--black); }

#form-status { margin-top: 12px; font-size: .88rem; color: var(--gray); }
#form-status.success { color: #2e6f3e; }
#form-status.error { color: #a33; }

/* ── FOOTER ── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,.45);
  padding: 28px 40px;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .testimonials::after { width: 360px; }
  .testimonials-inner { padding-left: 200px; }
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .contact-logo { width: 200px; }
}

@media (max-width: 640px) {
  .header { padding: 18px 20px; }
  .header.scrolled { padding: 14px 20px; }
  .nav { gap: 14px; }
  .nav > a:not(.pill) { display: none; }
  .hero h1 { font-size: 2.6rem; }
  .intro, .testimonials, .description, .values, .contacto { padding: 80px 24px; }
  .testimonials::after { width: 560px; left: -16px; }
  .testimonials-inner { padding-left: 80px; }
  .testimonial-card { padding: 32px 24px; }
  .testimonial-slider { grid-template-columns: 36px 1fr 36px; gap: 10px; }
  .contact-grid { gap: 40px; }
  .contact-logo { width: 160px; }
}
