/* Variables de Color (Modo Claro por defecto) */
    :root {
      --bg-main: #f8f9fa;
      --bg-card: #ffffff;
      --bg-header: rgba(255, 255, 255, 0.95);
      --border-color: #e2e8f0;
      --text-main: #0f172a;
      --text-muted: #64748b;
      --primary-btn: #0063e5;
      --primary-btn-hover: #0452be;
      --logo-image: url('/img/logotipo-light.svg');

      --theme-bg-color: #f8fafc;
      --theme-card-bg: #ffffff;
      --theme-text-color: #0f172a;
      --theme-text-muted: #64748b;
      --theme-border-color: #e2e8f0;
      --theme-accent-color: #2563eb;
    }

    /* Variables Modo Oscuro */
    [data-theme="dark"] {
      --bg-main: #0d0e15;
      --bg-card: #12141f;
      --bg-header: rgba(13, 14, 21, 0.95);
      --border-color: #1f2230;
      --text-main: #ffffff;
      --text-muted: #a0a5b5;
      --primary-btn: #0063e5;
      --primary-btn-hover: #0452be;
      --logo-image: url('/img/logotipo-dark.svg');

      --theme-bg-color: #0f172a;
      --theme-card-bg: #1e293b;
      --theme-text-color: #f8fafc;
      --theme-text-muted: #94a3b8;
      --theme-border-color: #334155;
      --theme-accent-color: #3b82f6;
    }

    /* ==========================================
   ESTILOS GENERALES
   ========================================== */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    body {
      background-color: var(--bg-main);
      color: var(--text-main);
      transition: background-color 0.3s ease, color 0.3s ease;
    }

    /* --- HEADER --- */
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background-color: var(--bg-header);
      backdrop-filter: blur(10px);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 40px;
      z-index: 1000;
      border-bottom: 1px solid var(--border-color);
      transition: background-color 0.3s ease, border-color 0.3s ease;
    }

    .logo-text {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text-main);
      text-decoration: none;
    }

    .logo {
      font-size: 1.5em;
      font-weight: bold;
    }

    .logo {
      width: 71.3px;
      height: 30px;
      background-size: contain;
      background-repeat: no-repeat;
      background-image: var(--logo-image);
    }

    .nav-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      margin-left: 40px;
    }

    .nav-links {
      display: flex;
      list-style: none;
      gap: 24px;
      margin: 0 auto;
    }

    .nav-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.95rem;
      transition: color 0.2s;
    }

    .nav-links a:hover {
      color: var(--text-main);
    }

    .nav-actions {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .btn-secondary {
      color: var(--text-main);
      text-decoration: none;
      padding: 8px 16px;
      font-size: 0.9rem;
    }

    .btn-primary {
      background-color: var(--primary-btn);
      color: #ffffff;
      text-decoration: none;
      padding: 8px 18px;
      border-radius: 6px;
      font-weight: 600;
      font-size: 0.9rem;
      transition: background-color 0.2s ease;
    }

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

    /* Hamburger */
    .hamburger {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      flex-direction: column;
      gap: 5px;
      padding: 4px;
    }

    .hamburger span {
      display: block;
      width: 24px;
      height: 2px;
      background-color: var(--text-main);
    }

    /* --- ADAPTACIÓN MÓVIL --- */
    @media (max-width: 900px) {
      .hamburger {
        display: flex;
      }

      .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin-left: 0;
        background-color: var(--bg-main);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        gap: 24px;
        padding: 30px 20px;
        display: none;
      }

      .nav-container.active {
        display: flex;
      }

      .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 0;
      }

      .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
      }

      .btn-secondary,
      .btn-primary {
        width: 100%;
        text-align: center;
      }
    }

    /* Estilos Generales de Sección */
    section {
      padding: 100px 20px 60px;
      /* Offset superior para compensar el header fijo */
      max-width: 1100px;
      margin: 0 auto;
      text-align: center;
    }

    .section-title {
      font-size: 2rem;
      text-align: center;
      margin-bottom: 30px;
    }

    /* HERO / INDEX */
    .hero {
      text-align: center;
      padding-top: 140px;
      padding-bottom: 80px;
    }

    .hero h1 {
      font-size: 3rem;
      margin-bottom: 16px;
    }

    .hero p {
      font-size: 1.2rem;
      color: #a0a5b5;
      max-width: 600px;
      margin: 0 auto 30px;
    }

    .image {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      overflow: hidden;
      position: relative;
      text-align: center;
    }

    .image img {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 105%;
      /* ancho 110% */
      height: 105%;
      /* altura 110% */
      transform: translate(-50%, -50%);
      /* centra la imagen */
      object-fit: cover;
      /* rellena todo, recorta si es necesario */
    }

    /* CARACTERÍSTICAS (Grid de 4) */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
    }

    .feature-card {
      background: var(--bg-main);
      border: 1px solid #252836;
      border-radius: 8px;
      padding: 24px;
    }

    /* PREGUNTAS FRECUENTES */
    .faq-item {
      background: var(--bg-main);
      border: 1px solid #252836;
      border-radius: 8px;
      padding: 20px;
      margin-bottom: 12px;
    }

    .faq-item h3 {
      font-size: 1.1rem;
      margin-bottom: 8px;
    }

    .faq-item p {
      color: #a0a5b5;
      font-size: 0.95rem;
    }

    /* precios */
    .pricing-container {

      width: 100%;
      text-align: center;
    }

    *X {
      border: 0.01px dashed #ff0000 !important;
    }

    /* Título y subtítulo */
    .title {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 8px;
      color: #f9f9f9;
    }

    .subtitle {
      font-size: 1rem;
      margin-bottom: 24px;
    }

    /* Selector de pestañas / alternador */
    .toggle-container {
      display: inline-flex;
      background-color: #1a1c29;
      padding: 4px;
      border-radius: 30px;
      margin-bottom: 40px;
    }

    .toggle-btn {
      background: none;
      border: none;
      color: #a0a5b5;
      padding: 10px 24px;
      border-radius: 20px;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .toggle-btn.active {
      background-color: #0063e5;
      color: #ffffff;
    }

    /* Rejilla de tarjetas */
    .plans-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }

    /* Tarjeta individual */
    .plan-card {
      background: var(--bg-main);
      border: 1px solid #252836;
      border-radius: 12px;
      padding: 32px 24px;
      display: flex;
      flex-direction: column;
      text-align: left;
      position: relative;
    }

    .brand-logo {
      font-size: 1.4rem;
      font-weight: bold;
      margin-bottom: 12px;
    }

    .plan-name {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 4px;
    }

    .plan-tagline {
      /*color: #a0a5b5;*/
      color: var(--text-muted);
      font-size: 0.9rem;
      margin-bottom: 24px;
    }

    /* Lista de características */
    .features-list {
      list-style: none;
      margin-bottom: 32px;
      flex-grow: 1;
    }

    .features-list li {
      margin-bottom: 12px;
      font-size: 0.95rem;
      /*color: #d1d5db;*/
      color: var(--text-muted);
      display: flex;
      align-items: flex-start;
      line-height: 1.4;
    }

    .features-list li::before {
      content: "✓";
      /*color: #ffffff;*/
      color: var(--text-muted);
      font-weight: bold;
      margin-right: 10px;
    }

    /* Precio y Botón */
    .price-container {
      margin-bottom: 20px;
    }

    .price {
      font-size: 1.8rem;
      font-weight: 700;
    }

    .period {
      font-size: 0.9rem;
      color: #a0a5b5;
      font-weight: normal;
    }

    .select-btn {
      width: 100%;
      background-color: #0063e5;
      color: #ffffff;
      border: none;
      padding: 14px;
      border-radius: 6px;
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .select-btn:hover {
      background-color: #0452be;
    }



    /* ==========================================
   FOOTER INSTITUCIONAL (NAV-FOOTER)
   ========================================== */
    .nav-footer {
      background-color: var(--bg-card);
      border-top: 1px solid var(--border-color);
      padding: 60px 20px;
      transition: background-color 0.3s ease, border-color 0.3s ease;
    }

    .footer-container {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      gap: 40px;
      flex-wrap: wrap;
    }

    .footer-brand {
      max-width: 300px;
    }

    .footer-brand p {
      color: var(--text-muted);
      font-size: 0.9rem;
      margin-top: 12px;
      line-height: 1.5;
    }

    .footer-links-grid {
      display: flex;
      gap: 60px;
      flex-wrap: wrap;
    }

    .footer-col h4 {
      color: var(--text-main);
      font-size: 0.95rem;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .footer-col ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-col a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.2s ease;
    }

    .footer-col a:hover {
      color: var(--text-main);
    }

    /* ==========================================
   FOOTER DE CRÉDITOS Y COPYRIGHT
   ========================================== */
    .footer-credits {
      background-color: var(--bg-main);
      border-top: 1px solid var(--border-color);
      padding: 24px 20px;
      transition: background-color 0.3s ease, border-color 0.3s ease;
    }

    .credits-container {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }

    .credits-container p {
      color: var(--text-muted);
      font-size: 0.85rem;
    }

    .social-links {
      display: flex;
      gap: 20px;
    }

    .social-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.85rem;
      transition: color 0.2s ease;
    }

    .social-links a:hover {
      color: var(--text-main);
    }

    /* ==========================================
   RESPONSIVO PARA MÓVIL
   ========================================== */
    @media (max-width: 768px) {
      .footer-container {
        flex-direction: column;
        gap: 30px;
      }

      .footer-links-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        width: 100%;
      }

      .credits-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
      }
    }

    /* Segmented Control (Selector de 3 botones) */
    .theme-selector {
      display: flex;
      background-color: var(--theme-bg-color);
      border: 1px solid var(--theme-border-color);
      border-radius: 8px;
      padding: 4px;
      gap: 4px;
      margin: 0.5rem 0;

      /* Centrado en el contenedor padre */
      margin-left: auto;
      margin-right: auto;
      max-width: 320px;
      /* Ancho máximo para que no quede demasiado estirado */
      width: 100%;
      /* Responsivo en pantallas pequeñas */
      box-sizing: border-box;
    }

    .theme-btn {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 8px 12px;
      border: none;
      background: transparent;
      color: var(--theme-text-muted);
      font-size: 0.875rem;
      font-weight: 500;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .theme-btn:hover {
      color: var(--theme-text-color);
    }

    .theme-btn.active {
      background-color: var(--theme-card-bg);
      color: var(--theme-accent-color);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .theme-btn svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }