:root {
      --negro: #050507;
      --blanco: #ffffff;
      --gris: #c9c9d4;
      --gris-2: #8f90a6;
      --azul: #000096;
      --rojo: #ea000c;
      --violeta: #520071;
      --gradiente: linear-gradient(135deg, var(--azul) 0%, var(--violeta) 48%, var(--rojo) 100%);
      --linea: rgba(255,255,255,.12);
      --max: 1200px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: var(--negro);
      color: var(--blanco);
    }
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 12% 18%, rgba(0,0,150,.46), transparent 28%),
        radial-gradient(circle at 88% 6%, rgba(234,0,12,.36), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,.04), transparent 48%);
      z-index: -2;
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    .container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

    .header {
      position: sticky;
      top: 0;
      z-index: 30;
      background: rgba(5,5,7,.78);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .header-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 18px;
      padding: 16px 0;
    }
    .brand-box {
      display: inline-flex;
      align-items: center;
      padding: 10px 14px;
      border-radius: 18px;
      background: rgba(255,255,255,.96);
      border: 1px solid rgba(255,255,255,.7);
      box-shadow: 0 10px 30px rgba(0,0,0,.18);
    }
    .brand-box img { height: 40px; width: auto; }
    .nav { display: flex; gap: 26px; color: var(--gris); font-size: 15px; }
    .nav a:hover { color: var(--rojo); }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 22px;
      border-radius: 999px;
      font-weight: 800;
      border: 1px solid transparent;
      transition: .25s ease;
      cursor: pointer;
    }
    .btn-primary {
      background: var(--gradiente);
      color: var(--blanco);
      box-shadow: 0 20px 50px rgba(234,0,12,.18);
    }
    .btn-primary:hover { transform: translateY(-2px); }
    .btn-secondary {
      background: rgba(255,255,255,.05);
      border-color: rgba(255,255,255,.18);
      color: var(--blanco);
    }
    .btn-secondary:hover { background: rgba(234,0,12,.12); border-color: rgba(234,0,12,.5); }

    .hero { min-height: calc(100vh - 74px); padding: 70px 0 36px; position: relative; overflow: hidden; }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.08fr .92fr;
      gap: 42px;
      align-items: center;
    }
    .tags { display: flex; flex-wrap: wrap; gap: 10px; }
    .pill {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 10px 15px;
      font-size: 14px;
      color: #f2f2f5;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.05);
    }
    .pill.azul { border-color: rgba(0,0,150,.75); background: rgba(0,0,150,.24); }
    .pill.rojo { border-color: rgba(234,0,12,.6); background: rgba(234,0,12,.18); }

    .hero h1 {
      font-size: clamp(46px, 8vw, 94px);
      line-height: .9;
      letter-spacing: -.06em;
      margin: 22px 0 18px;
      max-width: 1000px;
    }
    .highlight {
      background: var(--gradiente);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .hero-subtitle {
      font-size: clamp(24px, 3.2vw, 34px);
      line-height: 1.3;
      font-weight: 600;
      letter-spacing: -.01em;
      max-width: 820px;
      margin: 0 0 16px;
    }
    .lead {
      color: var(--gris);
      font-size: clamp(18px, 2vw, 23px);
      line-height: 1.62;
      max-width: 780px;
      margin: 0 0 30px;
    }
    .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

    .hero-art {
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 34px;
      padding: 18px;
      background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
      box-shadow: 0 24px 70px rgba(0,0,0,.38);
    }
    .hero-card {
      background: radial-gradient(circle at 20% 0%, rgba(0,0,150,.30), transparent 34%),
                  radial-gradient(circle at 90% 12%, rgba(234,0,12,.24), transparent 30%),
                  rgba(0,0,0,.70);
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 26px;
      padding: 28px;
    }
    .hero-card .logo-panel,
    .contact-left .logo-panel {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,.95);
      border-radius: 20px;
      padding: 14px 18px;
      box-shadow: 0 12px 32px rgba(0,0,0,.20);
      margin-bottom: 24px;
    }
    .hero-card img { width: 310px; }
    .hero-card h2 { font-size: 31px; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; }
    .hero-card p { color: var(--gris); line-height: 1.65; margin: 0 0 20px; }
    .mini-list { display: grid; gap: 12px; }
    .mini-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.10);
    }
    .mini-item strong { font-size: 15px; }
    .mini-item span { color: var(--gris-2); font-size: 14px; }

    .marquee-wrap {
      margin-top: 48px;
      overflow: hidden;
      border-top: 1px solid rgba(255,255,255,.12);
      border-bottom: 1px solid rgba(255,255,255,.12);
      background: linear-gradient(90deg, var(--azul), var(--blanco) 52%, var(--rojo));
      color: #030303;
    }
    .marquee {
      display: inline-block;
      white-space: nowrap;
      padding: 17px 0;
      font-size: 20px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .03em;
      animation: scroll 23s linear infinite;
    }
    .marquee span { margin-right: 36px; }
    @keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

    .section { padding: 90px 0; }
    .eyebrow {
      color: var(--rojo);
      text-transform: uppercase;
      letter-spacing: .27em;
      font-size: 13px;
      font-weight: 900;
      margin-bottom: 12px;
    }
    .section-title {
      font-size: clamp(36px, 5vw, 68px);
      line-height: .95;
      letter-spacing: -.055em;
      margin: 0 0 16px;
    }
    .section-lead {
      max-width: 760px;
      color: var(--gris);
      line-height: 1.8;
      font-size: 18px;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }
    .stat {
      position: relative;
      overflow: hidden;
      padding: 26px;
      border-radius: 26px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.045);
    }
    .stat::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(0,0,150,.22), transparent 50%, rgba(234,0,12,.18));
      opacity: .9;
    }
    .stat > * { position: relative; }
    .stat strong { display: block; font-size: 40px; margin-bottom: 8px; letter-spacing: -.04em; }
    .stat span { color: var(--gris); }

    .services {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 36px;
    }
    .card {
      border-radius: 28px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.045);
      padding: 29px;
      transition: .25s ease;
    }
    .card:hover {
      transform: translateY(-3px);
      border-color: rgba(234,0,12,.55);
      background: rgba(255,255,255,.075);
    }
    .featured {
      grid-column: span 2;
      background: var(--blanco);
      color: #030303;
      border-color: rgba(234,0,12,.35);
    }
    .accent {
      width: 92px;
      height: 7px;
      border-radius: 999px;
      background: var(--gradiente);
      margin-bottom: 20px;
    }
    .num {
      font-size: 13px;
      font-weight: 900;
      letter-spacing: .25em;
      text-transform: uppercase;
      color: var(--rojo);
      margin-bottom: 22px;
    }
    .card:nth-child(even) .num { color: #7777ff; }
    .card h3 { margin: 0 0 12px; font-size: 29px; line-height: 1.08; letter-spacing: -.03em; }
    .card p { margin: 0; color: var(--gris); line-height: 1.75; }
    .featured p { color: #333; }
    .featured .num { color: var(--azul); }

    .band {
      background: linear-gradient(135deg, rgba(0,0,150,.24), rgba(255,255,255,.03) 50%, rgba(234,0,12,.20));
      border-top: 1px solid rgba(255,255,255,.12);
      border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .projects {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 36px;
    }
    .project {
      min-height: 350px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }
    .project .tag {
      margin-bottom: auto;
      color: #7777ff;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .12em;
      font-weight: 900;
    }
    .project:nth-child(2) .tag { color: #ff6b70; }
    .project h3 { margin: 70px 0 12px; font-size: 30px; letter-spacing: -.035em; }
    .project p { color: var(--gris); line-height: 1.75; margin: 0; }

    .split {
      display: grid;
      grid-template-columns: .95fr 1.05fr;
      gap: 22px;
      align-items: stretch;
    }
    .panel-dark {
      border-radius: 30px;
      border: 1px solid rgba(255,255,255,.12);
      background: radial-gradient(circle at 0 0, rgba(0,0,150,.32), transparent 38%),
                  radial-gradient(circle at 100% 0, rgba(234,0,12,.22), transparent 35%),
                  rgba(0,0,0,.48);
      padding: 42px;
    }
    .panel-light {
      border-radius: 30px;
      background: var(--blanco);
      color: #050505;
      padding: 42px;
      border: 1px solid rgba(0,0,0,.08);
    }
    .panel-light li { margin-bottom: 10px; line-height: 1.65; color: #30303a; }
    .panel-light strong { color: var(--azul); }

    .reasons { display: grid; gap: 16px; }
    .reason:nth-child(odd) { background: rgba(0,0,150,.16); border-color: rgba(0,0,150,.42); }
    .reason:nth-child(even) { background: rgba(234,0,12,.12); border-color: rgba(234,0,12,.42); }
    .reason h3 { margin: 0 0 12px; font-size: 29px; }
    .reason p { margin: 0; color: var(--gris); line-height: 1.8; }

    .contact {
      overflow: hidden;
      border-radius: 34px;
      border: 1px solid rgba(234,0,12,.35);
      background: var(--blanco);
      color: #050505;
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
    .contact-left {
      padding: 44px;
      background: var(--gradiente);
      color: var(--blanco);
    }
    .contact-left img { width: 300px; }
    .contact-left .eyebrow { color: rgba(255,255,255,.76); }
    .contact-left p { color: rgba(255,255,255,.84); line-height: 1.75; font-size: 18px; }
    .contact-right { padding: 44px; background: #f4f4f7; }
    .form { display: grid; gap: 14px; margin-top: 26px; }
    input, textarea {
      width: 100%;
      border: 1px solid #d7d7df;
      border-radius: 18px;
      padding: 16px;
      font: inherit;
      background: #fff;
      color: #111;
    }
    textarea { min-height: 122px; resize: vertical; }
    input:focus, textarea:focus {
      outline: none;
      border-color: var(--azul);
      box-shadow: 0 0 0 3px rgba(0,0,150,.12);
    }
    .submit {
      border: none;
      background: var(--gradiente);
      color: #fff;
      border-radius: 999px;
      padding: 16px 20px;
      font: inherit;
      font-weight: 900;
      cursor: pointer;
    }

    footer { color: var(--gris-2); padding: 28px 0 44px; }
    .footer-inner {
      border-top: 1px solid rgba(255,255,255,.12);
      padding-top: 24px;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: center;
    }
    .footer-mark strong { color: var(--blanco); font-size: 20px; }
    .footer-mark strong span { color: var(--rojo); }

    @media (max-width: 980px) {
      .hero-grid, .split, .contact, .stats, .services, .projects { grid-template-columns: 1fr 1fr; }
      .nav { display: none; }
      .featured { grid-column: span 2; }
    }
    @media (max-width: 760px) {
      .hero-grid, .split, .contact, .stats, .services, .projects { grid-template-columns: 1fr; }
      .featured { grid-column: span 1; }
      .hero { padding-top: 40px; }
      .hero h1 { font-size: 45px; }
      .hero-art { padding: 12px; }
      .panel-dark, .panel-light, .contact-left, .contact-right { padding: 28px; }
      .brand-box img { height: 32px; }
      .section { padding: 68px 0; }
      .footer-inner { flex-direction: column; align-items: flex-start; }
      .hero-card img, .contact-left img { width: 240px; }
    }
  
  /* === AJUSTE SOLICITADO: FONDO BLANCO GENERAL === */
  body {
    background: #ffffff !important;
    color: #050507 !important;
  }

  body::before {
    background:
      radial-gradient(circle at 10% 12%, rgba(0,0,150,.08), transparent 24%),
      radial-gradient(circle at 90% 4%, rgba(234,0,12,.08), transparent 22%) !important;
  }

  .header {
    background: rgba(255,255,255,.92) !important;
    border-bottom: 1px solid rgba(0,0,0,.10) !important;
  }

  .nav {
    color: #3b3d47 !important;
  }

  .btn-secondary {
    background: #ffffff !important;
    border-color: rgba(0,0,0,.18) !important;
    color: #050507 !important;
  }

  .btn-secondary:hover {
    color: #ea000c !important;
    border-color: rgba(234,0,12,.55) !important;
  }

  .hero,
  .section,
  footer {
    background: #ffffff !important;
    color: #050507 !important;
  }

  .hero {
    background:
      radial-gradient(circle at 12% 18%, rgba(0,0,150,.10), transparent 26%),
      radial-gradient(circle at 86% 10%, rgba(234,0,12,.10), transparent 24%),
      #ffffff !important;
  }

  .section:nth-of-type(even) {
    background:
      linear-gradient(135deg, rgba(0,0,150,.055), #ffffff 48%, rgba(234,0,12,.055)) !important;
    border-top: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
  }

  .hero h1,
  .section-title,
  .hero-card h2,
  .card h3,
  .reason h3,
  .project h3,
  .footer-mark strong {
    color: #050507 !important;
  }

  .lead,
  .section-lead,
  .hero-card p,
  .card p,
  .project p,
  .reason p {
    color: #555866 !important;
  }

  .pill {
    color: #1a1b22 !important;
    background: rgba(255,255,255,.82) !important;
    border-color: rgba(0,0,0,.12) !important;
  }

  .pill.azul {
    color: #000096 !important;
    background: rgba(0,0,150,.07) !important;
    border-color: rgba(0,0,150,.30) !important;
  }

  .pill.rojo {
    color: #ea000c !important;
    background: rgba(234,0,12,.07) !important;
    border-color: rgba(234,0,12,.30) !important;
  }

  .hero-art,
  .hero-card,
  .card,
  .stat,
  .panel-dark {
    background: #ffffff !important;
    color: #050507 !important;
    border-color: rgba(0,0,0,.10) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.055) !important;
  }

  .featured,
  .panel-light {
    background: #050507 !important;
    color: #ffffff !important;
  }

  .featured h3,
  .panel-light,
  .panel-light li,
  .panel-light strong {
    color: #ffffff !important;
  }

  .featured p {
    color: #d6d6de !important;
  }

  .mini-item {
    background: #f5f5f8 !important;
    border-color: rgba(0,0,0,.08) !important;
  }

  .contact {
    box-shadow: 0 20px 60px rgba(0,0,0,.08) !important;
  }

  .contact-left .section-title {
    color: #ffffff !important;
  }

  .footer-inner {
    border-top: 1px solid rgba(0,0,0,.10) !important;
  }


  /* === AJUSTE SOLICITADO: SACAR CUADROS DE LOS LOGOS === */
  .brand-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  .brand-box img {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .hero-card .logo-panel,
  .contact-left .logo-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
  }

  .hero-card .logo-panel img,
  .contact-left .logo-panel img {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }


  /* === SECCIONES INCORPORADAS DESDE LA WEB VIEJA === */
  .quote-strip {
    background: #050507 !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
  }

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

  .quote-card {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 26px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(0,0,150,.20), rgba(255,255,255,.04), rgba(234,0,12,.15));
  }

  .quote-card p {
    color: rgba(255,255,255,.84) !important;
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 18px;
  }

  .quote-card strong {
    color: #ffffff;
  }

  .testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 36px;
  }

  .testimonial {
    min-height: 280px;
  }

  .testimonial .client {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff;
    background: linear-gradient(135deg, #000096, #ea000c);
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 20px;
  }

  .testimonial blockquote {
    margin: 0;
    color: #555866;
    line-height: 1.75;
    font-size: 17px;
  }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 36px;
  }

  .blog-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #5f6170;
  }

  .blog-meta span {
    padding: 8px 11px;
    background: rgba(0,0,150,.06);
    border: 1px solid rgba(0,0,150,.13);
    border-radius: 999px;
  }

  .blog-card h3 {
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -.035em;
    margin: 0;
  }

  .blog-card p {
    color: #555866;
    line-height: 1.75;
    margin: 0;
  }

  .faq {
    display: grid;
    gap: 14px;
    margin-top: 36px;
  }

  details {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 22px;
    padding: 22px 24px;
    box-shadow: 0 10px 24px rgba(0,0,0,.045);
  }

  summary {
    cursor: pointer;
    font-weight: 900;
    font-size: 19px;
    color: #050507;
  }

  details p {
    color: #555866;
    line-height: 1.75;
    margin: 16px 0 0;
  }

  .cta-band {
    border-radius: 34px;
    padding: 42px;
    background: linear-gradient(135deg, #000096, #520071 48%, #ea000c);
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.14);
  }

  .cta-band h2 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: .95;
    letter-spacing: -.05em;
    margin: 0 0 14px;
    color: #ffffff !important;
  }

  .cta-band p {
    color: rgba(255,255,255,.84) !important;
    line-height: 1.75;
    margin: 0;
    font-size: 18px;
  }

  .cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    background: linear-gradient(135deg, #000096, #ea000c);
    color: #fff;
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
  }

  @media (max-width: 980px) {
    .quote-grid, .testimonials, .blog-grid, .cta-band {
      grid-template-columns: 1fr;
    }

    .cta-actions {
      justify-content: flex-start;
    }
  }


  /* === AJUSTES FINALES SOLICITADOS === */

  .stat strong {
    text-transform: uppercase !important;
  }

  .contact {
    border: 2px solid transparent !important;
    background:
      linear-gradient(#ffffff, #ffffff) padding-box,
      linear-gradient(135deg, #000096, #520071 48%, #ea000c) border-box !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.10) !important;
  }

  .contact-right {
    background: #ffffff !important;
    border-left: 1px solid rgba(0,0,0,.08) !important;
  }

  .contact-right input,
  .contact-right textarea {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,.16) !important;
  }

  .contact-right input:focus,
  .contact-right textarea:focus {
    border-color: #000096 !important;
    box-shadow: 0 0 0 3px rgba(0,0,150,.12) !important;
  }

  .blog-card h3 a {
    color: inherit !important;
    text-decoration: none !important;
  }

  .blog-card h3 a:hover {
    color: #ea000c !important;
  }


  /* === AJUSTES SOLICITADOS: STATS Y LOGO CONTACTO === */

  .stat strong {
    text-transform: none !important;
  }

  .contact-left .logo-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .contact-left .contact-logo-white {
    width: 420px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.20));
  }

  @media (max-width: 760px) {
    .contact-left .contact-logo-white {
      width: 310px !important;
    }
  }


  /* === AJUSTE FINAL: CTA Y LOGO BLANCO EN CONTACTO === */

  .header .btn-primary {
    background: linear-gradient(135deg, #000096 0%, #520071 48%, #ea000c 100%) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    box-shadow: 0 18px 44px rgba(234,0,12,.16) !important;
  }

  .header .btn-primary:hover {
    transform: translateY(-2px) !important;
  }

  .contact-left .logo-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .contact-left .contact-logo-white {
    width: 430px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.22)) !important;
  }

  @media (max-width: 760px) {
    .contact-left .contact-logo-white {
      width: 310px !important;
    }
  }


  /* === AJUSTE FINAL: BLOG EXTERNO Y LOGO CONTACTO MÁS INTEGRADO === */

  .blog-external {
    background: linear-gradient(135deg, #000096 0%, #520071 48%, #ea000c 100%) !important;
  }

  .contact-left {
    background:
      radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 25%),
      linear-gradient(135deg, #000096 0%, #520071 48%, #ea000c 100%) !important;
  }

  .contact-left .logo-panel {
    display: block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 34px !important;
  }

  .contact-left .improved-contact-logo {
    width: 460px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,.26)) !important;
    opacity: .98 !important;
  }

  @media (max-width: 760px) {
    .contact-left .improved-contact-logo {
      width: 320px !important;
    }
  }


  /* === CONTACTO: LOGO BLANCO COMO EN LA REFERENCIA === */
  .contact-left .logo-panel,
  .contact-left .logo-panel *,
  .contact-left img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .contact-left .logo-panel img,
  .contact-left .contact-logo-white,
  .contact-left .improved-contact-logo {
    width: 430px !important;
    max-width: 82% !important;
    height: auto !important;
    display: block !important;
    filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0,0,0,.24)) !important;
    opacity: .98 !important;
  }

  .contact-left {
    background:
      radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 25%),
      linear-gradient(135deg, #000096 0%, #520071 48%, #ea000c 100%) !important;
  }

  @media (max-width: 760px) {
    .contact-left .logo-panel img,
    .contact-left .contact-logo-white,
    .contact-left .improved-contact-logo {
      width: 310px !important;
      max-width: 88% !important;
    }
  }


  /* === AJUSTES JOCHA: HEADER, LOGO Y CONTACTO SOCIAL === */
  .header-inner {
    padding: 20px 0 !important;
  }

  .brand-box img {
    height: 58px !important;
    width: auto !important;
  }

  .nav {
    gap: 30px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
  }

  .header-contact,
  .footer-contact,
  .contact-info,
  .contact-socials {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header-contact {
    color: #050507;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
  }

  .header-phone,
  .footer-contact > a:first-child,
  .contact-info > a:first-child {
    color: inherit;
    font-weight: 900;
  }

  .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000096 0%, #520071 48%, #ea000c 100%);
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    transition: .22s ease;
    flex: 0 0 auto;
  }

  .social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(234,0,12,.18);
  }

  .social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .contact-info {
    margin: 22px 0 6px;
    flex-wrap: wrap;
    color: #ffffff;
    font-size: 18px;
  }

  .contact-info .social-icon {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
  }

  .footer-contact {
    justify-content: flex-end;
    flex-wrap: wrap;
    color: #050507;
    font-weight: 800;
  }

  @media (max-width: 1080px) {
    .header-contact {
      display: none !important;
    }
  }

  @media (max-width: 760px) {
    .header-inner {
      padding: 16px 0 !important;
    }

    .brand-box img {
      height: 44px !important;
    }

    .footer-contact {
      justify-content: flex-start;
    }
  }


  /* === AJUSTE EXTRA JOCHA: LOGO HEADER MÁS GRANDE Y RESPONSIVE === */
  .header-inner {
    min-height: 92px !important;
  }

  .brand-box img {
    height: clamp(46px, 5.2vw, 74px) !important;
    width: auto !important;
    max-width: min(280px, 42vw) !important;
    object-fit: contain !important;
  }

  @media (max-width: 1080px) {
    .header-inner {
      min-height: 82px !important;
    }

    .brand-box img {
      height: clamp(44px, 6vw, 62px) !important;
      max-width: 240px !important;
    }
  }

  @media (max-width: 760px) {
    .header-inner {
      min-height: 72px !important;
      padding: 14px 0 !important;
    }

    .brand-box img {
      height: clamp(40px, 11vw, 52px) !important;
      max-width: 190px !important;
    }
  }

  @media (max-width: 420px) {
    .brand-box img {
      height: 44px !important;
      max-width: 165px !important;
    }
  }


  /* === AJUSTE JOCHA: LOGO HEADER MÁS GRANDE + TELÉFONO CLICKEABLE === */
  .header-inner {
    min-height: 104px !important;
  }

  .brand-box img {
    height: clamp(54px, 6.1vw, 88px) !important;
    max-width: min(330px, 46vw) !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .phone-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: inherit !important;
    font-weight: 900 !important;
  }

  .phone-link svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
    flex: 0 0 auto !important;
  }

  .header-phone.phone-link {
    padding: 9px 12px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    background: rgba(255,255,255,.72) !important;
  }

  .contact-info .phone-link svg {
    width: 20px !important;
    height: 20px !important;
  }

  @media (max-width: 1080px) {
    .header-inner {
      min-height: 92px !important;
    }

    .brand-box img {
      height: clamp(50px, 7vw, 76px) !important;
      max-width: 270px !important;
    }
  }

  @media (max-width: 760px) {
    .header-inner {
      min-height: 78px !important;
      padding: 12px 0 !important;
    }

    .brand-box img {
      height: clamp(46px, 13vw, 60px) !important;
      max-width: 215px !important;
    }
  }

  @media (max-width: 420px) {
    .brand-box img {
      height: 50px !important;
      max-width: 185px !important;
    }
  }



  /* === AJUSTE JOCHA: TELÉFONO COMO ÍCONO SOCIAL === */
  .phone-icon {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #000096 0%, #520071 48%, #ea000c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
    transition: .22s ease !important;
    flex: 0 0 auto !important;
  }

  .phone-icon:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 30px rgba(234,0,12,.18) !important;
  }

  .phone-icon svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
  }

  .contact-info .phone-icon {
    background: rgba(255,255,255,.18) !important;
    border: 1px solid rgba(255,255,255,.35) !important;
  }



  /* === AJUSTE GLOBAL JOCHA: HEADER RESPONSIVE + ICONOS SOCIALES === */
  .header-inner {
    min-height: 108px !important;
    padding: 18px 0 !important;
  }

  .brand-box img {
    height: clamp(58px, 6.6vw, 96px) !important;
    max-width: min(360px, 46vw) !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .nav {
    gap: 30px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
  }

  .header-socials {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 0 0 auto !important;
  }

  .social-icon,
  .phone-icon {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #000096 0%, #520071 48%, #ea000c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
    transition: .22s ease !important;
    flex: 0 0 auto !important;
  }

  .social-icon:hover,
  .phone-icon:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 30px rgba(234,0,12,.18) !important;
  }

  .social-icon svg,
  .phone-icon svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
  }

  .footer-contact {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  @media (max-width: 1080px) {
    .header-inner {
      min-height: 92px !important;
    }

    .brand-box img {
      height: clamp(52px, 7vw, 78px) !important;
      max-width: 285px !important;
    }

    .header .btn-primary {
      display: none !important;
    }
  }

  @media (max-width: 760px) {
    .header-inner {
      min-height: 78px !important;
      padding: 12px 0 !important;
      gap: 12px !important;
    }

    .brand-box img {
      height: clamp(48px, 13vw, 62px) !important;
      max-width: 220px !important;
    }

    .header-socials {
      gap: 8px !important;
    }

    .social-icon,
    .phone-icon {
      width: 34px !important;
      height: 34px !important;
    }
  }

  @media (max-width: 420px) {
    .brand-box img {
      height: 52px !important;
      max-width: 188px !important;
    }

    .social-icon,
    .phone-icon {
      width: 32px !important;
      height: 32px !important;
    }
  }



  /* === Revisión CTA/contacto Vaxtur === */
  .header .btn-primary[href*="contacto"] {
    display: none !important;
  }

  .header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .header-socials .mail-icon svg,
  .header-socials .phone-icon svg,
  .header-socials .social-icon svg {
    width: 19px;
    height: 19px;
  }

  .contact-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    align-items: center;
  }

  .contact-cta-row .btn {
    text-decoration: none;
  }

  .post-content .contact-cta-row,
  .blog-cta-card .contact-cta-row,
  .cta-box .contact-cta-row {
    margin-top: 18px;
  }

  @media (max-width: 760px) {
    .contact-cta-row {
      flex-direction: column;
      align-items: stretch;
    }

    .contact-cta-row .btn {
      width: 100%;
      justify-content: center;
      text-align: center;
    }
  }


