/* =========================================================
   RODRÍGUEZ ABOGADOS — Hoja de estilos
   Paleta inspirada en el diseño de referencia (verde petróleo)
   ========================================================= */

:root {
  --primary: #284b73;        /* azul marino (paleta definitiva) */
  --primary-dark: #1c3757;
  --primary-light: #456a94;
  --primary-rgb: 40, 75, 115;
  --ink: #161b22;            /* casi negro azulado */
  --ink-soft: #333d49;
  --muted: #71808f;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-soft: #eef2f7;
  --white: #ffffff;
  --radius: 4px;
  --maxw: 1160px;
  --shadow: 0 18px 50px rgba(29, 35, 33, 0.10);
  --shadow-sm: 0 8px 24px rgba(29, 35, 33, 0.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   ESQUEMAS DE COLOR (DEMO) — se cambian con el selector.
   Para dejar uno fijo: pon esos valores en :root de arriba
   y borra el selector (ver comentario en index.html y main.js).
   ========================================================= */
/* Dorado / negro / blanco */
:root[data-theme="gold"] {
  --primary: #bf9b4a;
  --primary-dark: #9f7f34;
  --primary-light: #d8bd7c;
  --primary-rgb: 191, 155, 74;
  --ink: #141414;
  --ink-soft: #333333;
  --muted: #8a8577;
  --line: #ece7db;
  --bg-soft: #f7f3ea;
}
/* Vinotinto / blanco */
:root[data-theme="wine"] {
  --primary: #7a2233;
  --primary-dark: #5c1926;
  --primary-light: #9c3547;
  --primary-rgb: 122, 34, 51;
  --ink: #1e1417;
  --ink-soft: #3c2b30;
  --muted: #8a7377;
  --line: #ece0e2;
  --bg-soft: #f8f0f1;
}
/* Azul marino / blanco (definido por Claude) */
:root[data-theme="navy"] {
  --primary: #284b73;
  --primary-dark: #1c3757;
  --primary-light: #456a94;
  --primary-rgb: 40, 75, 115;
  --ink: #161b22;
  --ink-soft: #333d49;
  --muted: #71808f;
  --line: #e2e7ee;
  --bg-soft: #eef2f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name {
  font-family: "Poppins", "Inter", sans-serif;
  line-height: 1.15;
  color: var(--ink);
  font-weight: 600;
}

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ================= BOTONES ================= */
.btn {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 15px 34px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.28s var(--ease);
  border: 1.5px solid var(--primary);
}
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-solid { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-solid:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.btn-on-dark { background: #fff; color: var(--primary); border-color: #fff; }
.btn-on-dark:hover { background: transparent; color: #fff; border-color: #fff; }

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; }
.brand-logo { max-height: 44px; width: auto; }
.brand-fallback { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  color: var(--primary);
  font-weight: 500;
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s var(--ease);
}
.main-nav a:not(.nav-cta):hover { color: var(--primary); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  letter-spacing: 0.08em;
}
.nav-cta:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= DECORACIÓN ================= */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  z-index: 0;
  opacity: 0.9;
}
.deco-circle--top {
  width: 230px; height: 230px;
  top: -90px; left: -80px;
}
.deco-circle--bottom {
  width: 280px; height: 280px;
  bottom: -120px; right: -110px;
  background: none;
  border: 46px solid var(--primary);
  opacity: 0.85;
}

/* ================= HERO ================= */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { position: relative; }
.hero-watermark {
  position: absolute;
  top: -40px; left: -18px;
  font-size: 190px;
  font-family: "Poppins", serif;
  color: var(--bg-soft);
  z-index: -1;
  line-height: 1;
  font-weight: 700;
  user-select: none;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--primary); }
.hero-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-brand { display: flex; justify-content: center; }
.hero-logo-slot {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-slot img { max-height: 100%; width: auto; object-fit: contain; }
.hero-logo-slot .logo-placeholder { display: none; }
.hero-logo-slot.is-empty img { display: none; }
.hero-logo-slot.is-empty .logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%; height: 100%;
  border: 2px dashed var(--primary-light);
  border-radius: 10px;
  background: var(--bg-soft);
  text-align: center;
  padding: 20px;
}
.lp-mark {
  font-family: "Poppins", sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
}
.lp-name {
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.32em;
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 600;
}
.lp-note { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

/* ================= SOLUCIÓN INTEGRADA ================= */
.solution { position: relative; padding: 30px 0 70px; }
.solution-band {
  position: absolute;
  top: 60px; left: 0;
  width: 100%; height: 210px;
  background: var(--primary);
  z-index: 0;
}
.solution-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 60px;
  align-items: center;
}
.solution-photo { position: relative; padding: 22px; }
.solution-photo::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 78%; height: 100%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  z-index: 0;
}
.solution-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 2px;
}
.solution-photo-badge {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--primary);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px 26px;
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
}
.solution-copy { display: flex; flex-direction: column; gap: 40px; }
.solution-block h2 { font-size: 1.7rem; margin-bottom: 12px; }
.solution-block p { color: var(--muted); max-width: 420px; margin-bottom: 20px; }
.solution-block--light { color: #fff; }
.solution-block--light h2 { color: #fff; }
.solution-block--light p { color: rgba(255, 255, 255, 0.88); margin-bottom: 0; }

/* ================= EQUIPO ================= */
.team { position: relative; min-height: 460px; display: flex; align-items: center; }
.team-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}
.team-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.86) 0%, rgba(var(--primary-rgb), 0.58) 60%, rgba(var(--primary-rgb), 0.28) 100%);
}
.team-inner { position: relative; z-index: 1; color: #fff; padding: 60px 0; }
.team-inner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.team-inner p { max-width: 440px; margin-bottom: 28px; color: rgba(255,255,255,0.9); }

/* ================= VALORES ================= */
.values { padding: 84px 0; background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.value { text-align: center; padding: 10px; }
.value-icon {
  width: 66px; height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1.5px solid var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  transition: all 0.3s var(--ease);
}
.value-icon svg { width: 30px; height: 30px; }
.value:hover .value-icon { background: var(--primary); color: #fff; transform: translateY(-4px); }
.value h3 { font-size: 1.05rem; margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 0.9rem; }

/* ================= NUESTRO EQUIPO (MIEMBROS) ================= */
.team-members { padding: 88px 0; background: var(--bg); }
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.member {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(29, 35, 33, 0.20);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.member:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(29, 35, 33, 0.28); }
.member-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease);
}
.member:hover .member-photo img { transform: scale(1.04); }
/* Destello diagonal verde al pasar el mouse */
.member-photo::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -90%;
  width: 55%;
  height: 140%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 40%,
    rgba(var(--primary-rgb), 0.55) 50%,
    rgba(255, 255, 255, 0.12) 60%,
    transparent 100%
  );
  transform: skewX(-18deg);
  z-index: 2;
  pointer-events: none;
  transition: left 0.75s var(--ease);
}
.member:hover .member-photo::before { left: 150%; }
.member-photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--primary);
}
.member h3 { font-size: 1.2rem; margin: 24px 22px 4px; }
.member-role {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}
.member p {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 26px 30px;
  margin: 0;
}

