:root {
      --orange: #f05a1a;
      --orange-dark: #d94b11;
      --green: #2f7d32;
      --dark: #39393F;
      --muted: #667085;
      --light: #fff7f1;
      --soft: #f7f8f5;
      --white: #ffffff;
      --border: #e7e7e2;
      --shadow: 0 20px 45px rgba(31,41,51,.10);
      --radius: 28px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      color: var(--dark);
      background: #fffdf9;
      line-height: 1.55;
    }

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

    .container {
      width: min(1160px, calc(100% - 40px));
      margin: 0 auto;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(231,231,226,.8);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 82px;
      gap: 24px;
      position: relative;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      color: var(--orange);
      letter-spacing: -.03em;
      font-size: 1.4rem;
    }

    .logo img {
      width: 58px;
      height: auto;
      display: block;
    }

    .menu {
      display: flex;
      align-items: center;
      gap: 22px;
      font-size: .94rem;
      font-weight: 600;
      color: var(--dark);
    }

    .menu a:hover { color: var(--orange); }

    .nav-cta {
      background: var(--orange);
      color: white;
      padding: 12px 18px;
      border-radius: 999px;
      font-weight: 800;
      box-shadow: 0 10px 20px rgba(240,90,26,.18);
    }

    .portal-clientes {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border: 1px solid rgba(240,90,26,.24);
      border-radius: 999px;
      color: var(--orange-dark);
      background: #fff8f3;
      white-space: nowrap;
    }

    .portal-clientes img {
      width: 18px;
      height: 18px;
      object-fit: contain;
      filter: brightness(0) saturate(100%) invert(21%) sepia(8%) saturate(629%) hue-rotate(202deg) brightness(94%) contrast(91%);
    }

    .menu-toggle {
      display: none;
      width: 44px;
      height: 44px;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fff;
      color: var(--dark);
      cursor: pointer;
    }

    .menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; transition: transform .2s ease; }
    .menu-toggle .icon-close { display: none; }
    .menu-toggle.is-open .icon-menu { display: none; }
    .menu-toggle.is-open .icon-close { display: block; }

    .external-blog {
      color: var(--dark);
      white-space: nowrap;
    }

    .hero {
      position: relative;
      overflow: hidden;
      padding: 82px 0 68px;
      background:
        radial-gradient(circle at top left, rgba(240,90,26,.16), transparent 36%),
        linear-gradient(135deg, #fff7ef 0%, #ffffff 62%);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.02fr .98fr;
      align-items: center;
      gap: 54px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 14px;
      border-radius: 999px;
      background: rgba(240,90,26,.10);
      color: var(--orange-dark);
      font-weight: 800;
      font-size: .85rem;
      margin-bottom: 20px;
    }

    .eyebrow::before {
      content: "";
      width: 9px;
      height: 9px;
      background: var(--green);
      border-radius: 50%;
    }

    h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }

    h1 {
      font-size: clamp(2.45rem, 6vw, 5.2rem);
      margin: 0 0 22px;
      max-width: 790px;
    }

    h1 span { color: var(--orange); }

    .hero p {
      font-size: clamp(1.05rem, 2vw, 1.25rem);
      color: #475467;
      max-width: 650px;
      margin: 0 0 34px;
    }

    .buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      align-items: center;
      margin-bottom: 36px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 15px 22px;
      border-radius: 16px;
      font-weight: 800;
      border: 1px solid transparent;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .btn:hover { transform: translateY(-2px); }

    .btn-primary {
      color: #fff;
      background: var(--orange);
      box-shadow: 0 15px 26px rgba(240,90,26,.22);
    }

    .btn-secondary {
      color: var(--dark);
      background: #fff;
      border-color: var(--border);
    }

    .hero-points {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      max-width: 650px;
    }

    .point {
      background: rgba(255,255,255,.78);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 14px;
      font-weight: 700;
      color: var(--dark);
    }

    .hero-visual {
      position: relative;
    }

    .hero-card {
      background: #fff;
      border-radius: 34px;
      box-shadow: var(--shadow);
      padding: 18px;
      transform: rotate(1deg);
      border: 1px solid rgba(255,255,255,.8);
    }

    .hero-card img {
      width: 100%;
      display: block;
      border-radius: 28px;
      background: #fff;
    }

    .floating {
      position: absolute;
      left: -24px;
      bottom: 24px;
      background: #fff;
      border-radius: 22px;
      padding: 16px 18px;
      box-shadow: var(--shadow);
      max-width: 220px;
      font-weight: 800;
    }

    .floating small {
      display: block;
      color: var(--muted);
      font-weight: 600;
      margin-top: 4px;
    }

    section {
      padding: 82px 0;
    }

    .section-title {
      max-width: 820px;
      margin-bottom: 42px;
    }

    .section-title.center {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
    }

    .section-title h2 {
      font-size: clamp(2rem, 4vw, 3.4rem);
      margin: 0 0 16px;
    }

    .section-title p {
      margin: 0;
      color: var(--muted);
      font-size: 1.08rem;
    }

    .about {
      background: #fff;
    }

    .split {
      display: grid;
      grid-template-columns: .95fr 1.05fr;
      gap: 48px;
      align-items: center;
    }

    .image-stack {
      position: relative;
      min-height: 480px;
    }

    .photo-main, .photo-small {
      border-radius: 32px;
      overflow: hidden;
      box-shadow: var(--shadow);
      border: 10px solid white;
      background: white;
    }

    .photo-main {
      width: 82%;
      height: 390px;
    }

    .photo-main img, .photo-small img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .photo-small {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 52%;
      height: 235px;
    }

    .text-block h3 {
      font-size: 1.45rem;
      margin: 0 0 12px;
    }

    .text-block p {
      color: #54616f;
      margin: 0 0 20px;
    }

    .badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 20px;
    }

    .badge {
      background: var(--light);
      color: var(--orange-dark);
      border: 1px solid rgba(240,90,26,.18);
      padding: 9px 12px;
      border-radius: 999px;
      font-size: .9rem;
      font-weight: 800;
    }

    .services {
      background: var(--soft);
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }

    .card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: 0 12px 32px rgba(31,41,51,.06);
    }

    .service-image {
      width: 100%;
      height: 190px;
      display: block;
      object-fit: cover;
    }

    .card-content { padding: 0 30px 30px; }

    .icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: #fff;
      background: var(--orange);
      font-size: 1.55rem;
      margin: -24px 0 18px;
      position: relative;
      z-index: 1;
      box-shadow: 0 7px 14px rgba(240,90,26,.18);
    }

    .icon img {
      width: 21px;
      height: 21px;
      object-fit: contain;
    }

    .card h3 {
      font-size: 1.45rem;
      margin: 0 0 12px;
    }

    .card p {
      color: #586675;
      margin: 0;
    }

    .clients {
      background: #fff;
    }

    .client-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .client {
      min-height: 136px;
      background: linear-gradient(180deg, #fff, #fff8f3);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      font-weight: 800;
    }

    .client span {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      background: #fff0e7;
      color: var(--orange-dark);
      border: 1px solid rgba(240,90,26,.16);
      font-size: 1.35rem;
    }

    .client span img {
      width: 31px;
      height: 31px;
      object-fit: contain;
    }

    .quote-strip {
      margin-top: 34px;
      background: var(--dark);
      color: #fff;
      border-radius: 32px;
      padding: 34px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 24px;
      align-items: center;
    }

    .quote-strip p {
      margin: 0;
      max-width: 760px;
      color: rgba(255,255,255,.82);
    }

    .faq { background: #fffdf9; }

    .faq-list {
      display: grid;
      gap: 12px;
      max-width: 920px;
      margin: 0 auto;
    }

    .faq details {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 0 24px;
      box-shadow: 0 8px 24px rgba(57,57,63,.05);
      transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }

    .faq details:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(57,57,63,.08); }
    .faq details[open] { border-color: rgba(240,90,26,.55); box-shadow: 0 14px 30px rgba(240,90,26,.10); }
    .faq summary {
      cursor: pointer;
      font-weight: 800;
      font-size: 1.05rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      list-style: none;
      padding: 22px 0;
    }
    .faq summary::-webkit-details-marker { display: none; }
    .faq summary::after { content: "+"; flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff3eb; color: var(--orange-dark); font-size: 1.45rem; font-weight: 500; line-height: 1; }
    .faq details[open] summary::after { content: "−"; color: #fff; background: var(--orange); }
    .faq details p {
      color: #596675;
      margin: -2px 0 22px;
      max-width: 76ch;
    }

    .contact {
      background:
        radial-gradient(circle at bottom right, rgba(240,90,26,.15), transparent 32%),
        #fff;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 34px;
      align-items: start;
    }

    .contact-info {
      background: var(--dark);
      color: #fff;
      border-radius: 32px;
      padding: 34px;
      position: sticky;
      top: 110px;
    }

    .contact-info h2 {
      margin: 0 0 14px;
      font-size: 2.3rem;
    }

    .contact-info p { color: rgba(255,255,255,.78); }

    .contact-map {
      margin-top: 22px;
      overflow: hidden;
      border-radius: 20px;
      border: 1px solid rgba(255,255,255,.18);
    }

    .contact-map iframe {
      display: block;
      width: 100%;
      height: 235px;
      border: 0;
    }

    .contact-line {
      padding: 16px 0;
      border-top: 1px solid rgba(255,255,255,.12);
    }

    .contact-line strong {
      display: block;
      margin-bottom: 5px;
      color: #fff;
    }

    .whatsapp-link {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 16px;
      width: fit-content;
      padding: 12px 16px;
      border: 1px solid rgba(255,255,255,.36);
      border-radius: 12px;
      background: transparent;
      color: #fff;
      font-weight: 800;
      box-shadow: none;
      transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    }
    /* Sustituye este hueco por tu icono oficial de WhatsApp cuando lo subas. */
    .whatsapp-icon-slot { width: 22px; height: 22px; flex: 0 0 22px; border: 1.5px dashed rgba(255,255,255,.68); border-radius: 6px; }
    .whatsapp-link:hover { background: rgba(255,255,255,.10); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,.12); }

    form {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 32px;
      padding: 30px;
      box-shadow: var(--shadow);
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    label {
      display: block;
      font-size: .9rem;
      color: var(--dark);
      font-weight: 800;
      margin-bottom: 7px;
    }

    input, select, textarea {
      width: 100%;
      border: 1px solid #d8ded6;
      border-radius: 15px;
      padding: 14px 14px;
      font: inherit;
      background: #fff;
      outline: none;
    }

    input:focus, select:focus, textarea:focus {
      border-color: var(--orange);
      box-shadow: 0 0 0 4px rgba(240,90,26,.12);
    }

    textarea {
      min-height: 150px;
      resize: vertical;
    }

    .full { grid-column: 1 / -1; }

    .submit {
      border: 0;
      margin-top: 18px;
      cursor: pointer;
      font: inherit;
      width: 100%;
    }

    footer {
      background: var(--dark);
      color: rgba(255,255,255,.72);
      padding: 34px 0;
    }

    .footer-grid {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      align-items: center;
      flex-wrap: wrap;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 14px;
      font-weight: 800;
      color: #fff;
    }

    .footer-brand img {
      width: 50px;
      height: auto;
      filter: brightness(0) invert(1);
    }

    .footer-legal {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      font-size: .9rem;
    }

    .footer-legal a:hover { color: #fff; }

    .footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* Convierte los iconos en blancos */
  transition: opacity .2s ease;
}

.footer-social a:hover img {
  opacity: .8;
}

    @media (max-width: 940px) {
      .menu { display: none; }
      .hero-grid, .split, .contact-grid {
        grid-template-columns: 1fr;
      }
      .contact-grid {
        display: flex;
        flex-direction: column;
      }
      .hero-points, .cards, .client-grid {
        grid-template-columns: 1fr;
      }
      .floating {
        position: static;
        margin-top: 16px;
        max-width: none;
      }
      .image-stack { min-height: 390px; }
      .photo-main { width: 88%; height: 310px; }
      .photo-small { width: 55%; height: 195px; }
      .quote-strip { grid-template-columns: 1fr; }
      .form-grid { grid-template-columns: 1fr; }
      .contact-info { position: static; }
      .contact-grid > form {
        display: block;
        visibility: visible;
        opacity: 1;
        position: relative;
        z-index: 1;
        width: 100%;
        margin-top: 4px;
      }
      section { padding: 62px 0; }
      .hero { padding-top: 58px; }
    }

    @media (max-width: 1050px) {
      .menu-toggle { display: inline-flex; }
      .menu {
        display: none;
        position: absolute;
        top: calc(100% - 6px);
        right: 0;
        width: min(330px, calc(100vw - 40px));
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow);
      }
      .menu.is-open { display: flex; }
      .menu > a, .menu > span { padding: 11px 12px; text-align: center; }
      .menu .portal-clientes { justify-content: center; }
      .portal-clientes, .nav-cta { justify-content: center; }
    }
  
    /* Hero original conservado */
    .hero {
      padding: 2px 0 10px;
      background: #ffffff;
      overflow: hidden;
      font-family: "Sora", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    }
    .hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; min-height: 520px; }
    .hero-content { position: relative; z-index: 2; }
    .hero-text { max-width: 560px; padding: 64px 0 24px 0; }
    .hero h1 { margin: 0 0 24px; max-width: 11ch; font-size: clamp(2.15rem, 4.7vw, 3.9rem); line-height: 1.02; letter-spacing: -.055em; }
    .hero h1 span { color: #f76b00; }
    .hero .hero-copy { margin: 0; max-width: 52ch; font-size: 16px; line-height: 1.7; color: #6e6670; }
    .hero .hero-copy strong { color: var(--dark); }
    .hero .buttons { margin-top: 30px; }
    .hero .hero-visual { position: relative; height: 100%; min-height: 520px; margin-right: calc(100% - 50vw); display: flex; justify-content: flex-end; }
    .hero .hero-visual img { width: 100%; max-width: 820px; height: 100%; min-height: 520px; object-fit: cover; object-position: 80% center; display: block; border-radius: 0; }
    @media (max-width: 1080px) {
      .hero .hero-visual { width: 100%; margin-right: 0; }
      .hero .hero-visual img { width: 100%; height: auto; min-height: 0; object-fit: contain; }
    }
    @media (max-width: 960px) {
      .hero-inner { grid-template-columns: 1fr; }
      .hero .hero-visual {
        order: 2;
        width: 100vw;
        min-height: 0;
        margin: 0 calc(50% - 50vw);
        aspect-ratio: 2151 / 2016;
        background: #fff;
      }
      .hero .hero-visual img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: contain;
        object-position: center;
      }
      .hero-text { max-width: 100%; padding-top: 40px; }
    }
    @media (max-width: 600px) { .hero h1 { font-size: 2.3rem; } }
/* Mejoras de interacción, accesibilidad y tarjetas de clientes */
img { max-width: 100%; }
.client { position: relative; isolation: isolate; gap: 18px; min-height: 152px; padding: 22px; border-color: rgba(240,90,26,.14); box-shadow: 0 10px 28px rgba(57,57,63,.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.client::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(circle at 100% 0, rgba(240,90,26,.13), transparent 40%); opacity: 0; transition: opacity .2s ease; }
.client:hover { transform: translateY(-4px); border-color: rgba(240,90,26,.34); box-shadow: 0 18px 34px rgba(57,57,63,.10); }
.client:hover::before { opacity: 1; }
.client span { width: 50px; height: 50px; border-radius: 16px; box-shadow: 0 7px 15px rgba(240,90,26,.10); }
.client span img { width: 32px; height: 32px; }
.whatsapp-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.whatsapp-link:focus-visible, .menu a:focus-visible, .btn:focus-visible, .footer-legal a:focus-visible { outline: 3px solid #f9b48b; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
