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


   :root {
  /* 30 % — estructura y tipografía */
  --primary-color: #1A1A2E;
  --secondary-color: #3D3D5C;
  --dark-blue: #0D0D0D;

  /* 10 % — acento e interacción */
  --accent-color: #1CDAFF;
  --accent:    #1CDAFF;
  --accent2:   #0BBDE0;
  
  /* 60 % — fondos y espacios */
  --white:          #FFFFFF;
  --light-gray:     #F4F6F8;
  --border-color:   #E8ECF0;

  /* Texto */
  --text-primary:   #0D0D0D;
  --text-secondary: #3D3D5C;
}

    body {
      font-family: 'DM Sans', 'Segoe UI', sans-serif;
      color: var(--text-primary);
      background: var(--white);
      line-height: 1.7;
    }

    /* ── HEADER ── */
    header {
      background: var(--white);
      border-bottom: 1px solid var(--border-color);
      position: fixed;
      top: 0; width: 100%;
      z-index: 1000;
      transition: box-shadow 0.3s ease;
      padding: 0.5rem 2.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
    header img { height: 80px; }

    .nav-menu {
      display: flex;
      list-style: none;
      gap: 2rem;
      align-items: center;
    }
    .nav-menu a, .submenu-btn {
      display: block;
      padding: 0.8rem 1.2rem;
      text-decoration: none;
      color: var(--text-primary);
      font-weight: 500;
      font-size: 1rem;
      transition: color 0.3s ease;
      position: relative;
      background: none; border: none;
      cursor: pointer; font-family: sans-serif;
    }
    .nav-menu a::after, .submenu-btn::after {
      content: '';
      position: absolute;
      bottom: 6px; left: 50%;
      width: 0; height: 2px;
      background: var(--primary-color);
      transition: all 0.3s ease;
      transform: translateX(-50%);
    }
    .nav-menu a:hover::after, .submenu-btn:hover::after { width: 70%; }
    .nav-menu a:hover, .submenu-btn:hover { color: var(--primary-color); }

    .submenu {
      position: absolute; top: 110%; left: 0;
      background: white; width: 300px;
      list-style: none; padding: 0.5rem 0;
      box-shadow: 0 10px 25px rgba(0,0,0,0.08);
      display: block !important;
      opacity: 0; visibility: hidden;
      transform: translateY(10px);
      transition: all 0.25s ease; z-index: 100;
    }
    .dropdown {
        position: relative;
    }

    .dropdown:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .submenu li a {
        display: block;
        padding: 12px 18px;
        font-size: 1rem;
        text-decoration:none;
        color: var(--text-primary);
    }

    .submenu li a:hover {
        background: #f5f7fa;
        color: var(--primary-color);
    }

    .submenu a::after {
        display: none;
    }

    .hamburguesa {
      background: none;
      border: none;
      color: #000;
      font-size: 2rem;
      cursor: pointer;
      display: none;
    }

    /* ── HERO ── */
    .terms-hero {
      background: var(--primary-color);
      padding: 140px 24px 80px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .terms-hero::before {
      content: '';
      position: absolute; inset: 0;
      background:
        radial-gradient(ellipse 55% 60% at 10% 50%, rgba(28,218,255,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 45% 50% at 90% 50%, rgba(28,218,255,0.05) 0%, transparent 60%);
      pointer-events: none;
    }
    /* grid sutil */
    .terms-hero::after {
      content: '';
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
      background-size: 60px 60px;
      pointer-events: none;
    }
    .terms-hero-inner { position: relative; z-index: 1; }

    .terms-badge {
      display: inline-flex;
      align-items: center; gap: 8px;
      font-family: 'Syne', sans-serif;
      font-size: 0.7rem; font-weight: 700;
      letter-spacing: 0.2em; text-transform: uppercase;
      color: var(--accent-color);
      border: 1px solid rgba(28,218,255,0.3);
      background: rgba(28,218,255,0.06);
      padding: 6px 16px; border-radius: 40px;
      margin-bottom: 28px;
      opacity: 0;
      animation: fadeDown 0.7s ease 0.1s forwards;
    }
    .terms-badge-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--accent-color);
      animation: pulse 2s ease-in-out infinite;
    }
    @keyframes pulse {
      0%,100% { opacity:1; transform:scale(1); }
      50%      { opacity:.4; transform:scale(0.6); }
    }

    .terms-hero h1 {
      font-family: 'Syne', sans-serif;
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 800;
      color: var(--white);
      line-height: 1.1;
      letter-spacing: -0.025em;
      margin-bottom: 1.2rem;
      opacity: 0;
      animation: fadeDown 0.9s cubic-bezier(0.22,1,0.36,1) 0.25s forwards;
    }
    .terms-hero h1 span {
      color: var(--accent-color);
    }
    .terms-hero-meta {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      flex-wrap: wrap;
      margin-top: 1.5rem;
      opacity: 0;
      animation: fadeUp 0.8s ease 0.5s forwards;
    }
    .terms-hero-meta span {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.5);
      display: flex; align-items: center; gap: 6px;
    }
    .terms-hero-meta span strong { color: rgba(255,255,255,0.8); }

    /* ── LAYOUT PRINCIPAL ── */
    .terms-layout {
      max-width: 1200px;
      margin: 0 auto;
      padding: 64px 24px 100px;
      display: grid;
      grid-template-columns: 260px 1fr;
      gap: 60px;
      align-items: start;
    }

    /* ── SIDEBAR / ÍNDICE ── */
    .terms-sidebar {
      position: sticky;
      top: 110px;
    }
    .terms-nav-title {
      font-family: 'Syne', sans-serif;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent-color);
      margin-bottom: 16px;
    }
    .terms-nav {
      list-style: none;
      border-left: 2px solid var(--border-color);
    }
    .terms-nav li a {
      display: block;
      padding: 8px 16px;
      font-size: 0.875rem;
      color: var(--text-secondary);
      text-decoration: none;
      transition: color 0.25s ease, padding-left 0.25s ease, border-color 0.25s ease;
      border-left: 2px solid transparent;
      margin-left: -2px;
      line-height: 1.4;
    }
    .terms-nav li a:hover,
    .terms-nav li a.active {
      color: var(--primary-color);
      padding-left: 20px;
      border-left-color: var(--accent-color);
    }
    .terms-nav li a.active {
      font-weight: 500;
      color: var(--accent-color);
    }

    /* ── CONTENIDO ── */
    .terms-content section {
      margin-bottom: 56px;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .terms-content section.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .section-number {
      font-family: 'Syne', sans-serif;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent-color);
      margin-bottom: 10px;
    }

    .terms-content h2 {
      font-family: 'Syne', sans-serif;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary-color);
      margin-bottom: 18px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border-color);
      display: flex; align-items: center; gap: 10px;
    }
    .terms-content h2 .section-icon {
      width: 32px; height: 32px;
      background: var(--light-gray);
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 14px;
      flex-shrink: 0;
      transition: background 0.3s ease;
    }
    .terms-content section:hover h2 .section-icon {
      background: rgba(28,218,255,0.1);
    }

    .terms-content p {
      font-size: 1rem;
      color: var(--text-secondary);
      margin-bottom: 14px;
      line-height: 1.8;
    }

    .terms-content ul {
      list-style: none;
      margin: 12px 0 18px;
    }
    .terms-content ul li {
      font-size: 0.97rem;
      color: var(--text-secondary);
      padding: 8px 0 8px 24px;
      position: relative;
      border-bottom: 1px solid var(--border-color);
      line-height: 1.7;
    }
    .terms-content ul li:last-child { border-bottom: none; }
    .terms-content ul li::before {
      content: '';
      position: absolute;
      left: 0; top: 50%;
      transform: translateY(-50%);
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--accent-color);
    }

    /* Bloque de alerta */
    .terms-alert {
      background: rgba(28,218,255,0.05);
      border: 1px solid rgba(28,218,255,0.2);
      border-left: 3px solid var(--accent-color);
      border-radius: 0 8px 8px 0;
      padding: 16px 20px;
      margin: 18px 0;
      font-size: 0.95rem;
      color: var(--text-secondary);
      line-height: 1.7;
    }
    .terms-alert strong { color: var(--primary-color); }

    /* Bloque de advertencia */
    .terms-warn {
      background: rgba(255,180,0,0.05);
      border: 1px solid rgba(255,180,0,0.25);
      border-left: 3px solid #f59e0b;
      border-radius: 0 8px 8px 0;
      padding: 16px 20px;
      margin: 18px 0;
      font-size: 0.95rem;
      color: var(--text-secondary);
      line-height: 1.7;
    }
    .terms-warn strong { color: #92400e; }

    /* ── CONTACT BOX ── */
    .terms-contact-box {
      background: var(--primary-color);
      border-radius: 16px;
      padding: 40px;
      text-align: center;
      margin-top: 56px;
      position: relative;
      overflow: hidden;
    }
    .terms-contact-box::before {
      content: '';
      position: absolute; inset: 0;
      background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(28,218,255,0.1) 0%, transparent 70%);
      pointer-events: none;
    }
    .terms-contact-box h3 {
      font-family: 'Syne', sans-serif;
      font-size: 1.4rem; font-weight: 700;
      color: var(--white);
      margin-bottom: 10px;
      position: relative; z-index: 1;
    }
    .terms-contact-box p {
      color: rgba(255,255,255,0.6);
      font-size: 0.95rem;
      margin-bottom: 24px;
      position: relative; z-index: 1;
    }
    .terms-contact-box a {
      display: inline-flex;
      align-items: center; gap: 8px;
      background: var(--accent-color);
      color: var(--primary-color);
      padding: 12px 28px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.95rem;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative; z-index: 1;
    }
    .terms-contact-box a:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 30px rgba(28,218,255,0.35);
    }

    /* ── FOOTER ── */
    .footer {
      background: var(--primary-color);
      color: var(--white);
      padding: 3rem 2rem 2rem;
    }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
    .footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
    .footer-col { flex: 1; min-width: 200px; }
    .footer-col h3, .footer-col h4 { margin-bottom: 1rem; font-size: 1.1rem; opacity: 0.9; }
    .footer-col p { margin-bottom: 0.5rem; opacity: 0.8; font-size: 0.9rem; }
    .footer-col ul { list-style: none; padding: 0; }
    .footer-col ul li { margin-bottom: 0.5rem; }
    .footer-col a { color: var(--white); text-decoration: none; opacity: 0.8; transition: opacity 0.3s ease, color 0.3s ease; }
    .footer-col a:hover { opacity: 1; color: var(--accent-color); }
    .social-links { display: flex; flex-direction: column; gap: 0.75rem; }
    .social-links a {
      display: flex; align-items: center; gap: 0.5rem;
      padding: 0.75rem 1.5rem;
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 5px;
      transition: all 0.3s ease;
      font-weight: 500; opacity: 1;
    }
    .social-links a:hover {
      background: rgba(28,218,255,0.1);
      border-color: rgba(28,218,255,0.4);
      transform: translateX(5px);
    }
    .social-links img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
    .footer-bottom {
      text-align: center; margin-top: 2rem; padding-top: 1rem;
      border-top: 1px solid rgba(255,255,255,0.2);
      font-size: 0.85rem; opacity: 0.8;
    }
    .footer-bottom a { color: var(--white); text-decoration: none; margin: 0 0.5rem; }
    .footer-bottom a:hover { text-decoration: underline; }

    /* ── KEYFRAMES ── */
    @keyframes fadeDown {
      from { opacity: 0; transform: translateY(-28px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 1024px) {
      header { flex-wrap: wrap; justify-content: center; padding: 1rem; gap: 1rem; }

      header img { height: 70px; }
      .terms-layout { grid-template-columns: 1fr; gap: 40px; }
      .terms-sidebar { position: static; }
      .terms-nav { display: flex; flex-wrap: wrap; gap: 8px; border-left: none; border-bottom: 2px solid var(--border-color); padding-bottom: 16px; }
      .terms-nav li a { border-left: none; border-bottom: 2px solid transparent; margin-left: 0; padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; }
      .terms-nav li a:hover, .terms-nav li a.active { border-left: none; border-bottom-color: var(--accent-color); padding-left: 12px; background: var(--light-gray); }
       .submenu-btn{
         color: var(--white);
      }
    }

    @media (max-width: 768px) {
      header { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; }

       header img {
        width: auto;
        height: 60px;
      }

      .hamburguesa { display: block; }
      .nav-menu {
        position: fixed; top: 70px; left: 0; width: 100%;
        background: rgba(0,0,0,0.6);
        -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
        flex-direction: column; align-items: center; padding: 1rem 0;
        clip-path: circle(0px at 90% -10%);
        pointer-events: none; transition: clip-path 0.4s ease;
      }
      .nav-menu.active { clip-path: circle(1000px at 90% -10%); pointer-events: all; }
      .nav-menu a { font-size: 1.1rem; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.1); }
      .nav-menu li { opacity: 0; transform: translateY(20px); transition: all 0.3s ease; }
      .nav-menu.active li { opacity: 1; transform: translateY(0); }
      .nav-menu li:nth-child(1){transition-delay:0.1s;} .nav-menu li:nth-child(2){transition-delay:0.2s;} .nav-menu li:nth-child(3){transition-delay:0.3s;} .nav-menu li:nth-child(4){transition-delay:0.4s;}
      .terms-layout { padding: 40px 16px 60px; }
      .terms-hero { padding: 120px 16px 60px; }
      .terms-contact-box { padding: 28px 20px; }
      .footer-row { flex-direction: column; text-align: center; }
    }