/* ================= ¿QUÉ NECESITAS? ================= */
.need { background: var(--primary); color: #fff; padding: 70px 0; text-align: center; }
.need h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 14px; }
.need > .container > p { max-width: 620px; margin: 0 auto 8px; color: rgba(255,255,255,0.88); }
.need-rotator {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem !important;
  font-weight: 600;
  margin: 22px auto 30px !important;
  color: #fff !important;
  min-height: 40px;
  transition: opacity 0.4s;
}

/* ================= ÁREAS DE PRÁCTICA ================= */
.areas { padding: 88px 0; background: var(--bg-soft); }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.area-card { padding: 34px 26px; }
.area-card {
  background: #fff;
  border-radius: 8px;
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.area-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-top-color: var(--primary);
}
.area-card--featured { border-top-color: var(--primary); }
.area-icon {
  width: 58px; height: 58px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.area-card--featured .area-icon { background: var(--primary); color: #fff; }
.area-icon svg { width: 28px; height: 28px; }
.area-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.area-card > p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.area-list { list-style: none; margin-bottom: 24px; }
.area-list li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.area-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.area-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: gap 0.2s;
}
.area-link:hover { color: var(--primary-dark); letter-spacing: 0.06em; }

/* ================= CIERRE / CTA ================= */
.closing { padding: 90px 0; background: var(--bg); }
.closing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.closing-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 16px; }
.closing-copy p { color: var(--muted); margin-bottom: 28px; max-width: 400px; }
.closing-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

/* ================= NUESTROS CLIENTES ================= */
.clients { padding: 88px 0; background: var(--bg-soft); }
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.client-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--primary);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.client-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.client-card .stars { color: #e6a935; letter-spacing: 2px; font-size: 1rem; margin-bottom: 14px; }
.client-card blockquote {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 22px;
  flex: 1;
}
.client-card figcaption { display: flex; align-items: center; gap: 12px; }
.client-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  flex: none;
}
.client-meta { display: flex; flex-direction: column; line-height: 1.3; }
.client-meta strong { font-family: "Poppins", sans-serif; color: var(--ink); font-size: 0.95rem; }
.client-meta span { font-size: 0.78rem; color: var(--muted); }

/* ================= CONTACTO ================= */
.contact { position: relative; padding: 90px 0; background: var(--bg-soft); overflow: hidden; }
.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 14px; }
.contact-info > p { color: var(--muted); margin-bottom: 28px; }
.contact-list { list-style: none; }
.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.contact-list li strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-list a:hover { color: var(--primary); }
.contact-list .wa-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
}
.contact-list .wa-link:hover { color: #1ebe57; }
.wa-icon { width: 22px; height: 22px; color: #25D366; flex: none; }

.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  gap: 7px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.contact-form textarea { resize: vertical; }
.form-check {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  font-size: 0.8rem !important;
  color: var(--muted);
  font-weight: 400 !important;
}
.form-check input { width: auto; }
.form-check a { color: var(--primary); text-decoration: underline; }
.contact-form .btn { margin-top: 6px; border: none; cursor: pointer; }

/* ================= FOOTER ================= */
.site-footer {
  position: relative;
  color: rgba(255,255,255,0.8);
  background-image:
    linear-gradient(rgba(17, 20, 19, 0.80), rgba(10, 12, 11, 0.96)),
    url("../img/catedral.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 100px 24px 80px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; line-height: 1; max-width: 420px; }
.footer-brand .brand-name { color: #fff; font-size: 1.5rem; }
.footer-brand .brand-sub { color: var(--primary-light); }
.footer-tagline {
  margin-top: 18px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 20px;
  border-radius: 40px;
  background: #25D366;
  color: #0a2b1a;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  width: fit-content;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.footer-wa svg { width: 20px; height: 20px; }
.footer-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35); }
.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a, .footer-legal a { font-size: 0.9rem; transition: color 0.2s; color: rgba(255,255,255,0.8); }
.footer-nav a:hover, .footer-legal a:hover { color: #fff; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.15);
  background: rgba(10, 18, 17, 0.55);
  padding: 22px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  text-align: center;
}

/* ================= ANIMACIÓN REVEAL =================
   Solo se oculta si el JS está activo (clase .js en <html>).
   Sin JavaScript, el contenido se muestra siempre. */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .hero-inner,
  .solution-inner,
  .closing-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-brand { order: -1; }
  .hero-logo-slot { max-width: 320px; margin: 0 auto; }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-band { height: 160px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 74px; right: 0;
    width: min(78vw, 300px);
    height: calc(100vh - 74px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 28px 30px;
    box-shadow: -12px 0 40px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.32s var(--ease);
    border-left: 1px solid var(--line);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 12px 0; font-size: 1rem; }
  .main-nav a:not(.nav-cta) { border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; text-align: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .solution-photo img { height: 300px; }
  .hero { padding: 50px 0 60px; }
}

@media (max-width: 620px) {
  .areas-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .clients-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .contact-form { padding: 24px; }
  .hero-watermark { font-size: 130px; }
}

/* Accesibilidad: respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   SELECTOR DE ESQUEMA DE COLOR (DEMO / PRODUCCIÓN)
   Widget temporal para mostrar paletas al cliente.
   PARA QUITARLO: borra el bloque .theme-switcher del index.html,
   el bloque de temas en el JS, y estas reglas.
   ========================================================= */
.theme-switcher {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 300;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.16);
  padding: 12px 14px;
  font-family: "Poppins", "Inter", sans-serif;
  max-width: calc(100vw - 32px);
}
.theme-switcher .ts-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8f8d;
  font-weight: 600;
  margin-bottom: 9px;
}
.theme-switcher .ts-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-switcher .ts-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid #e2e6e5;
  background: #fff;
  border-radius: 40px;
  padding: 7px 13px 7px 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2a2f2e;
  transition: border-color 0.2s, transform 0.15s;
}
.theme-switcher .ts-btn:hover { transform: translateY(-1px); }
.theme-switcher .ts-btn .sw {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7);
  flex: none;
}
.theme-switcher .ts-btn.is-active { border-color: var(--sw); box-shadow: 0 0 0 2px var(--sw); }
.theme-switcher .ts-close {
  position: absolute;
  top: -9px; right: -9px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: #2a2f2e;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
@media (max-width: 720px) {
  .theme-switcher { left: 10px; bottom: 10px; padding: 10px; }
  .theme-switcher .ts-btn { font-size: 0.72rem; padding: 6px 10px 6px 7px; }
}
