/* ============================
   GESUALDI & ASOCIADOS — Landing
   ============================ */

:root {
  color-scheme: light only;

  --navy: #0B1F2D;
  --navy-soft: #12293b;
  --green: #7CB342;
  --green-dark: #689a35;
  --light: #F4F6F8;
  --gray: #6B7280;
  --text: #111111;
  --white: #ffffff;

  --font-head: "Montserrat", sans-serif;
  --font-body: "Lora", serif;

  --container: 1180px;
  --radius: 10px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

/* Algunos navegadores/WebViews de Android oscurecen la página igual aunque
   declaremos color-scheme: light — esto fuerza los colores originales para
   que el sitio nunca cambie de apariencia, pase lo que pase con el modo
   oscuro del sistema. */
@media (prefers-color-scheme: dark) {
  html, body { background: var(--white) !important; color: var(--text) !important; }
  .site-header { background: var(--white) !important; }
  .map-section { background: var(--light) !important; }
  .services, .reviews, .about { background: var(--white) !important; }
  .founder { background: var(--light) !important; }
}
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .eyebrow, nav, button, .btn {
  font-family: var(--font-head);
}

h1, h2, h3 {
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.05rem; letter-spacing: .01em; }

p { margin: 0 0 1em; color: var(--text); }

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

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

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 .8em;
}
.eyebrow.light { color: var(--green); }

.rule {
  display: block;
  width: 46px;
  height: 3px;
  background: var(--gray);
  margin-bottom: 18px;
}
.rule.green { background: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(124,179,66,.28);
}
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 10px 22px rgba(124,179,66,.38); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn-outline {
  border-color: var(--green);
  color: var(--navy);
  background: transparent;
  padding: 10px 20px;
}
.btn-outline:hover { background: var(--green); color: var(--white); }

.btn-whatsapp svg { color: var(--green); transition: color .18s; }
.btn-whatsapp:hover svg { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); }
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(11,31,45,.08);
  border-bottom-color: rgba(11,31,45,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-logo { height: 34px; width: auto; }

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav-link {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-link:hover, .nav-link.active { border-color: var(--green); color: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  margin-left: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 640px;
}
.hero-text {
  background: var(--navy) url('../assets/img/hero-bg.jpg') center right / cover no-repeat;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 60px 90px clamp(24px, 6vw, 80px);
}
.hero-text .eyebrow { color: var(--green); }
.hero-text h1 { color: var(--white); }
.hero-text h1 .amp { color: var(--green); }
.hero-lead {
  color: rgba(255,255,255,.82);
  max-width: 480px;
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.hero-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: rgba(11,31,45,.85);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-badge svg { color: var(--green); flex-shrink: 0; }

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  display: none;
  align-items: center;
  justify-content: center;
}
.hero-text ~ .scroll-cue,
.hero .scroll-cue { display: flex; }
.scroll-cue span {
  width: 6px; height: 6px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0,0); }
  50% { transform: rotate(45deg) translate(3px,3px); }
}

/* ---------- Values strip ---------- */
.values { background: var(--light); padding: 56px 0; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.value-item {
  text-align: center;
  padding: 0 12px;
  border-left: 1px solid rgba(11,31,45,.08);
}
.value-item:first-child { border-left: none; }
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(11,31,45,.08);
  transition: transform .25s var(--ease), color .25s;
}
.value-item:hover .value-icon { transform: translateY(-4px) scale(1.05); color: var(--green); }
.value-item h3 { text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; margin-bottom: 6px; }
.value-item p { color: var(--gray); font-size: .92rem; margin: 0; }

/* ---------- Quote banner ---------- */
.quote-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 90px 0;
  color: var(--white);
}
.quote-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,31,45,.94) 15%, rgba(11,31,45,.55) 60%, rgba(11,31,45,.25) 100%);
}
.quote-content { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
.quote-content .rule { margin-left: auto; margin-right: auto; background: var(--green); }
.quote-content h2 { color: var(--white); margin: 0; }

/* ---------- About ---------- */
.about { padding: 110px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.about-text p { color: var(--gray); }
.about-media img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(11,31,45,.15); }

/* ---------- Titular del estudio ---------- */
.founder { padding: 110px 0; background: var(--light); }
.founder-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.founder-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(11,31,45,.15);
}
.founder-text p:not(.eyebrow) { color: var(--gray); }
.founder-role {
  font-weight: 600;
  color: var(--navy) !important;
  margin-top: -8px;
  margin-bottom: 20px;
}
.about-carousel { position: relative; }
.about-carousel img { display: block; width: 100%; transition: opacity .35s ease; }
.about-carousel img.is-fading { opacity: 0; }
.about-carousel-next {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: rgba(11,31,45,.72);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.about-carousel-next svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.about-carousel-next:hover { background: var(--green); transform: translateX(3px); }

/* ---------- Services ---------- */
.services-hero {
  background: linear-gradient(120deg, var(--navy) 55%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 90px 0 70px;
}
.services-hero h2 { color: var(--white); }
.services-lead { color: rgba(255,255,255,.78); max-width: 460px; }

.accordion { margin-top: -46px; position: relative; z-index: 2; margin-bottom: 90px; }
.acc-item {
  background: var(--white);
  border: 1px solid rgba(11,31,45,.08);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(11,31,45,.04);
  overflow: hidden;
  transition: box-shadow .2s;
}
.acc-item.is-open { box-shadow: 0 10px 26px rgba(11,31,45,.08); border-color: rgba(124,179,66,.35); }

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: none;
  border: none;
  border-left: 4px solid transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  transition: border-color .2s, background .2s;
}
.acc-item.is-open .acc-trigger { border-left-color: var(--green); background: rgba(124,179,66,.04); }

.acc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--light);
  color: var(--navy);
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.acc-item.is-open .acc-icon { background: var(--green); color: var(--white); }

