/*
Theme Name: Soy Balzan — Marketing Landing
Theme URI: https://soybalzan.com
Author: Jean Balzan
Author URI: https://soybalzan.com
Description: Tema a medida, mobile-first, de una sola página para soybalzan.com. Incluye modo claro/oscuro, servicios para Personas y Empresas, FAQ, newsletter conectado a MailPoet y agenda de llamadas vía Cal.com.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soybalzan
*/


  :root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);

    --bg: #FFFFFF;
    --bg-soft: #F4F5F9;
    --surface: #FFFFFF;
    --text: #0E1116;
    --text-muted: #5B5F6E;
    --border: #E3E5EC;
    --accent: #0430B6;
    --accent-soft: #E8EBFB;
    --accent-contrast: #FFFFFF;
    --pure-black: #000000;
    --pure-black-soft: #131417;
    --on-black-text: #F5F6FA;
    --on-black-muted: #9BA0AC;
    --on-black-border: #232429;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Public Sans', sans-serif;
  }

  :root:not([data-theme="light"]) {
    @media (prefers-color-scheme: dark) {
      --bg: #000000;
      --bg-soft: #111214;
      --surface: #0B0C0E;
      --text: #F5F6FA;
      --text-muted: #9BA0AC;
      --border: #232429;
      --accent-soft: #10193F;
    }
  }

  :root[data-theme="dark"] {
    --bg: #000000;
    --bg-soft: #111214;
    --surface: #0B0C0E;
    --text: #F5F6FA;
    --text-muted: #9BA0AC;
    --border: #232429;
    --accent-soft: #10193F;
  }

  html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
  *, *::before, *::after { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background .25s ease, color .25s ease;
  }

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

  .wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
  }

  a { color: inherit; }

  /* ---------- NAV ---------- */
  .nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding-top: env(safe-area-inset-top, 0px);
  }
  .nav-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
  }
  .brand img { width: 42px; height: 42px; border-radius: 11px; }
  .nav-actions { display: flex; align-items: center; gap: 8px; }

  .theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .theme-toggle svg { width: 18px; height: 18px; }
  .theme-toggle .sun { display: none; }
  :root[data-theme="dark"] .theme-toggle .moon { display: none; }
  :root[data-theme="dark"] .theme-toggle .sun { display: block; }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: transform .12s ease, opacity .15s ease, background .15s ease;
  }
  .btn:active { transform: scale(0.98); }
  .btn-primary { background: var(--accent); color: #FFFFFF; }
  .btn-primary:hover { opacity: .92; }
  .btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
  .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
  .btn-sm { padding: 9px 14px; font-size: 13.5px; border-radius: 8px; }
  .btn-block { width: 100%; }

  /* ---------- HERO ---------- */
  .hero {
    padding: 56px 0 48px;
    text-align: center;
  }
  .avatar-ring {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    padding: 4px;
    border: 2px solid var(--accent);
    margin: 0 auto 20px;
  }
  .avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }
  .hero h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
  }
  .hero p {
    color: var(--text-muted);
    font-size: 16.5px;
    max-width: 420px;
    margin: 0 auto 28px;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    margin: 24px auto 0;
  }
  .location-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 22px;
  }
  .location-tag svg { width: 14px; height: 14px; }

  /* ---------- SECTION HEADERS ---------- */
  section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px;
  }
  .section-head p { color: var(--text-muted); margin: 0; font-size: 15px; }

  .divider { height: 1px; background: var(--border); border: none; margin: 0; }

  /* ---------- CTA DE CIERRE ---------- */
  .cta-close { text-align: center; }
  .cta-close h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px;
  }
  .cta-close p { color: var(--text-muted); font-size: 15px; margin: 0 0 24px; }
  .cta-close .hero-actions { margin: 0 auto; }

  /* ---------- PÁGINAS DE DETALLE DE SERVICIO ---------- */
  .service-hero { padding: 48px 0 8px; text-align: center; }
  .service-hero .card-tag { margin-bottom: 14px; }
  .service-hero h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
  }
  .service-hero p { color: var(--text-muted); font-size: 16px; max-width: 480px; margin: 0 auto; }

  .includes-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
  .includes-list li { position: relative; padding-left: 26px; color: var(--text-muted); font-size: 15px; }
  .includes-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 7px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
  }

  .steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
  .steps-list li { position: relative; padding-left: 44px; color: var(--text-muted); font-size: 15px; }
  .steps-list .step-num {
    position: absolute;
    left: 0; top: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
  }
  :root[data-theme="dark"] .steps-list .step-num { color: #8FA4FF; background: #16204A; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .steps-list .step-num { color: #8FA4FF; background: #16204A; }
  }
  .steps-list strong { color: var(--text); display: block; margin-bottom: 2px; }

  /* ---------- SERVICES ---------- */
  .tabs {
    display: inline-flex;
    padding: 4px;
    background: var(--bg-soft);
    border-radius: 12px;
    margin-bottom: 24px;
    width: 100%;
  }
  .tab {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: var(--font-body);
  }
  .tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--border); }

  .audience-intro { color: var(--text-muted); font-size: 14.5px; margin: 0 0 20px; }

  .cards { display: flex; flex-direction: column; gap: 14px; }
  .panel { display: none; }
  .panel.active { display: block; }

  .card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    background: var(--surface);
  }
  .card-tag {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
  }
  :root[data-theme="dark"] .card-tag { color: #8FA4FF; background: #16204A; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .card-tag { color: #8FA4FF; background: #16204A; }
  }
  .card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
  }
  .card p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin: 0 0 18px;
  }

  /* ---------- FAQ ---------- */
  .faq-item { border-bottom: 1px solid var(--border); }
  .faq-item:first-child { border-top: 1px solid var(--border); }
  .faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 0;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 16px;
  }
  .faq-q .icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    position: relative;
  }
  .faq-q .icon::before, .faq-q .icon::after {
    content: '';
    position: absolute;
    background: var(--accent);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
  }
  .faq-q .icon::before { width: 14px; height: 2px; }
  .faq-q .icon::after { width: 2px; height: 14px; transition: transform .2s ease; }
  .faq-item.open .icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .faq-a-inner {
    padding: 0 0 18px;
    color: var(--text-muted);
    font-size: 14.5px;
  }

  /* ---------- NEWSLETTER (black) ---------- */
  .newsletter {
    background: var(--pure-black);
    color: var(--on-black-text);
    padding: 56px 24px;
    border-radius: 0;
    margin: 0;
    width: 100%;
  }
  .newsletter-inner { max-width: 480px; margin: 0 auto; text-align: center; }
  .newsletter h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 0 0 10px;
    color: #FFFFFF;
  }
  .newsletter p { color: var(--on-black-muted); font-size: 14.5px; margin: 0 0 24px; }
  .nl-form { display: flex; flex-direction: column; gap: 10px; }
  .nl-form input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid var(--on-black-border);
    background: var(--pure-black-soft);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 15px;
  }
  .nl-form input::placeholder { color: #6B6E76; }
  .nl-note { font-size: 12px; color: #6B6E76; margin-top: 12px; }
  .nl-success { display: none; color: #8FE3A8; font-size: 14.5px; font-weight: 600; }

  /* ---------- SOBRE MI ---------- */
  .about-grid { display: flex; flex-direction: column; gap: 28px; }
  .about-photo {
    width: 180px;
    max-width: 60%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    border: 2px solid var(--accent);
    padding: 4px;
  }
  .about-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
  .about-text h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 0 0 14px;
    text-align: center;
  }
  .about-text p { color: var(--text-muted); font-size: 15px; margin: 0 0 14px; }
  .about-text { text-align: center; }
  .about-quote {
    margin: 20px 0;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    text-align: left;
  }

  /* ---------- FOOTER ---------- */
  footer { border-top: 1px solid var(--border); padding: 40px 0; }
  .footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
  .footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; }
  .footer-brand img { width: 64px; height: 64px; border-radius: 16px; }
  .social-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
  .social-row a {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
  }
  .social-row a:hover { border-color: var(--accent); color: var(--accent); }
  .social-row svg { width: 18px; height: 18px; }
  .footer-meta { font-size: 13px; color: var(--text-muted); }

  /* ---------- MODAL ---------- */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
    padding: 0;
  }
  .modal-overlay.open { display: flex; }
  .modal-sheet {
    background: var(--surface);
    color: var(--text);
    width: 100%;
    max-width: 480px;
    border-radius: 20px 20px 0 0;
    padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    max-height: 88vh;
    overflow-y: auto;
    animation: sheet-up .22s ease;
  }
  @media (min-width: 640px) {
    .modal-overlay { align-items: center; }
    .modal-sheet { border-radius: 20px; max-height: 80vh; }
  }
  @keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
  .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .modal-head h3 { font-family: var(--font-display); font-size: 18px; margin: 0; }
  .modal-close {
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
    background: transparent; color: var(--text); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .modal-step { display: none; }
  .modal-step.active { display: block; }
  .field { margin-bottom: 14px; }
  .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
  .field input[type="text"], .field input[type="email"] {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
    font-family: var(--font-body); font-size: 15px;
  }
  .checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 20px; }
  .checkbox-row input { margin-top: 3px; }
  .checkbox-row label { font-size: 13.5px; color: var(--text-muted); }
  .cal-embed {
    width: 100%;
    height: 480px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
  .cal-embed iframe { width: 100%; height: 100%; border: none; }
  .modal-fallback { text-align: center; font-size: 13.5px; color: var(--text-muted); margin-top: 12px; }

  @media (min-width: 720px) {
    .wrap { max-width: 720px; }
    .hero { padding: 80px 0 64px; }
    .hero h1 { font-size: 34px; }
    .hero-actions { flex-direction: row; max-width: none; justify-content: center; }
    .cards.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
    .cards.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }
    .about-grid { flex-direction: row; align-items: center; gap: 48px; text-align: left; }
    .about-photo { margin: 0; flex-shrink: 0; width: 220px; max-width: none; }
    .about-text, .about-text h2 { text-align: left; }
    footer .footer-inner { flex-direction: column; }
    .newsletter { margin: 0; border-radius: 0; }
  }
