/*
Theme Name: Sota & Asociados
Theme URI: https://estudiosota.com.ar/
Author: Domweb — basado en diseño Lovable
Author URI: https://estudiosota.com.ar/
Description: Tema WordPress a medida para Sota & Asociados — Estudio Jurídico y Contable. Diseño sereno, tipografía Cormorant Garamond + Inter, paleta verde forestal. Incluye front-page con secciones editables desde el Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sota-asociados
*/

/* Sota & Asociados — Estudio Jurídico y Contable
   Sereno / Hogareño — Verde forestal + verde pálido acento
   Standalone static build (HTML + CSS + vanilla JS) */

:root {
  --ivory: #fbfbf8;
  --ink: #4a5c4a;
  --ink-dark: #384538;
  --gold: #c8e0b8;
  --gold-soft: #e4eedc;
  --line: #e8ece4;
  --muted: #6a6e78;
  --card: #ffffff;
  --shadow-elevated: 0 40px 80px -40px rgba(30, 40, 30, 0.35);
  --shadow-soft: 0 20px 40px -25px rgba(30, 40, 30, 0.20);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border: 0 solid var(--line); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, iframe, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; }

::selection { background: var(--gold); color: var(--ink); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.3s ease;
  min-height: 44px;
  cursor: pointer;
}
.btn-ink { background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn-light:hover { background: transparent; color: var(--ivory); }
.btn-outline-light { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-outline-light:hover { background: var(--ivory); color: var(--ink); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ------------ HEADER ------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: all .5s ease;
  color: var(--ivory);
}
.site-header.scrolled {
  background: rgba(251, 251, 248, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.brand { display: inline-flex; gap: .35rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.brand .amp { color: var(--gold); }

.nav-desktop { display: none; gap: 2rem; align-items: center; }
.nav-desktop a { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; transition: opacity .2s; }
.nav-desktop a:hover { opacity: 0.6; }

.nav-cta { display: none; }
.nav-cta .btn { padding: 0.7rem 1.25rem; }

.menu-toggle { display: inline-flex; flex-direction: column; gap: 6px; padding: .5rem; }
.menu-toggle span { display: block; width: 24px; height: 1px; background: currentColor; }
.menu-toggle span:last-child { width: 16px; margin-left: auto; }

.nav-mobile { display: none; background: var(--ivory); color: var(--ink); border-top: 1px solid var(--line); }
.nav-mobile.open { display: block; }
.nav-mobile ul { padding: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile a { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; letter-spacing: .16em; text-transform: uppercase; }
.nav-mobile .btn { margin-top: 1rem; }

@media (min-width: 1024px) {
  .nav-desktop, .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ------------ HERO ------------ */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; color: var(--ivory); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55) saturate(0.9); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45,60,45,0.55) 0%, rgba(45,60,45,0.35) 40%, rgba(45,60,45,0.85) 100%); }
.hero-inner { position: relative; padding: 10rem 0 6rem; width: 100%; }
.hero h1 { color: var(--ivory); margin-top: 2rem; }
.hero h1 em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.hero-lead { margin-top: 2rem; max-width: 36rem; font-size: 1.05rem; line-height: 1.7; color: rgba(240, 245, 235, 0.85); }
.hero-ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { margin-top: 5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding-top: 2.5rem; border-top: 1px solid rgba(240, 245, 235, 0.25); }
@media (min-width: 768px) { .hero-trust { grid-template-columns: repeat(4, 1fr); } }
.hero-trust .k { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--gold-soft); }
.hero-trust .v { margin-top: .5rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(240, 245, 235, 0.75); }
@media (min-width: 1024px) { .hero-inner { padding: 12rem 0 8rem; } }

/* ------------ SECTIONS ------------ */
section { padding: 6rem 0; }
@media (min-width: 768px) { section { padding: 9rem 0; } }

.section-alt { background: #f0f3ec; }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }

.grid-12 { display: grid; grid-template-columns: 1fr; gap: 3.5rem; }
@media (min-width: 1024px) { .grid-12 { grid-template-columns: repeat(12, 1fr); align-items: start; } }
.col-5 { grid-column: auto; }
.col-7 { grid-column: auto; }
.col-4 { grid-column: auto; }
.col-8 { grid-column: auto; }
@media (min-width: 1024px) {
  .col-5 { grid-column: span 5; }
  .col-7 { grid-column: span 7; }
  .col-4 { grid-column: span 4; }
  .col-8 { grid-column: span 8; }
}

.h-italic { font-style: italic; color: var(--gold); font-weight: 500; }
.h-italic-soft { font-style: italic; color: var(--gold-soft); font-weight: 500; }

.prose p { margin-top: 1.5rem; color: var(--muted); line-height: 1.75; font-size: 1.02rem; }
.prose p:first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ------------ ESPECIALIDADES ------------ */
.areas-grid { margin-top: 4rem; display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }
.area-card { padding: 2rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; height: 100%; }
.area-card:nth-child(3n) { border-right: 1px solid var(--line); }
.area-card:last-child { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 1023px) { .area-card { border-right: 1px solid var(--line); } .area-card:last-child { border-bottom: 1px solid var(--line); } }
.area-num { font-size: .72rem; letter-spacing: .24em; color: var(--gold); }
.area-card h3 { margin-top: 1.5rem; font-size: 1.5rem; }
.area-card p { margin-top: 1rem; font-size: .875rem; color: var(--muted); line-height: 1.7; flex: 1; }
.area-link { margin-top: 2rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.area-link .arrow { transition: transform .3s ease; }
.area-card:hover .arrow { transform: translateX(4px); }

/* ------------ POR QUÉ ------------ */
.pillars { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.pillar-num { font-size: .72rem; letter-spacing: .24em; color: var(--gold); }
.pillar h3 { margin-top: .75rem; font-size: 1.25rem; }
.pillar p { margin-top: .75rem; font-size: .875rem; color: var(--muted); line-height: 1.7; }

.about-img { width: 100%; height: auto; object-fit: cover; box-shadow: var(--shadow-elevated); }

/* ------------ PROCESO ------------ */
.steps { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; list-style: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 1px solid rgba(240, 245, 235, 0.25); padding-top: 1.5rem; }
.step .num { font-family: var(--serif); font-size: 3rem; color: var(--gold-soft); }
.step h3 { margin-top: 1.5rem; font-size: 1.5rem; }
.step p { margin-top: 1rem; font-size: .875rem; color: rgba(240, 245, 235, 0.75); line-height: 1.7; }

/* ------------ EQUIPO ------------ */
.team { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.member { }
.member-photo { position: relative; overflow: hidden; aspect-ratio: 4/5; background: #eef1ea; }
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; filter: saturate(0.9) contrast(1.02); }
.member-photo:hover img { transform: scale(1.03); }
.member-role { margin-top: 1.5rem; font-size: .72rem; letter-spacing: .24em; color: var(--gold); }
.member h3 { margin-top: .5rem; font-size: 1.5rem; }
.member p { margin-top: .75rem; font-size: .875rem; color: var(--muted); line-height: 1.7; }

/* ------------ TESTIMONIOS ------------ */
.tst { max-width: 56rem; margin: 0 auto; text-align: center; }
.tst-quote { margin-top: 2.5rem; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.35; color: var(--ink); }
.tst-quote .mark { color: var(--gold); font-size: 1.5em; line-height: 0; }
.tst-author { margin-top: 2.5rem; }
.tst-name { font-family: var(--serif); font-size: 1.125rem; }
.tst-role { margin-top: .25rem; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.tst-nav { margin-top: 3rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.tst-nav button { padding: .5rem; transition: opacity .2s; }
.tst-nav button:hover { opacity: .6; }
.tst-dots { display: flex; gap: .5rem; }
.tst-dots button { width: 16px; height: 1px; background: var(--line); transition: all .3s; padding: 0; }
.tst-dots button.active { width: 40px; background: var(--ink); }

/* ------------ FAQ ------------ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; padding: 1.5rem 0; text-align: left; }
.faq-question span:first-child { font-family: var(--serif); font-size: 1.125rem; }
@media (min-width: 768px) { .faq-question span:first-child { font-size: 1.25rem; } }
.faq-icon { flex-shrink: 0; margin-top: .25rem; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 999px; color: var(--gold); transition: transform .3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s ease; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 3.5rem 1.5rem 0; color: var(--muted); line-height: 1.7; }

/* ------------ CONTACTO ------------ */
.contact-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { border-top: 1px solid rgba(240, 245, 235, 0.25); padding-top: 1rem; }
.contact-label { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }
.contact-value { margin-top: .5rem; font-family: var(--serif); font-size: 1.25rem; }
.contact-value a { transition: opacity .2s; }
.contact-value a:hover { opacity: .7; }

.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; color: var(--ivory); }
.form label { display: block; grid-column: span 2; }
.form label.half { grid-column: span 2; }
@media (min-width: 768px) { .form label.half { grid-column: span 1; } }
.form span.lbl { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }
.form input, .form textarea {
  margin-top: .5rem; width: 100%;
  background: transparent; border: 0;
  border-bottom: 1px solid rgba(240, 245, 235, 0.35);
  padding: .75rem 0; color: var(--ivory);
  font-family: inherit; font-size: 1rem;
  outline: none; transition: border-color .2s;
  border-radius: 0;
}
.form input:focus, .form textarea:focus { border-bottom-width: 2px; border-color: var(--gold-soft); }
.form textarea { resize: vertical; min-height: 120px; }
.honeypot { display: none !important; }
.form-footer { grid-column: span 2; margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; justify-content: space-between; }
@media (min-width: 640px) { .form-footer { flex-direction: row; align-items: center; } }
.form-note { font-size: .75rem; color: rgba(240, 245, 235, 0.65); }
.form-success { grid-column: span 2; font-size: .875rem; color: var(--gold-soft); display: none; }
.form.sent .form-success { display: block; }

/* ------------ MAPA ------------ */
.maps { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .maps { grid-template-columns: repeat(2, 1fr); } }
.map-wrap { position: relative; }
.map-label { position: absolute; top: 0; left: 0; z-index: 10; padding: .5rem 1rem; background: var(--ivory); color: var(--ink); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: grayscale(0.4) contrast(1.02); }

/* ------------ FOOTER ------------ */
.site-footer { background: var(--ink); color: var(--ivory); padding: 5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(240, 245, 235, 0.15); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { grid-column: span 1; max-width: 24rem; }
@media (min-width: 768px) { .footer-brand { grid-column: span 2; } }
.footer-brand .brand-txt { font-family: var(--serif); font-size: 1.5rem; }
.footer-brand .brand-txt .amp { color: var(--gold-soft); }
.footer-brand p { margin-top: 1rem; font-size: .875rem; color: rgba(240, 245, 235, 0.7); line-height: 1.7; }
.footer h4 { font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }
.footer ul { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.footer ul li { color: rgba(240, 245, 235, 0.85); }
.footer ul a:hover { opacity: .7; }
.footer-bottom { padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; font-size: .75rem; color: rgba(240, 245, 235, 0.6); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; } }

/* WhatsApp floating */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 999px;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.05); }