.acc-title { flex: 1; font-weight: 600; font-size: 1.05rem; color: var(--navy); }

.acc-plus {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.acc-plus::before, .acc-plus::after {
  content: "";
  position: absolute;
  background: var(--gray);
  border-radius: 2px;
}
.acc-plus::before { width: 18px; height: 2px; top: 8px; left: 0; }
.acc-plus::after { width: 2px; height: 18px; top: 0; left: 8px; transition: opacity .25s; }
.acc-item.is-open .acc-plus { transform: rotate(45deg); }
.acc-item.is-open .acc-plus::before,
.acc-item.is-open .acc-plus::after { background: var(--green); }

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s var(--ease);
}
.acc-panel > div { padding: 0 26px 26px 86px; }
.acc-panel p, .acc-panel ul { color: var(--gray); }
.acc-panel ul { padding-left: 20px; margin: 0; }
.acc-panel li { margin-bottom: 4px; }

/* CTA strip */
.cta-strip { background: var(--navy); color: var(--white); padding: 64px 0; }

/* ---------- Mapa / ubicación ---------- */
.map-section { padding: 90px 0; background: var(--light); }
.map-section .eyebrow { text-align: center; }
.map-section h2 { text-align: center; margin-bottom: 34px; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11,31,45,.12);
  border: 1px solid rgba(11,31,45,.08);
  line-height: 0;
}
.map-embed iframe {
  width: 100%;
  height: 420px;
  display: block;
}
@media (max-width: 760px) {
  .map-section { padding: 60px 0; }
  .map-embed iframe { height: 320px; }
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: var(--white); margin-bottom: 6px; }
.cta-sub { color: rgba(255,255,255,.72); margin: 0 0 16px; }
.cta-contact { display: flex; flex-wrap: wrap; gap: 12px; }

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.contact-chip svg { flex-shrink: 0; }
.contact-chip:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-cta { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 34px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand img {
  height: 30px;
  background: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
}
.footer-location { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.footer-location svg { color: var(--green); }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  opacity: .85;
  transition: opacity .2s, color .2s, border-color .2s, background .2s;
}
.footer-social a:hover { opacity: 1; color: var(--white); background: var(--green); border-color: var(--green); }

.footer-credit {
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .03em;
  color: rgba(255,255,255,.45);
}
.footer-credit a {
  color: var(--green);
  font-weight: 700;
  transition: color .2s;
}
.footer-credit a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.values-grid.stagger .value-item { transition-delay: calc(var(--i) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: 300px; }
  .hero-text { padding: 60px 28px; text-align: left; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-media { order: -1; }
  .values-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .value-item:nth-child(3) { border-left: none; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 62px 0 auto 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px 26px;
    gap: 4px;
    box-shadow: 0 12px 24px rgba(11,31,45,.1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-link { padding: 12px 4px; border-bottom: 1px solid rgba(11,31,45,.06); }
  .nav-toggle { display: flex; }
  .btn-whatsapp { display: none; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .header-inner { gap: 12px; }
  .cta-inner { text-align: center; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-social { margin-left: 0; }
  .acc-panel > div { padding-left: 26px; }
  .acc-title { font-size: .95rem; }
}

@media (max-width: 520px) {
  .values-grid { grid-template-columns: 1fr; }
  .value-item { border-left: none !important; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================
   RESEÑAS DE GOOGLE
   ============================ */
.reviews { background: var(--white); padding: 90px 0; }
.reviews-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.reviews-head h2 { margin-bottom: 14px; }
.reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.reviews-stars { display: flex; gap: 2px; color: var(--green); }
.reviews-stars svg { width: 18px; height: 18px; }
.reviews-score { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.reviews-source { color: var(--gray); font-size: .9rem; }

.reviews-carousel { position: relative; max-width: 760px; margin: 0 auto; padding: 0 52px; }
.reviews-carousel-window { overflow: hidden; }
.reviews-carousel-track {
  display: flex;
  transition: transform .45s var(--ease);
}
.review-card {
  flex: 0 0 100%;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--light);
  border-radius: 12px;
  padding: 32px;
  box-sizing: border-box;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.review-card:hover { box-shadow: 0 12px 28px rgba(11,31,45,.1); transform: translateY(-2px); }
.review-card-stars { display: flex; gap: 2px; color: var(--green); margin-bottom: 14px; }
.review-card-stars svg { width: 16px; height: 16px; }
.review-card-text {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 20px;
}
.review-card-author { display: flex; align-items: center; gap: 12px; }
.review-card-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
.review-card-meta { display: flex; flex-direction: column; }
.review-card-name { font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--navy); }
.review-card-time { font-size: .78rem; color: var(--gray); }

.reviews-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--light);
  background: var(--white);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.reviews-carousel-btn:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.reviews-carousel-btn-prev { left: 0; }
.reviews-carousel-btn-next { right: 0; }
.reviews-carousel-counter {
  text-align: center;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--gray);
  font-family: var(--font-head);
  font-weight: 700;
}

.reviews-cta { text-align: center; margin-top: 40px; }

@media (max-width: 520px) {
  .reviews { padding: 60px 0; }
  .review-card { padding: 24px; }
  .reviews-carousel { padding: 0 40px; }
  .reviews-carousel-btn { width: 32px; height: 32px; }
}
