/* ========== RESET & BASE ========== */
    *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --green: #1E7E34;
      --graphite: #2B2D42;
      --blue: #0077B6;
      --white: #FFFFFF;
      --soft: #F4F6F8;
      --dark: #1A1C29;
      --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.04);
      --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.07);
      --shadow-hover: 0 24px 48px rgba(0, 0, 0, 0.12);
      --radius: 1.5rem;
      --radius-btn: 2rem;
      --font-heading: 'Plus Jakarta Sans', sans-serif;
      --font-body: 'Inter', sans-serif;
      --ease: cubic-bezier(0.23, 1, 0.32, 1);
      --glass-bg: rgba(255, 255, 255, 0.78);
      --glass-border: rgba(255, 255, 255, 0.5);
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-body);
      background: var(--white);
      color: var(--graphite);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    h1, h2, h3, h4 {
      font-family: var(--font-heading);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.15;
    }

    a { text-decoration: none; color: inherit; }
    button, input, textarea { font-family: inherit; cursor: pointer; border: none; background: none; }
    img, svg { display: block; max-width: 100%; }

    /* ========== UTILITIES ========== */
    .container {
      width: 100%;
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 clamp(1.25rem, 5vw, 2.5rem);
    }

    .section {
      padding: clamp(4.5rem, 10vw, 7rem) 0;
    }

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

    .text-gradient {
      background: linear-gradient(135deg, var(--green), var(--blue));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.9rem 2rem;
      border-radius: var(--radius-btn);
      font-weight: 600;
      font-size: 0.95rem;
      transition: all 0.35s var(--ease);
      white-space: nowrap;
      border: 1.5px solid transparent;
      will-change: transform, box-shadow;
    }

    .btn-primary {
      background: var(--green);
      color: white;
      box-shadow: 0 6px 18px rgba(30, 126, 52, 0.3);
    }
    .btn-primary:hover {
      background: #166b2a;
      transform: translateY(-3px);
      box-shadow: 0 14px 28px rgba(30, 126, 52, 0.4);
    }

    .btn-glass {
      background: rgba(255, 255, 255, 0.12);
      color: white;
      border: 1.5px solid rgba(255, 255, 255, 0.45);
      backdrop-filter: blur(6px);
    }
    .btn-glass:hover {
      background: rgba(255, 255, 255, 0.22);
      transform: translateY(-3px);
      border-color: rgba(255, 255, 255, 0.7);
    }

    .btn-outline {
      background: transparent;
      border: 1.5px solid var(--graphite);
      color: var(--graphite);
    }
    .btn-outline:hover {
      background: var(--graphite);
      color: white;
      transform: translateY(-3px);
    }

    /* ========== SCROLL REVEAL ========== */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ========== NAVBAR FLOTANTE ========== */
    .navbar {
      position: fixed;
      top: 1rem;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 2rem);
      max-width: 1280px;
      z-index: 1000;
      background: var(--glass-bg);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid var(--glass-border);
      border-radius: 4rem;
      box-shadow: var(--shadow-sm);
      padding: 0.55rem 1.4rem;
      transition: all 0.35s var(--ease);
    }

    .navbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-family: var(--font-heading);
      font-weight: 800;
      font-size: 1.3rem;
      letter-spacing: -0.02em;
      color: var(--graphite);
      flex-shrink: 0;
    }

    .logo-icon {
      width: 2.1rem;
      height: 2.1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, var(--green), var(--blue));
      border-radius: 50% 50% 50% 0;
      transform: rotate(-45deg);
      color: white;
      flex-shrink: 0;
    }
    .logo-icon svg {
      transform: rotate(45deg);
      width: 1.15rem;
      height: 1.15rem;
      stroke: white;
      stroke-width: 2.2;
    }

    .logo-img {
      height: 2.3rem;
      width: 2.3rem;
      object-fit: contain;
      border-radius: 0.5rem;
      background: #ffffff;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      padding: 2px;
      flex-shrink: 0;
    }

    .footer .logo-img {
      height: 2rem;
      width: 2rem;
    }


    .nav-links {
      display: flex;
      align-items: center;
      gap: 1.7rem;
      list-style: none;
    }
    .nav-links a {
      font-weight: 500;
      font-size: 0.88rem;
      color: var(--graphite);
      position: relative;
      padding: 0.35rem 0;
      transition: color 0.3s var(--ease);
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--green);
      transition: width 0.3s var(--ease);
    }
    .nav-links a:hover { color: var(--green); }
    .nav-links a:hover::after { width: 100%; }

    .nav-cta {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      flex-shrink: 0;
    }
    .nav-cta .btn {
      padding: 0.6rem 1.4rem;
      font-size: 0.83rem;
    }

    .menu-toggle {
      display: none;
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 50%;
      background: var(--soft);
      align-items: center;
      justify-content: center;
      transition: background 0.3s var(--ease);
    }
    .menu-toggle:hover { background: #e2e6ea; }
    .menu-toggle svg {
      width: 1.4rem;
      height: 1.4rem;
      stroke: var(--graphite);
      stroke-width: 2.2;
    }

    .mobile-nav {
      display: none;
      position: fixed;
      top: 5rem;
      left: 1rem;
      right: 1rem;
      background: white;
      border-radius: var(--radius);
      box-shadow: var(--shadow-md);
      padding: 1.5rem;
      z-index: 999;
      flex-direction: column;
      gap: 0.3rem;
      border: 1px solid #eaeef2;
    }
    .mobile-nav.active { display: flex; }
    .mobile-nav a {
      padding: 0.85rem 1rem;
      border-radius: 1rem;
      font-weight: 500;
      transition: background 0.3s var(--ease), color 0.3s var(--ease);
    }
    .mobile-nav a:hover {
      background: var(--soft);
      color: var(--green);
    }
    .mobile-nav .btn {
      margin-top: 0.5rem;
      width: 100%;
    }

    /* ========== HERO SECTION ========== */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: center;
      background: url('../img/AT_portada.jpeg') center/cover no-repeat;
      /* Imagen de fondo: campo tecnificado / invernadero moderno.
         Puedes reemplazarla por una foto oficial de AGROTRÓNICA. */
      padding-top: 7rem;
      padding-bottom: 4rem;
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        105deg,
        rgba(26, 28, 41, 0.88) 0%,
        rgba(26, 28, 41, 0.65) 55%,
        rgba(26, 28, 41, 0.35) 100%
      );
      z-index: 1;
    }

    .hero .container {
      position: relative;
      z-index: 2;
    }

    .hero-content {
      max-width: 680px;
      color: white;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.3);
      backdrop-filter: blur(8px);
      padding: 0.45rem 1.2rem;
      border-radius: 2rem;
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }

    .hero h1 {
      font-size: clamp(3rem, 7vw, 5rem);
      font-weight: 800;
      color: white;
      margin-bottom: 0.6rem;
      letter-spacing: -0.03em;
      line-height: 1;
    }

    .hero-tagline {
      font-family: var(--font-heading);
      font-size: clamp(1.4rem, 2.6vw, 2rem);
      font-weight: 600;
      color: rgba(255, 255, 255, 0.92);
      margin-bottom: 1.2rem;
    }

    .hero-subtitle {
      font-size: clamp(1rem, 1.4vw, 1.15rem);
      color: rgba(255, 255, 255, 0.8);
      max-width: 520px;
      margin-bottom: 2.4rem;
      line-height: 1.7;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
    }

    /* ========== MANIFESTO ========== */
    .manifesto-header {
      max-width: 780px;
      margin-bottom: 2.5rem;
    }

    .manifesto-header h2 {
      font-size: clamp(2rem, 4vw, 2.9rem);
      color: var(--graphite);
      margin-bottom: 1.5rem;
    }

    .manifesto-body p {
      font-size: clamp(1rem, 1.2vw, 1.1rem);
      color: #4a4d5a;
      line-height: 1.8;
      margin-bottom: 1.2rem;
    }

    .manifesto-closing {
      font-family: var(--font-heading);
      font-size: clamp(1.15rem, 1.8vw, 1.4rem);
      font-weight: 600;
      color: var(--green);
      margin-top: 1.5rem;
      font-style: italic;
    }

    .kpi-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-top: 3rem;
    }

    .kpi-card {
      background: white;
      border-radius: var(--radius);
      padding: 2.2rem 1.5rem;
      text-align: center;
      box-shadow: var(--shadow-sm);
      border: 1px solid #eef1f4;
      transition: all 0.4s var(--ease);
    }
    .kpi-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-md);
    }

    .kpi-number {
      font-family: var(--font-heading);
      font-size: clamp(2.4rem, 4vw, 3.4rem);
      font-weight: 800;
      color: var(--green);
      line-height: 1;
      margin-bottom: 0.6rem;
    }

    .kpi-label {
      font-size: 0.95rem;
      font-weight: 500;
      color: #6b7080;
      line-height: 1.4;
    }

    /* ========== METODOLOGÍA 360° ========== */
    .method-header {
      text-align: center;
      max-width: 780px;
      margin: 0 auto 2.5rem;
    }
    .method-header h2 {
      font-size: clamp(2rem, 4vw, 2.8rem);
      margin-bottom: 1.2rem;
    }
    .method-quote {
      font-size: clamp(1.05rem, 1.5vw, 1.25rem);
      color: #5a5e6b;
      font-style: italic;
      line-height: 1.7;
    }

    .method-steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
      margin-top: 2.5rem;
    }

    .method-step {
      background: white;
      border-radius: var(--radius);
      padding: 2rem 1.5rem;
      box-shadow: var(--shadow-sm);
      border: 1px solid #eef1f4;
      transition: all 0.4s var(--ease);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .method-step:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-md);
      border-color: rgba(30, 126, 52, 0.2);
    }

    .step-number {
      font-family: var(--font-heading);
      font-size: 3.2rem;
      font-weight: 800;
      color: rgba(30, 126, 52, 0.08);
      position: absolute;
      top: 0.4rem;
      right: 1rem;
      line-height: 1;
      transition: color 0.4s var(--ease);
    }
    .method-step:hover .step-number {
      color: rgba(30, 126, 52, 0.18);
    }

    .step-icon {
      width: 2.8rem;
      height: 2.8rem;
      background: rgba(30, 126, 52, 0.08);
      border-radius: 0.9rem;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.1rem;
      color: var(--green);
      transition: all 0.4s var(--ease);
    }
    .method-step:hover .step-icon {
      background: rgba(30, 126, 52, 0.15);
      transform: scale(1.06);
    }
    .step-icon svg {
      width: 1.5rem;
      height: 1.5rem;
      stroke-width: 1.8;
    }

    .method-step h3 {
      font-size: 1.1rem;
      margin-bottom: 0.6rem;
      position: relative;
      z-index: 1;
    }

    .method-step p {
      font-size: 0.9rem;
      color: #6b7080;
      position: relative;
      z-index: 1;
      line-height: 1.65;
    }

    /* ========== SOLUCIONES ========== */
    .solutions-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.8rem;
      margin-top: 2.5rem;
    }

    .solution-card {
      background: white;
      border-radius: var(--radius);
      padding: 2rem;
      box-shadow: var(--shadow-sm);
      border: 1px solid #eef1f4;
      transition: all 0.4s var(--ease);
      display: flex;
      flex-direction: column;
    }
    .solution-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-hover);
      border-color: rgba(0, 119, 182, 0.15);
    }

    .solution-icon {
      width: 3rem;
      height: 3rem;
      background: linear-gradient(135deg, rgba(30, 126, 52, 0.1), rgba(0, 119, 182, 0.08));
      border-radius: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.2rem;
      color: var(--green);
      transition: all 0.4s var(--ease);
    }
    .solution-card:hover .solution-icon {
      background: linear-gradient(135deg, rgba(30, 126, 52, 0.18), rgba(0, 119, 182, 0.12));
      transform: scale(1.06);
    }
    .solution-icon svg {
      width: 1.6rem;
      height: 1.6rem;
      stroke-width: 1.8;
    }

    .solution-card h3 {
      font-size: 1.12rem;
      margin-bottom: 0.6rem;
      color: var(--graphite);
    }

    .solution-card p {
      font-size: 0.9rem;
      color: #6b7080;
      flex-grow: 1;
      line-height: 1.65;
    }

    /* ========== CASOS REALES (EDITORIAL MINIMALISTA) ========== */
    .casos-header {
      margin-bottom: 2rem;
    }

    .casos-pillars-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
      margin-top: 1.25rem;
      align-items: center;
    }

    .pillar-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: #F4F6F8;
      color: #334155;
      padding: 0.42rem 1.05rem;
      border-radius: 9999px;
      font-size: 0.82rem;
      font-weight: 500;
      border: 1px solid #E2E8F0;
      transition: all 0.25s var(--ease);
      line-height: 1.35;
    }

    .pillar-badge svg {
      width: 0.95rem;
      height: 0.95rem;
      stroke: var(--green);
      flex-shrink: 0;
    }

    .pillar-badge:hover {
      background: #ffffff;
      border-color: #cbd5e1;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .projects-container {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      margin-top: 1.5rem;
    }

    /* Card Principal Destacada (Media Tensión) - Compacta y Editorial */
    .featured-project-card {
      background: #ffffff;
      border-radius: 1.8rem;
      padding: clamp(1.6rem, 3.5vw, 2.4rem);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      border: 1px solid #eef1f4;
      display: flex;
      flex-direction: column;
      gap: 1.1rem;
      transition: all 0.4s var(--ease);
      position: relative;
      overflow: hidden;
    }

    .featured-project-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--green), var(--blue));
    }

    .featured-project-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    }

    .featured-project-card h3 {
      font-size: clamp(1.25rem, 2.3vw, 1.65rem);
      color: var(--graphite);
      font-weight: 700;
      line-height: 1.3;
      letter-spacing: -0.02em;
    }

    .featured-project-desc {
      font-size: 0.95rem;
      color: #555b6d;
      line-height: 1.65;
      max-width: 960px;
    }

    /* Badges Unificados Debajo de la Descripción */
    .featured-badges-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 0.55rem;
      align-items: center;
      padding-top: 0.2rem;
    }

    .badge-tech {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      background: #F1F5F9;
      color: #334155;
      padding: 0.38rem 0.95rem;
      border-radius: 2rem;
      font-size: 0.82rem;
      font-weight: 600;
      border: 1px solid #e2e8f0;
      transition: all 0.25s var(--ease);
    }

    .badge-tech svg {
      width: 0.95rem;
      height: 0.95rem;
      stroke: var(--blue);
      flex-shrink: 0;
    }

    .badge-tech.green {
      background: rgba(30, 126, 52, 0.08);
      color: var(--green);
      border-color: rgba(30, 126, 52, 0.2);
    }

    .badge-tech.green svg {
      stroke: var(--green);
    }

    .badge-tech:hover {
      background: #e2e8f0;
    }

    .featured-card-action {
      display: flex;
      align-items: center;
      padding-top: 0.4rem;
    }

    .btn-expediente {
      padding: 0.85rem 2rem;
      font-size: 0.95rem;
      font-weight: 700;
      box-shadow: 0 8px 24px rgba(30, 126, 52, 0.28);
      gap: 0.6rem;
      cursor: pointer;
    }

    .btn-expediente svg {
      width: 1.15rem;
      height: 1.15rem;
      transition: transform 0.3s var(--ease);
    }

    .btn-expediente:hover svg {
      transform: translateX(4px);
    }

    /* Grilla de Casos Secundarios */
    .secondary-projects-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .secondary-card {
      background: white;
      border-radius: 1.5rem;
      padding: 1.8rem;
      box-shadow: var(--shadow-sm);
      border: 1px solid #eef1f4;
      display: flex;
      flex-direction: column;
      gap: 0.7rem;
      transition: all 0.35s var(--ease);
    }

    .secondary-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-md);
    }

    .secondary-card .badge {
      display: inline-block;
      background: rgba(0, 119, 182, 0.08);
      color: var(--blue);
      padding: 0.3rem 0.9rem;
      border-radius: 2rem;
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      align-self: flex-start;
    }

    .secondary-card h4 {
      font-size: 1.1rem;
      color: var(--graphite);
      font-weight: 700;
      line-height: 1.35;
    }

    .secondary-card p {
      font-size: 0.88rem;
      color: #6b7080;
      line-height: 1.6;
    }

    /* ========== MODAL EXPEDIENTE TÉCNICO ========== */
    body.modal-open {
      overflow: hidden !important;
    }

    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(26, 28, 41, 0.75);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(1rem, 3vw, 2.5rem);
      opacity: 0;
      visibility: hidden;
      transition: all 0.35s var(--ease);
    }

    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .modal-container {
      background: #ffffff;
      border-radius: 2rem;
      width: 100%;
      max-width: 1020px;
      max-height: 90vh;
      overflow-y: auto;
      padding: clamp(1.8rem, 4vw, 3rem);
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.8);
      position: relative;
      transform: translateY(25px) scale(0.97);
      transition: all 0.35s var(--ease);
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

    .modal-overlay.active .modal-container {
      transform: translateY(0) scale(1);
    }

    .modal-close-btn {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      width: 2.8rem;
      height: 2.8rem;
      border-radius: 50%;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      color: var(--graphite);
      font-size: 1.8rem;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.25s var(--ease);
      z-index: 10;
    }

    .modal-close-btn:hover {
      background: var(--graphite);
      color: white;
      transform: rotate(90deg);
    }

    /* Modal Compacto con Carrusel y Card CTA */
    .modal-container.modal-compact {
      max-width: 580px;
      padding: clamp(1.4rem, 3.5vw, 2.2rem);
      gap: 1.1rem;
      border-radius: 2rem;
    }

    /* Modal con Grilla Limpia de Fotos (Caseta y Obras Civiles) */
    .modal-container.modal-grid-container {
      max-width: 980px;
      padding: clamp(1.6rem, 3.5vw, 2.6rem);
      gap: 1.4rem;
      border-radius: 2rem;
    }

    .modal-grid-header {
      padding-right: 3.5rem; /* Deja espacio al botón cerrar X */
    }

    .modal-grid-header h3 {
      font-size: clamp(1.2rem, 2.4vw, 1.6rem);
      color: var(--graphite);
      font-weight: 700;
      line-height: 1.3;
      letter-spacing: -0.02em;
      margin-bottom: 0.35rem;
    }

    .modal-grid-header .modal-subtitle {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--green);
    }

    .modal-grid-header .modal-subtitle svg {
      width: 1rem;
      height: 1rem;
    }

    .modal-photos-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.2rem;
      width: 100%;
    }

    .grid-photo-item {
      position: relative;
      aspect-ratio: 1 / 1;
      border-radius: 1.2rem;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(0, 0, 0, 0.06);
      background: #f8fafc;
      transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    }

    .grid-photo-item:hover {
      transform: translateY(-4px) scale(1.02);
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
    }

    .grid-photo-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.4s var(--ease);
    }

    .grid-photo-item:hover img {
      transform: scale(1.05);
    }

    @media (max-width: 820px) {
      .modal-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
      }
    }

    @media (max-width: 480px) {
      .modal-photos-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
      }
    }

    /* Badges de Cabecera del Modal */
    .modal-header-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      align-items: center;
      width: 100%;
      padding-right: 3.5rem; /* Deja espacio al botón cerrar X */
    }

    /* Pie Descriptivo Dinámico de la Foto en el Modal */
    .carousel-caption-box {
      background: #F8FAFC;
      border: 1px solid #E2E8F0;
      border-radius: 1rem;
      padding: 0.75rem 1rem;
      font-size: 0.86rem;
      color: #334155;
      line-height: 1.45;
      display: flex;
      align-items: flex-start;
      gap: 0.65rem;
      width: 100%;
      box-sizing: border-box;
    }

    .carousel-caption-box svg {
      width: 1.1rem;
      height: 1.1rem;
      color: var(--blue);
      flex-shrink: 0;
      margin-top: 0.12rem;
    }

    .carousel-caption-box .caption-text {
      flex: 1;
    }

    /* Carrusel de Fotos - Proporción Cuadrada 1:1 Exacta Sin Bordes */
    .modal-carousel {
      position: relative;
      width: 100%;
      border-radius: 1.6rem;
      overflow: hidden;
      background: transparent;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
      aspect-ratio: 1 / 1;
    }

    .carousel-track-wrapper {
      width: 100%;
      height: 100%;
      overflow: hidden;
      border-radius: 1.6rem;
    }

    .carousel-track {
      display: flex;
      width: 100%;
      height: 100%;
      transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .carousel-slide {
      min-width: 100%;
      width: 100%;
      height: 100%;
      position: relative;
    }

    .carousel-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      user-select: none;
    }

    /* Flechas del Carrusel */
    .carousel-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 2.8rem;
      height: 2.8rem;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.6);
      color: var(--graphite);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.25s var(--ease);
      z-index: 5;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .carousel-arrow:hover {
      background: #ffffff;
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    }

    .carousel-arrow svg {
      width: 1.25rem;
      height: 1.25rem;
    }

    .carousel-arrow.prev {
      left: 1rem;
    }

    .carousel-arrow.next {
      right: 1rem;
    }

    /* Indicadores de Puntos (Dots) */
    .carousel-dots {
      position: absolute;
      bottom: 1rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 0.5rem;
      z-index: 5;
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      padding: 0.35rem 0.75rem;
      border-radius: 2rem;
    }

    .carousel-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.45);
      border: none;
      cursor: pointer;
      transition: all 0.3s var(--ease);
      padding: 0;
    }

    .carousel-dot.active {
      background: #ffffff;
      width: 22px;
      border-radius: 4px;
    }

    /* Contador 1 / 4 */
    .carousel-counter {
      position: absolute;
      bottom: 1rem;
      right: 1rem;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      color: white;
      padding: 0.3rem 0.75rem;
      border-radius: 2rem;
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      z-index: 5;
    }

    /* Card CTA en el Modal */
    .modal-footer-cta {
      background: linear-gradient(135deg, #1A1C29, #2B2D42);
      border-radius: 1.6rem;
      padding: clamp(1.4rem, 3.5vw, 2rem);
      color: white;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1.2rem;
    }

    .modal-cta-text h3 {
      font-size: clamp(1.1rem, 2vw, 1.3rem);
      color: white;
      margin-bottom: 0.35rem;
      font-weight: 700;
      line-height: 1.35;
    }

    .modal-cta-text p {
      font-size: 0.88rem;
      color: rgba(255, 255, 255, 0.78);
      margin: 0;
      max-width: 520px;
      line-height: 1.5;
    }

    .modal-cta-action {
      flex-shrink: 0;
      padding: 0.9rem 1.8rem;
      font-size: 0.92rem;
    }

    /* Responsive */
    @media (max-width: 900px) {
      .specs-grid {
        grid-template-columns: 1fr;
      }
      .secondary-projects-grid {
        grid-template-columns: 1fr;
      }
      .modal-gallery {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 640px) {
      .featured-project-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
      }
      .modal-container {
        padding: 1.5rem;
        border-radius: 1.5rem;
      }
      .modal-footer-cta {
        flex-direction: column;
        align-items: stretch;
      }
      .modal-cta-action {
        width: 100%;
        text-align: center;
      }
    }

    /* ========== CONTACTO / FOOTER ========== */
    .contact-section {
      background: var(--graphite);
      color: white;
      border-radius: 2rem 2rem 0 0;
      padding: clamp(4rem, 8vw, 6rem) 0 0;
      margin-top: 2rem;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      padding-bottom: 3rem;
    }

    .contact-info h2 {
      font-size: clamp(1.9rem, 3.6vw, 2.6rem);
      color: white;
      margin-bottom: 1.2rem;
      line-height: 1.2;
    }

    .contact-info > p {
      color: rgba(255, 255, 255, 0.75);
      font-size: 1.05rem;
      margin-bottom: 2rem;
      max-width: 460px;
      line-height: 1.7;
    }

    .contact-detail {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.2rem;
      color: rgba(255, 255, 255, 0.88);
      font-size: 0.95rem;
    }
    .contact-detail svg {
      width: 1.2rem;
      height: 1.2rem;
      stroke: var(--green);
      stroke-width: 2;
      flex-shrink: 0;
    }

    .contact-phones-block {
      margin-top: 1.5rem;
      padding-top: 1.2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .contact-phone-item {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 1.1rem;
    }

    .contact-phone-item:last-child {
      margin-bottom: 0;
    }

    .contact-phone-item svg {
      width: 1.2rem;
      height: 1.2rem;
      stroke: var(--green);
      stroke-width: 2;
      flex-shrink: 0;
      margin-top: 0.25rem;
    }

    .contact-phone-info {
      display: flex;
      flex-direction: column;
    }

    .contact-phone-label {
      font-size: 0.82rem;
      color: rgba(255, 255, 255, 0.65);
      font-weight: 500;
      margin-bottom: 0.15rem;
    }

    .contact-phone-number {
      font-size: 1.05rem;
      font-weight: 600;
      color: white;
      transition: color 0.25s var(--ease);
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }

    .contact-phone-number:hover {
      color: #8ef5a4;
    }

    .contact-form {
      background: rgba(255, 255, 255, 0.06);
      backdrop-filter: blur(8px);
      border-radius: var(--radius);
      padding: 2.2rem;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .form-group { margin-bottom: 1.2rem; }
    .form-group label {
      display: block;
      font-size: 0.85rem;
      font-weight: 500;
      margin-bottom: 0.4rem;
      color: rgba(255, 255, 255, 0.8);
    }
    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 0.9rem 1.2rem;
      border-radius: 1rem;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: white;
      font-size: 0.95rem;
      transition: all 0.3s var(--ease);
    }
    .form-group input:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--green);
      background: rgba(255, 255, 255, 0.15);
    }
    .form-group input::placeholder,
    .form-group textarea::placeholder {
      color: rgba(255, 255, 255, 0.4);
    }
    .form-group textarea {
      min-height: 110px;
      resize: vertical;
    }
    .form-submit {
      width: 100%;
      padding: 1rem;
      background: var(--green);
      color: white;
      border-radius: 1rem;
      font-weight: 600;
      font-size: 1rem;
      transition: all 0.35s var(--ease);
    }
    .form-submit:hover {
      background: #166b2a;
      transform: translateY(-2px);
    }

    .footer {
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      padding: 2rem 0;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.6);
    }

    .footer .logo {
      color: white;
      font-size: 1.1rem;
    }

    .footer-links {
      display: flex;
      gap: 1.5rem;
      flex-wrap: wrap;
    }
    .footer-links a {
      transition: color 0.3s var(--ease);
    }
    .footer-links a:hover { color: white; }

    .footer-copy {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      text-align: right;
      font-size: 0.85rem;
    }

    .footer-legal {
      font-size: 0.76rem;
      color: rgba(255, 255, 255, 0.45);
    }

    /* ========== RESPONSIVE ========== */
    @media (max-width: 1024px) {
      .hero-content { max-width: 100%; }
      .manifesto-header { max-width: 100%; }
      .solutions-grid { grid-template-columns: repeat(2, 1fr); }
      .method-steps { grid-template-columns: repeat(2, 1fr); }
      .contact-grid { grid-template-columns: 1fr; }
      .kpi-row { grid-template-columns: repeat(3, 1fr); }
    }

    @media (max-width: 768px) {
      .nav-links, .nav-cta .btn-outline { display: none; }
      .menu-toggle { display: flex; }
      .navbar { padding: 0.5rem 1rem; }
      .hero { padding-top: 8rem; min-height: 90vh; }
      .kpi-row { grid-template-columns: 1fr; gap: 1rem; }
      .solutions-grid { grid-template-columns: 1fr; }
      .method-steps { grid-template-columns: 1fr; }
      .projects-grid { grid-template-columns: 1fr; }
      .contact-form { padding: 1.5rem; }
      .hero-actions { flex-direction: column; align-items: stretch; }
      .hero-actions .btn { width: 100%; }
    }

    @media (max-width: 560px) {
      .nav-cta .btn { display: none; }
    }

    @media (max-width: 480px) {
      .logo { font-size: 1.15rem; }
      .hero h1 { font-size: 2.4rem; }
      .hero-tagline { font-size: 1.15rem; }
      .footer-inner { flex-direction: column; text-align: center; }
      .footer-copy { text-align: center; }
      .footer-links { flex-wrap: wrap; justify-content: center; }
    }

    /* ========== WIDGET FLOTANTE DE CONTACTO ========== */
    .floating-contact {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      z-index: 1050;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
    }

    .floating-trigger {
      width: 3.8rem;
      height: 3.8rem;
      border-radius: 50%;
      background: #25D366;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
      position: relative;
      transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
      border: none;
      cursor: pointer;
    }

    .floating-trigger:hover {
      transform: scale(1.08);
      box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    }

    .floating-trigger svg {
      width: 1.8rem;
      height: 1.8rem;
      stroke: white;
      stroke-width: 2.2;
      transition: transform 0.3s var(--ease);
    }

    .floating-trigger .icon-close {
      display: none;
    }

    .floating-contact.active .floating-trigger .icon-open {
      display: none;
    }

    .floating-contact.active .floating-trigger .icon-close {
      display: block;
    }

    .floating-pulse {
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 2px solid #25D366;
      animation: pulse-ring 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
      pointer-events: none;
    }

    @keyframes pulse-ring {
      0% { transform: scale(0.95); opacity: 0.9; }
      50% { transform: scale(1.25); opacity: 0; }
      100% { transform: scale(0.95); opacity: 0; }
    }

    .floating-contact.active .floating-pulse {
      display: none;
    }

    .floating-panel {
      position: absolute;
      bottom: 4.8rem;
      right: 0;
      width: 340px;
      background: #ffffff;
      border-radius: 1.25rem;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
      border: 1px solid #eef1f4;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      transform: translateY(15px) scale(0.96);
      transition: all 0.35s var(--ease);
      z-index: 1051;
    }

    .floating-contact.active .floating-panel {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }

    .floating-panel-header {
      background: linear-gradient(135deg, var(--green), #166b2a);
      color: white;
      padding: 1.1rem 1.3rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .floating-panel-title strong {
      display: block;
      font-size: 0.95rem;
      font-family: var(--font-heading);
      font-weight: 700;
      letter-spacing: -0.01em;
    }

    .floating-panel-title span {
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.88);
      margin-top: 2px;
      display: block;
    }

    .floating-panel-close {
      background: none;
      border: none;
      color: white;
      font-size: 1.6rem;
      line-height: 1;
      cursor: pointer;
      opacity: 0.8;
      padding: 0 0.3rem;
      transition: opacity 0.2s;
    }

    .floating-panel-close:hover {
      opacity: 1;
    }

    .floating-panel-body {
      padding: 0.75rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      background: #ffffff;
    }

    .floating-item {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      padding: 0.75rem 0.9rem;
      border-radius: 0.85rem;
      background: #f8fafc;
      transition: all 0.25s var(--ease);
      text-decoration: none;
      border: 1px solid #edf2f7;
    }

    .floating-item:hover {
      background: #f0fdf4;
      border-color: #bbf7d0;
      transform: translateX(-3px);
    }

    .floating-item.email-item:hover {
      background: #f0f9ff;
      border-color: #bae6fd;
    }

    .floating-item-icon {
      width: 2.3rem;
      height: 2.3rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: white;
    }

    .floating-item-icon.whatsapp {
      background: #25D366;
    }

    .floating-item-icon.email {
      background: var(--blue);
    }

    .floating-item-icon svg {
      width: 1.25rem;
      height: 1.25rem;
      stroke: white;
      stroke-width: 2.2;
    }

    .floating-item-text {
      display: flex;
      flex-direction: column;
    }

    .floating-item-title {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--graphite);
      font-family: var(--font-heading);
    }

    .floating-item-desc {
      font-size: 0.78rem;
      color: #64748b;
      margin-top: 1px;
    }

    @media (max-width: 480px) {
      .floating-contact {
        bottom: 1.2rem;
        right: 1.2rem;
      }
      .floating-trigger {
        width: 3.4rem;
        height: 3.4rem;
      }
      .floating-panel {
        width: calc(100vw - 2.4rem);
        right: 0;
      }
    }
