/* =========================================================
   Saavedra & Zúñiga · saavedrazuniga.cl
   Dark mode elegante con acentos de marca
   ========================================================= */

:root {
  /* Acentos de marca — unificados con las propuestas de administracion */
  --brand-violet: #3A18D6;
  --brand-violet-light: #5B3EE8;
  --brand-violet-dark: #22087F;
  --brand-magenta: #E8137F;
  --brand-orange: #F59A3C;
  --brand-blue: #2E86F0;

  /* Escala dark mode */
  --ink-1000: #050507;
  --ink-950: #0A0A10;
  --ink-900: #101019;
  --ink-850: #161624;
  --ink-800: #1E1E2D;
  --ink-700: #2A2A3D;
  --ink-600: #3F3F55;
  --ink-500: #6A6A80;
  --ink-400: #8E8EA3;
  --ink-300: #B5B5C5;
  --ink-200: #DADAE3;
  --ink-100: #EEEEF3;
  --ink-50:  #F7F7FB;
  --white:   #FFFFFF;

  /* Superficies oscuras — tinta de marca, no negro neutro.
     Se mantienen separadas de --ink-* porque esa escala
     tambien define el color del texto. */
  --surface-dark:   #14113A;
  --surface-darker: #0B0920;
  --surface-deep:   #1B1848;

  /* Semánticos */
  --bg-page: var(--white);
  --bg-soft: var(--ink-50);
  --bg-dark: var(--surface-dark);
  --bg-darker: var(--surface-darker);
  --bg-graphite: var(--surface-deep);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --border: var(--ink-200);
  --border-dark: rgba(255,255,255,0.08);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-violet); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.78); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-violet);
  margin-bottom: 1rem;
}
/* Sobre los degradados el violeta desaparece: se aclara. */
.hero .eyebrow,
.page-hero .eyebrow { color: rgba(255,255,255,0.82); }
.section--dark .eyebrow {
  color: transparent;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
}

.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 60ch; }

/* HEADER */
.site-header {
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  gap: 1.5rem;
}
.site-logo {
  display: inline-block;
  line-height: 0;
}
.site-logo img {
  height: 58px;
  width: auto;
}
@media (max-width: 768px) {
  .header-bar { padding: 1rem 0; }
  .site-logo img { height: 40px; }
}

.nav-primary ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2rem;
}
.nav-primary a {
  color: var(--ink-600);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.nav-primary a:hover { color: var(--brand-violet); }
.nav-primary a.active { color: var(--text); }
.nav-primary a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-magenta), var(--brand-orange));
  border-radius: 2px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-violet);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s, background 0.2s;
}
.header-cta:hover { background: var(--brand-violet-dark); text-decoration: none; transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  width: 44px; height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-primary, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.menu-open .nav-primary {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--gutter) 1.5rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(20,17,58,0.12);
  }
  .site-header.menu-open .nav-primary ul { flex-direction: column; gap: 0.25rem; }
  .site-header.menu-open .nav-primary a { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .site-header.menu-open .nav-primary li:last-child a { border-bottom: 0; }
  .site-header.menu-open .nav-primary a.active::after { display: none; }
  /* En mobile el botón "Contactar" del header se oculta cuando el menú está abierto.
     Funcionalidad cubierta por el item "Contacto" del menú y el botón flotante de WhatsApp. */
  .site-header.menu-open .header-cta { display: none; }
}

.topbar {
  background: var(--bg-soft);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--ink-600); }
.topbar a:hover { color: var(--brand-violet); }
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.minvu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245,154,60,0.16);
  color: #A85A12;
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.minvu-badge svg { width: 12px; height: 12px; }

@media (max-width: 600px) {
  .topbar-right { display: none; }
}

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(150deg,
              var(--brand-violet-dark) 0%,
              var(--brand-violet) 42%,
              #8B1FC4 72%,
              var(--brand-magenta) 100%);
  color: var(--white);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(5rem, 12vw, 9rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -140px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,154,60,0.45) 0%, transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -160px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,134,240,0.40) 0%, transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 .accent {
  color: transparent;
  background: linear-gradient(90deg, #FFC98A 0%, #FF9DC8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero p {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  max-width: 62ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.22);
  position: relative;
  z-index: 1;
}
.hero-stat .num {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-stat .label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.4rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--brand-magenta); color: var(--white); box-shadow: 0 4px 14px rgba(232,19,127,0.32); }
.btn-primary:hover { background: #C40F6A; }
/* Sobre el degradado del hero el boton primario se invierte a blanco,
   igual que en las propuestas de administracion. */
.hero .btn-primary { background: var(--white); color: var(--brand-violet-dark); box-shadow: 0 4px 18px rgba(20,17,58,0.22); }
.hero .btn-primary:hover { background: var(--ink-100); }
.hero .btn-secondary { border-color: rgba(255,255,255,0.45); }
.hero .btn-secondary:hover { background: rgba(255,255,255,0.14); }
.btn-secondary { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn-light { background: var(--white); color: var(--ink-900); }
.btn-light:hover { background: var(--ink-100); }
.btn-violet { background: var(--brand-violet); color: var(--white); }
.btn-violet:hover { background: var(--brand-violet-dark); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebe57; }

.section-header { max-width: 720px; margin-bottom: 3rem; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; margin-top: 0.75rem; }

.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--brand-violet);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,15,25,0.08);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-magenta) 100%);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.97rem; }
.card-soft { background: var(--bg-soft); border: 1px solid transparent; }
.card-soft:hover { border-color: var(--border); }