/* === HEADER TEST FINAL JOCHA === */
  .header {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid rgba(5,5,7,.10) !important;
    backdrop-filter: blur(14px) !important;
  }
  .header::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -1px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #000096, #520071, #ea000c) !important;
  }
  .header-test-final {
    min-height: 112px !important;
    padding: 14px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 22px !important;
  }
  .brand-test-final {
    width: 128px !important;
    min-width: 128px !important;
    height: 98px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
  }
  .vaxtur-header-logo-final {
    width: 118px !important;
    height: 92px !important;
    max-width: 118px !important;
    max-height: 92px !important;
    object-fit: contain !important;
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .nav-test-final {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    gap: 24px !important;
    min-width: 0 !important;
  }
  .nav-test-final a {
    color: #050507 !important;
    background: transparent !important;
    border: 0 !important;
    padding: 8px 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
  .nav-test-final a:hover { color: #ea000c !important; } .has-dropdown { position: relative !important; display: inline-flex !important; align-items: center !important; } .has-dropdown > a { display: inline-flex !important; align-items: center !important; gap: 4px !important; } .has-dropdown .caret { font-size: 10px !important; opacity: .6 !important; transition: transform .15s ease !important; } .has-dropdown:hover .caret, .has-dropdown:focus-within .caret { transform: rotate(180deg) !important; } .dropdown-menu { position: absolute !important; top: 100% !important; left: 50% !important; padding-top: 12px !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transform: translate(-50%, -6px) !important; transition: opacity .18s ease, transform .18s ease, visibility .18s !important; z-index: 60 !important; } .has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transform: translate(-50%, 0) !important; } .dropdown-menu-inner { min-width: 270px !important; background: #ffffff !important; border-radius: 16px !important; border: 1px solid rgba(5,5,7,.08) !important; box-shadow: 0 24px 60px rgba(5,5,7,.16) !important; padding: 10px !important; display: flex !important; flex-direction: column !important; gap: 2px !important; } .dropdown-menu-inner a { display: block !important; padding: 10px 14px !important; border-radius: 10px !important; font-size: 14px !important; font-weight: 700 !important; white-space: normal !important; color: #050507 !important; } .dropdown-menu-inner a:hover { background: rgba(234,0,12,.07) !important; color: #ea000c !important; } .dropdown-menu-inner a.dropdown-featured { font-weight: 800 !important; } .dropdown-menu-inner a.dropdown-viewall { color: #ea000c !important; font-weight: 800 !important; font-size: 13px !important; } .dropdown-divider { height: 1px !important; background: rgba(5,5,7,.08) !important; margin: 6px 4px !important; }
  .header-actions-test-final {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
  }
  .header-actions-test-final .social-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #000096 0%, #520071 48%, #ea000c 100%) !important;
    border: 0 !important;
    box-shadow: 0 10px 24px rgba(82,0,113,.18) !important;
    text-decoration: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }
  .header-actions-test-final .social-icon svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: block !important;
  }
  .header-actions-test-final .social-icon:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 30px rgba(234,0,12,.20) !important;
  }
  .brand-box, .brand-v, .brand-logo-v { display: none !important; }
  @media (max-width: 900px) {
    .header-test-final {
      display: grid !important;
      grid-template-columns: auto 1fr !important;
      gap: 12px !important;
      min-height: 0 !important;
      padding: 10px 0 12px !important;
    }
    .brand-test-final { width: 92px !important; min-width: 92px !important; height: 74px !important; }
    .vaxtur-header-logo-final { width: 84px !important; height: 68px !important; max-width: 84px !important; max-height: 68px !important; }
    .header-actions-test-final { justify-self: end !important; gap: 8px !important; }
    .header-actions-test-final .social-icon { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; }
    .header-actions-test-final .social-icon svg { width: 17px !important; height: 17px !important; }
    .nav-test-final {
      grid-column: 1 / -1 !important;
      justify-content: flex-start !important;
      overflow-x: auto !important;
      gap: 8px !important;
      padding-bottom: 2px !important;
      white-space: nowrap !important;
      scrollbar-width: none !important;
    }
    .nav-test-final::-webkit-scrollbar { display: none !important; }
    .nav-test-final a {
      flex: 0 0 auto !important;
      padding: 7px 10px !important;
      border-radius: 999px !important;
      background: rgba(5,5,7,.045) !important; } .dropdown-menu { display: none !important; } .has-dropdown .caret { display: none !important; } .nav-test-final a {
      border: 1px solid rgba(5,5,7,.08) !important;
      font-size: 13px !important;
    }
  }
  @media (max-width: 520px) {
    .brand-test-final { width: 78px !important; min-width: 78px !important; height: 62px !important; }
    .vaxtur-header-logo-final { width: 72px !important; height: 58px !important; max-width: 72px !important; max-height: 58px !important; }
    .header-actions-test-final { gap: 6px !important; }
    .header-actions-test-final .social-icon { width: 32px !important; height: 32px !important; min-width: 32px !important; min-height: 32px !important; }
    .header-actions-test-final .social-icon svg { width: 15px !important; height: 15px !important; }
  }

  /* === RESPONSIVE GENERAL PARA TODAS LAS PÁGINAS === */
  img, svg {
    max-width: 100%;
  }

  h1, h2, h3, p, li, a {
    overflow-wrap: break-word;
  }

  @media (max-width: 980px) {
    .hero-grid,
    .split,
    .contact,
    .stats,
    .services,
    .projects,
    .quote-grid,
    .testimonials,
    .blog-grid,
    .cta-band {
      grid-template-columns: 1fr !important;
    }

    .featured {
      grid-column: span 1 !important;
    }

    .section {
      padding: 64px 0 !important;
    }

    .hero {
      min-height: auto !important;
      padding: 52px 0 34px !important;
    }

    .hero h1,
    .page-hero h1 {
      font-size: clamp(2.25rem, 10vw, 4rem) !important;
      line-height: 1.02 !important;
    }
  }

  @media (max-width: 760px) {
    .container {
      width: min(calc(100% - 28px), var(--max, 1200px)) !important;
    }

    .hero-actions,
    .cta-actions,
    .back-row,
    .contact-cta-row {
      flex-direction: column !important;
      align-items: stretch !important;
    }

    .btn,
    .submit,
    button {
      width: 100%;
      justify-content: center;
      text-align: center;
    }

    .panel-dark,
    .panel-light,
    .contact-left,
    .contact-right,
    .hero-card,
    .card,
    .post-content,
    .article-card {
      padding: 22px !important;
      border-radius: 22px !important;
    }

    .post-content p,
    .article-card p {
      text-align: left !important;
    }

    .footer-inner {
      flex-direction: column !important;
      align-items: flex-start !important;
    }
  }




  /* === CORRECCIÓN FINAL: LOGO ISOTIPO + HEADER PROPORCIONAL === */
  .header-test-final {
    min-height: 108px !important;
    padding: 12px 0 !important;
    gap: 22px !important;
  }

  .brand-test-final {
    width: 96px !important;
    min-width: 96px !important;
    height: 96px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
  }

  .vaxtur-header-logo-final {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    object-fit: contain !important;
    object-position: left center !important;
    display: block !important;
  }

  @media (max-width: 1080px) {
    .header-test-final {
      min-height: 96px !important;
      gap: 18px !important;
    }

    .brand-test-final {
      width: 84px !important;
      min-width: 84px !important;
      height: 84px !important;
    }

    .vaxtur-header-logo-final {
      width: 84px !important;
      height: 84px !important;
      max-width: 84px !important;
      max-height: 84px !important;
    }
  }

  @media (max-width: 900px) {
    .header-test-final {
      min-height: 0 !important;
      padding: 12px 0 !important;
      grid-template-columns: auto 1fr !important;
      gap: 12px !important;
    }

    .brand-test-final {
      width: 72px !important;
      min-width: 72px !important;
      height: 72px !important;
    }

    .vaxtur-header-logo-final {
      width: 72px !important;
      height: 72px !important;
      max-width: 72px !important;
      max-height: 72px !important;
    }
  }

  @media (max-width: 520px) {
    .header-test-final {
      padding: 10px 0 11px !important;
      gap: 8px !important;
    }

    .brand-test-final {
      width: 62px !important;
      min-width: 62px !important;
      height: 62px !important;
    }

    .vaxtur-header-logo-final {
      width: 62px !important;
      height: 62px !important;
      max-width: 62px !important;
      max-height: 62px !important;
    }
  }

  @media (max-width: 380px) {
    .brand-test-final {
      width: 56px !important;
      min-width: 56px !important;
      height: 56px !important;
    }

    .vaxtur-header-logo-final {
      width: 56px !important;
      height: 56px !important;
      max-width: 56px !important;
      max-height: 56px !important;
    }
  }
