/* Envuelta en `@layer webflow` por la refactorización de componentes
   compartidos.
 *
 * Estas hojas redefinen nombres de utilidad que Tailwind también usa: .hidden,
 * .flex, .grid, .block, .gap-*, .text-*. Al cargarse después de Tailwind le
 * ganaban por orden de cascada, y el header y el footer compartidos entraban en
 * una página Webflow con su menú en `hidden` y el `min-[1000px]:flex` que debía
 * revertirlo perdiendo la discusión: el menú no aparecía nunca.
 *
 * Dentro de una capa se acaba el conflicto. Cualquier regla fuera de capa gana a
 * cualquier regla dentro de capa, sin importar especificidad ni orden de carga,
 * así que Tailwind gana siempre y estas hojas siguen estilando todo lo demás
 * exactamente igual que antes: entre ellas la cascada no cambia, porque todas
 * están en la misma capa.
 *
 * El puesto de la capa lo reserva `@layer webflow;` en globals.css, declarado
 * antes que las capas de Tailwind.
 */
@layer webflow {

    /* Country Selector */
    .country-selector {
      position: relative;
      display: inline-flex;
      align-items: center;
      margin-left: 12px;
    }

    .country-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 2px solid #e5e5e5;
      background: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      transition: all 0.2s ease;
    }

    .country-btn:hover {
      border-color: #141414;
    }

    .country-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      padding-top: 8px;
      background: transparent;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.2s ease;
      z-index: 1000;
    }

    .country-dropdown-inner {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
      min-width: 180px;
      overflow: hidden;
    }

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

    .country-option {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      text-decoration: none;
      color: #333;
      font-size: 14px;
      font-weight: 500;
      transition: background 0.2s ease;
    }

    .country-option:hover {
      background: #f5f5f5;
    }

    .country-option.active {
      background: #f0f0f0;
    }

    .country-option span.flag {
      font-size: 20px;
    }
  


    /* Fila de metadatos del plugin bajo el hero */
    .wcplugin-hero-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 32px;
    }

    .wcplugin-hero-meta span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: 'Geist Mono', monospace;
      font-size: 13px;
      color: rgba(255, 255, 255, 0.6);
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 100px;
      padding: 6px 14px;
    }

    .wcplugin-hero-meta span strong {
      color: #cef17b;
      font-weight: 500;
    }

    /* Rejilla de dos columnas para los cuatro modos de CFDI */
    .wcplugin-grid-2 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .wcplugin-mode-tag {
      display: inline-block;
      font-family: 'Geist Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #6b7280;
      background: #fff;
      border: 1px solid #e5e5e5;
      border-radius: 100px;
      padding: 5px 12px;
      margin-bottom: 14px;
    }

    /* Lista de requisitos dentro de las tarjetas */
    .wcplugin-note {
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      color: #666;
      line-height: 1.6;
      margin: 28px 0 0 0;
      padding: 16px 20px;
      background: #f8f8f8;
      border-radius: 12px;
      border: 1px solid #ebebeb;
    }

    .wcplugin-note strong {
      color: #141414;
      font-weight: 500;
    }

    /* Pasos numerados de instalacion */
    .wcplugin-steps {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      counter-reset: wcplugin-step;
    }

    .wcplugin-steps li {
      counter-increment: wcplugin-step;
      background: #fafafa;
      border: 1px solid #ebebeb;
      border-radius: 20px;
      padding: 28px;
    }

    .wcplugin-steps li::before {
      content: counter(wcplugin-step);
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: #141414;
      color: #fff;
      font-family: 'Geist Mono', monospace;
      font-size: 14px;
      margin-bottom: 16px;
    }

    .wcplugin-step-title {
      font-family: 'Geist', sans-serif;
      font-size: 18px;
      font-weight: 600;
      color: #111;
      margin: 0 0 8px 0;
    }

    .wcplugin-step-text {
      font-family: 'Inter', sans-serif;
      font-size: 15px;
      color: #666;
      line-height: 1.6;
      margin: 0;
    }

    .wcplugin-step-text code {
      font-family: 'Geist Mono', monospace;
      font-size: 13px;
      background: #fff;
      border: 1px solid #e5e5e5;
      border-radius: 6px;
      padding: 2px 6px;
      color: #141414;
    }

    /* Bloque oscuro de seguridad */
    .wcplugin-security-section {
      background: #0a0a0a;
      padding: 100px 24px;
    }

    .wcplugin-security-container {
      max-width: 800px;
      margin: 0 auto;
      text-align: center;
    }

    .wcplugin-security-title {
      font-family: 'Geist', sans-serif;
      font-size: 44px;
      font-weight: 500;
      line-height: 1.15;
      letter-spacing: -0.02em;
      color: #fff;
      margin: 16px 0 24px 0;
    }

    .wcplugin-security-text {
      font-family: 'Inter', sans-serif;
      font-size: 17px;
      line-height: 1.7;
      color: rgba(255, 255, 255, 0.6);
      margin: 0 auto 20px;
      max-width: 640px;
    }

    .wcplugin-security-text strong {
      color: #fff;
      font-weight: 500;
    }

    /* Breakpoints: 991 / 767 / 479 */
    @media screen and (max-width: 991px) {
      .wcplugin-security-section {
        padding: 80px 24px;
      }

      .wcplugin-security-title {
        font-size: 38px;
      }
    }

    @media screen and (max-width: 767px) {
      .wcplugin-grid-2,
      .wcplugin-steps {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      .wcplugin-security-section {
        padding: 64px 20px;
      }

      .wcplugin-security-title {
        font-size: 32px;
      }

      .wcplugin-security-text {
        font-size: 15px;
      }

      .wcplugin-steps li {
        padding: 24px;
      }
    }

    @media screen and (max-width: 479px) {
      .wcplugin-hero-meta {
        gap: 8px;
        margin-top: 24px;
      }

      .wcplugin-hero-meta span {
        font-size: 11px;
        padding: 5px 12px;
      }

      .wcplugin-security-section {
        padding: 54px 20px;
      }

      .wcplugin-security-title {
        font-size: 26px;
      }

      .wcplugin-security-text {
        font-size: 14px;
      }
    }
}
