  :root {
      --primary-color: #003366;
      --secondary-color: #00a8e8;
      --accent-color: #e67e22;
      --text-color: #333333;
      --light-bg: #f4f7f6;
      --white: #ffffff;
      --dark-footer: #1a1a1a;
      --border-radius: 8px;
      --transition: all 0.3s ease;

      --primary-dark: #0083b4;
      --bg-white: #ffffff;
      --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.18);
      --radius-lg: 16px;
      --z-cookie: 900;
      --z-modal: 950;
      --z-age: 1000;
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  html {
      scroll-behavior: smooth;
  }

  body {
      font-family: 'Roboto', sans-serif;
      color: var(--text-color);
      line-height: 1.6;
      background-color: var(--white);
  }

  h1,
  h2,
  h3,
  h4 {
      color: var(--primary-color);
      margin-bottom: 1rem;
  }

  p {
      margin-bottom: 1rem;
  }

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

  ul {
      list-style: none;
  }

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

  .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
  }

  .btn {
      display: inline-block;
      padding: 12px 24px;
      border-radius: var(--border-radius);
      font-weight: 500;
      cursor: pointer;
      transition: var(--transition);
      text-align: center;
  }

  .btn-primary {
      background-color: var(--accent-color);
      color: var(--white);
      border: 2px solid var(--accent-color);
  }

  .btn-primary:hover {
      background-color: #d35400;
      border-color: #d35400;
  }

  .btn-secondary {
      background-color: transparent;
      color: var(--white);
      border: 2px solid var(--white);
  }

  .btn-secondary:hover {
      background-color: var(--white);
      color: var(--primary-color);
  }

  .section-title {
      text-align: center;
      font-size: 2.2rem;
      margin-bottom: 0.5rem;
  }

  .section-subtitle {
      text-align: center;
      max-width: 700px;
      margin: 0 auto 3rem auto;
      color: #666;
  }

  section {
      padding: 80px 0;
  }


  header {
      background-color: var(--white);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      position: sticky;
      top: 0;
      z-index: 1000;
      padding: 15px 0;
  }

  .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .logo {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary-color);
      display: flex;
      flex-direction: column;
      line-height: 1.2;
  }

  .logo span {
      font-size: 0.8rem;
      font-weight: 400;
      color: var(--secondary-color);
  }

  .nav-menu {
      display: flex;
      gap: 20px;
  }

  .nav-link {
      font-weight: 500;
      color: var(--text-color);
      transition: var(--transition);
      font-size: 0.95rem;
  }

  .nav-link:hover {
      color: var(--secondary-color);
  }

  .burger {
      display: none;
      cursor: pointer;
      font-size: 1.5rem;
  }


  #inicio {
      background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
      color: var(--white);
      text-align: center;
      padding: 120px 0 100px;
      position: relative;
  }

  #inicio h1 {
      color: var(--white);
      font-size: 3rem;
      margin-bottom: 1.5rem;
  }

  .hero-sub {
      font-size: 1.2rem;
      max-width: 800px;
      margin: 0 auto 2rem;
      opacity: 0.9;
  }

  .hero-cta {
      display: flex;
      justify-content: center;
      gap: 15px;
      flex-wrap: wrap;
      margin-bottom: 2rem;
  }

  .trust-text {
      font-size: 0.9rem;
      opacity: 0.8;
      margin-top: 1rem;
  }


  #sobre-nosotros {
      background-color: var(--white);
  }

  .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
  }

  .about-features li {
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 500;
  }

  .about-features i {
      color: var(--secondary-color);
  }


  #servicios {
      background-color: var(--light-bg);
  }

  .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
  }

  .service-card {
      background: var(--white);
      padding: 30px;
      border-radius: var(--border-radius);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      transition: var(--transition);
      text-align: center;
  }

  .service-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .service-icon {
      font-size: 2.5rem;
      color: var(--secondary-color);
      margin-bottom: 20px;
  }

  .service-card h3 {
      font-size: 1.2rem;
      margin-bottom: 15px;
  }


  #como-funciona {
      background-color: var(--white);
  }

  .steps-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
  }

  .step-item {
      display: flex;
      gap: 20px;
  }

  .step-number {
      background-color: var(--primary-color);
      color: var(--white);
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1.2rem;
      flex-shrink: 0;
  }

  .step-content h3 {
      font-size: 1.2rem;
  }


  #mejores-casas {
      background-color: #eef2f5;
  }

  .operator-card {
      background: var(--white);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 30px;
      display: flex;
      flex-direction: column;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
      border-left: 5px solid var(--secondary-color);
  }

  .operator-header {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
      gap: 20px;
      border-bottom: 1px solid #eee;
      padding-bottom: 15px;
  }

  .operator-logo-box {
      width: 120px;
      height: 60px;
      background: #f0f0f0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      color: #888;
      font-weight: bold;
  }

  .operator-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr auto;
      gap: 20px;
      align-items: start;
  }

  .op-col h4 {
      font-size: 0.9rem;
      color: #888;
      text-transform: uppercase;
      margin-bottom: 5px;
  }

  .op-col p,
  .op-col li {
      font-size: 0.95rem;
      font-weight: 500;
  }

  .rating {
      color: #f1c40f;
  }

  .payment-icons i {
      margin-right: 5px;
      color: #555;
      font-size: 1.2rem;
  }

  .cta-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }

  .license-note {
      font-size: 0.75rem;
      color: #999;
      margin-top: 5px;
      text-align: center;
  }


  #resenas {
      background-color: var(--white);
  }

  .testimonial-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
  }

  .review-card {
      background: #f9f9f9;
      padding: 25px;
      border-radius: var(--border-radius);
      position: relative;
  }

  .quote-icon {
      position: absolute;
      top: 20px;
      right: 20px;
      color: #e0e0e0;
      font-size: 2rem;
  }

  .user-info {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 15px;
  }

  .user-avatar {
      width: 50px;
      height: 50px;
      background-color: #ddd;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 1.2rem;
  }

  .user-details h4 {
      margin-bottom: 0;
      font-size: 1rem;
  }

  .user-details span {
      font-size: 0.85rem;
      color: #666;
  }

  .user-role {
      display: inline-block;
      background: #e1f5fe;
      color: var(--primary-color);
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 0.75rem;
      margin-top: 5px;
  }


  #contacto {
      background-color: var(--light-bg);
  }

  .contact-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 50px;
      background: var(--white);
      padding: 40px;
      border-radius: var(--border-radius);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .form-group {
      margin-bottom: 20px;
  }

  .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
  }

  .form-control {
      width: 100%;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-family: inherit;
  }

  .contact-info-item {
      display: flex;
      gap: 15px;
      margin-bottom: 25px;
  }

  .contact-icon {
      width: 40px;
      height: 40px;
      background: var(--light-bg);
      color: var(--primary-color);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
  }


  footer {
      background-color: var(--dark-footer);
      color: #ccc;
      padding: 60px 0 20px;
  }

  .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 40px;
      margin-bottom: 40px;
      border-bottom: 1px solid #333;
      padding-bottom: 40px;
  }

  .footer-col h4 {
      color: var(--white);
      margin-bottom: 20px;
  }

  .footer-links li {
      margin-bottom: 10px;
  }

  .footer-links a:hover {
      color: var(--secondary-color);
      text-decoration: underline;
  }

  .legal-badge {
      background: #333;
      padding: 10px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 15px;
      border: 1px solid #444;
  }

  .legal-badge i {
      color: #e74c3c;
      font-size: 1.5rem;
  }

  .disclaimer-text {
      font-size: 0.8rem;
      color: #888;
      margin-bottom: 15px;
      line-height: 1.5;
  }

  .copyright {
      text-align: center;
      font-size: 0.85rem;
      color: #666;
  }


  @media (max-width: 992px) {
      .operator-grid {
          grid-template-columns: 1fr 1fr;
      }

      .cta-col {
          grid-column: span 2;
          flex-direction: row;
          justify-content: space-between;
          background: #f9f9f9;
          padding: 15px;
          border-radius: 4px;
      }
  }

  @media (max-width: 768px) {
      .nav-menu {
          position: absolute;
          top: 70px;
          right: -100%;
          background-color: var(--white);
          flex-direction: column;
          width: 100%;
          text-align: center;
          padding: 20px 0;
          box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
          transition: 0.3s;
      }

      .nav-menu.active {
          right: 0;
      }

      .burger {
          display: block;
          color: var(--primary-color);
      }

      #inicio h1 {
          font-size: 2.2rem;
      }

      .about-grid,
      .steps-grid,
      .contact-container,
      .operator-grid {
          grid-template-columns: 1fr;
      }

      .cta-col {
          grid-column: span 1;
          flex-direction: column;
          align-items: stretch;
      }

      .operator-card {
          padding: 15px;
      }

      .operator-header {
          flex-direction: column;
          align-items: flex-start;
      }
  }

  .legal-images {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      margin: 20px auto;
  }

  .legal-images img {
      height: 50px;
      margin: 10px;
  }

  .cookie-banner {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: var(--z-cookie);
      display: none;
      justify-content: center;
      padding: 16px;
  }

  .cookie-banner__content {
      max-width: 960px;
      width: 100%;
      background: var(--bg-white);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-soft);
      padding: 16px 20px;
      display: grid;
      gap: 12px;
      border: 1px solid rgba(0, 168, 232, 0.2);
  }

  .cookie-banner__title {
      margin: 0;
      font-size: 1.1rem;
      color: var(--text-color);
  }

  .cookie-banner__text {
      margin: 0;
      font-size: 0.9rem;
      color: #4b5563;
  }

  .cookie-banner__buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-end;
  }

  /* ====== COOKIE MODAL ====== */
  .cookie-modal {
      position: fixed;
      inset: 0;
      display: none;
      z-index: var(--z-modal);
  }

  .cookie-modal__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.45);
  }

  .cookie-modal__dialog {
      position: relative;
      max-width: 520px;
      width: 100%;
      margin: auto;
      margin-top: 80px;
      background: var(--bg-white);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-soft);
      padding: 20px 22px;
      border: 1px solid rgba(0, 168, 232, 0.25);
  }

  .cookie-modal__title {
      margin: 0 0 8px;
      color: var(--text-color);
  }

  .cookie-modal__text {
      margin: 0 0 16px;
      font-size: 0.92rem;
      color: #4b5563;
  }

  .cookie-modal__options {
      display: grid;
      gap: 10px;
      margin-bottom: 18px;
  }

  .cookie-option {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      font-size: 0.9rem;
      color: #374151;
  }

  .cookie-option input[type="checkbox"] {
      margin-top: 4px;
      accent-color: var(--primary-color);
  }

  .cookie-modal__buttons {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
  }

  .age-overlay {
      position: fixed;
      inset: 0;
      display: none;
      z-index: var(--z-age);
  }

  .age-overlay__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.7);
  }

  .age-overlay__content {
      position: relative;
      max-width: 480px;
      width: 100%;
      margin: auto;
      margin-top: 80px;
      background: var(--bg-white);
      border-radius: var(--radius-lg);
      padding: 24px 22px 20px;
      box-shadow: var(--shadow-soft);
      border-top: 4px solid var(--primary-color);
      text-align: center;
  }

  .age-overlay__badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      border-radius: 999px;
      background: var(--primary-color);
      color: #ffffff;
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 10px;
  }

  .age-overlay__title {
      margin: 0 0 10px;
      color: var(--text-color);
      font-size: 1.3rem;
  }

  .age-overlay__text {
      margin: 0 0 18px;
      font-size: 0.95rem;
      color: #4b5563;
  }

  .age-overlay__buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
  }

  .btn--outline {
      background: #ffffff;
      color: var(--primary-color);
      border-color: var(--primary-color);
  }

  .btn--outline:hover {
      background: rgba(0, 168, 232, 0.06);
  }

  .btn--ghost {
      background: transparent;
      color: #4b5563;
      border-color: rgba(148, 163, 184, 0.6);
  }

  .btn--ghost:hover {
      background: rgba(15, 23, 42, 0.04);
  }

  @media (max-width: 640px) {
      .cookie-banner__content {
          padding: 14px 14px;
      }

      .cookie-banner__buttons {
          justify-content: flex-start;
      }

      .cookie-modal__dialog,
      .age-overlay__content {
          margin-top: 40px;
          margin-inline: 16px;
      }
  }

  .legal-content {
      background: var(--white);
      padding: 40px;
      border-radius: var(--border-radius);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      margin-bottom: 60px;
  }

  .update-date {
      text-align: center;
      color: #666;
      font-style: italic;
      margin-bottom: 30px;
      font-size: 0.9rem;
  }

  .intro-box {
      background-color: #e8f4f8;
      border-left: 5px solid var(--secondary-color);
      padding: 20px;
      margin-bottom: 30px;
      font-size: 1.05rem;
  }

  .tips-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin: 20px 0;
  }

  .tip-card {
      background: var(--light-bg);
      padding: 20px;
      border-radius: var(--border-radius);
      text-align: center;
  }

  .tip-card i {
      font-size: 2rem;
      color: var(--safe-green);
      margin-bottom: 10px;
  }

  .helpline-box {
      background-color: #fff5f5;
      border: 2px solid var(--alert-red);
      padding: 30px;
      border-radius: var(--border-radius);
      text-align: center;
      margin-top: 30px;
  }

  .helpline-box h3 {
      color: var(--alert-red);
      font-size: 1.4rem;
  }

  .helpline-number {
      font-size: 1.8rem;
      font-weight: 700;
      color: #333;
      margin: 10px 0;
      display: block;
  }

  .alert-box {
      background-color: var(--alert-bg);
      border: 1px solid var(--alert-border);
      color: var(--alert-text);
      padding: 20px;
      border-radius: var(--border-radius);
      margin: 25px 0;
      display: flex;
      align-items: flex-start;
      gap: 15px;
  }

  .alert-box i {
      font-size: 1.5rem;
      margin-top: 2px;
  }