.feature {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.feature:last-child { border-bottom: 0; }
.feature .num {
  flex: 0 0 auto;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-magenta);
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.feature p { color: var(--text-muted); font-size: 0.97rem; margin: 0; }

.portafolio-stats {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.stat-block .num {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--brand-violet);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-block .num .plus { color: var(--brand-magenta); }
.stat-block .label {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.confidentiality-note {
  background: var(--bg-soft);
  border-left: 4px solid var(--brand-violet);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 2rem;
}
.confidentiality-note strong { color: var(--text); }

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-violet);
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Principios (4 valores) */
.principios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.principio {
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  border-top: 3px solid var(--brand-violet);
}
.principio:nth-child(2) { border-top-color: var(--brand-magenta); }
.principio:nth-child(3) { border-top-color: var(--brand-orange); }
.principio:nth-child(4) { border-top-color: var(--brand-blue); }
.principio h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.principio p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.cta-strip {
  background: linear-gradient(135deg, var(--brand-violet-dark) 0%, var(--brand-violet) 100%);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%; height: 100%;
  background: radial-gradient(circle at right, rgba(245,134,52,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.cta-strip::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 35%; height: 100%;
  background: radial-gradient(circle at left, rgba(237,26,107,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.cta-strip-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.cta-strip h2 { color: var(--white); margin: 0; max-width: 26ch; }
.cta-strip p { color: rgba(255,255,255,0.7); margin: 0.5rem 0 0; }

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.team-card:hover { border-color: var(--brand-violet); transform: translateY(-2px); }
.team-card .role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-violet);
  background: rgba(59,46,232,0.08);
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.team-card .title { font-size: 0.92rem; color: var(--text-muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.contact-info-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-list li:last-child { border-bottom: 0; }
.contact-info-list .icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  color: var(--brand-violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-info-list .icon svg { width: 18px; height: 18px; }
.contact-info-list .label { font-size: 0.82rem; color: var(--text-muted); }
.contact-info-list .value { font-weight: 500; }
.contact-info-list a { color: var(--text); }

.contact-form-wrap {
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.contact-form-wrap label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font: inherit;
  background: var(--white);
  margin-bottom: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
  outline: 0;
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px rgba(59,46,232,0.15);
}
.contact-form-wrap textarea { resize: vertical; min-height: 110px; }

/* FOOTER con logo vertical */
.site-footer {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img {
  width: 200px;
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  display: block;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.float-wa {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  z-index: 90;
  transition: transform 0.2s;
}
.float-wa:hover { transform: scale(1.08); text-decoration: none; }
.float-wa svg { width: 28px; height: 28px; }

.page-hero {
  background: linear-gradient(150deg,
              var(--brand-violet-dark) 0%,
              var(--brand-violet) 48%,
              #8B1FC4 78%,
              var(--brand-magenta) 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -120px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,154,60,0.40) 0%, transparent 62%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 60ch; font-size: 1.1rem; }
.crumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.crumb a { color: rgba(255,255,255,0.78); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero p { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ============== AGREGADOS v4 ============== */

/* Logo desktop / mobile responsive */
.site-logo .logo-mobile { display: none; }
.site-logo .logo-desktop { display: block; height: 58px; width: auto; }
@media (max-width: 768px) {
  .site-logo .logo-desktop { display: none; }
  .site-logo .logo-mobile {
    display: block;
    height: 40px;
    width: auto;
  }
}

/* Founder block (Quiénes Somos) */
.founder-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-deep) 100%);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.founder-block::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 50%; height: 200%;
  background: radial-gradient(ellipse, rgba(245,154,60,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.founder-photo {
  position: relative;
  z-index: 1;
}
.founder-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 3px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.founder-text {
  position: relative;
  z-index: 1;
}
.founder-text .eyebrow {
  color: transparent;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
}
.founder-quote {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  font-weight: 500;
  margin: 1rem 0 1.5rem;
  color: rgba(255,255,255,0.95);
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--brand-magenta);
  font-style: italic;
}
.founder-name {
  margin: 0;
}
.founder-name strong {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: normal;
}
.founder-name span {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .founder-block {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }
  .founder-photo {
    max-width: 220px;
    margin: 0 auto;
  }
  .founder-quote {
    text-align: left;
    padding-left: 1rem;
  }
}

/* Team photos en cards */
.team-card {
  text-align: left;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
  background: var(--bg-soft);
}
.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-magenta) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar span {
  color: var(--white);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

/* Tipos de comunidad */
.tipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.tipo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.tipo-card strong {
  color: var(--ink-900);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}
.tipo-card span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Bloques técnicos (página servicios) */
.tech-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
}
.tech-block h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--brand-violet);
}
.tech-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tech-block ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}
.tech-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-magenta);
}
.tech-block ul li strong {
  color: var(--brand-violet);
  font-weight: 600;
}

/* No call center banner (página contacto) */
.no-callcenter-banner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(59,46,232,0.04) 0%, rgba(237,26,107,0.04) 100%);
  border: 1px solid rgba(59,46,232,0.15);
  border-left: 4px solid var(--brand-violet);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
}
.no-callcenter-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-violet);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.no-callcenter-icon svg { width: 22px; height: 22px; }

/* Contact team cards (página contacto) */
.contact-team {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-team-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  align-items: center;
}
.contact-team-card:hover {
  border-color: var(--brand-violet);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,15,25,0.08);
  text-decoration: none;
}
.contact-team-photo {
  flex: 0 0 auto;
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
}
.contact-team-info {
  flex: 1;
  min-width: 0;
}
.contact-team-info strong {
  display: block;
  color: var(--ink-900);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.contact-team-role {
  display: block;
  color: var(--brand-violet);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.contact-team-purpose {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}
.contact-team-phone {
  display: block;
  color: var(--ink-900);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact selector modal (botón flotante) */
.contact-selector {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.contact-selector.is-open {
  display: flex;
}
.contact-selector-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,7,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}
.contact-selector-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 2rem 1.75rem 1.75rem;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
}
@media (min-width: 600px) {
  .contact-selector { align-items: center; }
  .contact-selector-panel {
    border-radius: var(--r-lg);
    margin-bottom: 0;
  }
}
.contact-selector-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.contact-selector-close:hover { background: var(--ink-200); color: var(--ink-900); }
.contact-selector-close svg { width: 18px; height: 18px; }
.contact-selector-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  padding-right: 2.5rem;
}
.contact-selector-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.contact-option {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.contact-option:hover {
  border-color: var(--brand-violet);
  background: rgba(59,46,232,0.03);
  text-decoration: none;
}
.contact-option:last-child { margin-bottom: 0; }
.contact-option-photo {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.contact-option-info {
  flex: 1;
  min-width: 0;
}
.contact-option-info strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink-900);
  margin-bottom: 0.1rem;
}
.contact-option-role {
  display: block;
  font-size: 0.78rem;
  color: var(--brand-violet);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.contact-option-purpose {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.contact-option-cta {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-option-cta svg { width: 18px; height: 18px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Float WA es ahora un button, no un link */
.float-wa {
  border: 0;
  cursor: pointer;
}

