/*
Theme Name:   Ibidem Shop Buena
Description:  Tema base para el servicio de traducción jurada de Ibidemgroup.
Author:       Ibidemgroup
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  ibidem-shop-theme
*/

/* Fuentes: se cargan por <link> en header.php (preconnect + stylesheet), no por @import bloqueante. */

/*
 * ==========================================================================
 * 1. VARIABLES CSS (TOKENS DE DISEÑO)
 * ==========================================================================
 */
:root {
  /* --- COLORES --- */
  --color-primary: #007bff;        /* Azul principal de acción */
  --color-secondary: #6c757d;      /* Gris para texto/iconos secundarios */
  --color-success: #28a745;        /* Verde para éxito/OK */
  --color-error: #dc3545;          /* Rojo para errores/alerta */

  --color-background: #fff;     /* Fondo de la página (gris claro) */
  --color-surface: #ffffff;        /* Fondo de tarjetas, contenedores (blanco) */
  --color-text-dark: #000000;      /* Texto principal (visible) */
  --color-text-light: #ffffff;     /* Texto sobre fondo oscuro */
  --color-border: #e0e0e0;
  --shadow-default: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);

  /* Paleta tanda R (unificada) */
  --color-accent: #2A5FD9;             /* Azul de acción/selección (botón activo, borde elegido) */
  --color-disabled: #929292;           /* Texto/elementos no seleccionados o deshabilitados */
  --color-btn-inactive-bg: #D6D6D6;    /* Fondo de botón inactivo */
  --color-btn-inactive-text: #606060;  /* Texto de botón inactivo */

  /* --- TIPOGRAFÍA --- */
  --font-family-base: 'Roboto', sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Escala de Tamaño de Fuente (Basado en 16px) */
  --font-size-base: 1rem;       /* 16px */
  --font-size-sm: 0.875rem;     /* 14px (pequeño/etiquetas) */
  --font-size-lg: 1.125rem;     /* 18px */

  /* Tamaños de Encabezados */
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.75rem;
  --font-size-h4: 1.1rem;
  --font-size-h5: 1.25rem;
  --font-size-h6: 1rem;

  /* --- ESPACIADO --- */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 2.5rem;

  @media(max-width:1240px){
    --font-size-base: 0.875em;       /* 16px */
    --font-size-sm: 0.875rem;     /* 14px (pequeño/etiquetas) */
    --font-size-lg: 1.125rem;     /* 18px */
  }
}


/*
 * ==========================================================================
 * 2. RESET Y ESTILOS BASE
 * ==========================================================================
 */
* {
  /* border-box facilita el diseño responsive */
  box-sizing: border-box;
}

html {
  font-size: 100%;
  height:100%;
}

body {
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background-color: var(--color-background);
  color: var(--color-text-dark);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* --- TIPOGRAFÍA POR DEFECTO --- */
p, ul, ol, dl {
  margin-top: 0;
  margin-bottom: var(--space-xl);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text-dark);
  margin-top:0;
  margin-bottom: var(--space-sm);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4);
@media (max-width:1240px){
  font-size:16px;
  margin-bottom:15px;
}
}
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); }

/* Enlaces */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #0056b3;
}


/*
 * ==========================================================================
 * 3. ESTRUCTURA GLOBAL (Layouts)
 * ==========================================================================
 */
.container {
  width:100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}


/*
 * ==========================================================================
 * 4. NAVEGACIÓN PRINCIPAL (Placeholder para el menú principal)
 * ==========================================================================
 */
/* Aquí irían los estilos para #site-navigation, wp_nav_menu, etc. */


/*
 * ==========================================================================
 * 5. UTILITIES Y COMPONENTES GENÉRICOS (Botones, Formularios)
 * ==========================================================================
 */
.btn {
  padding: var(--space-xs) var(--space-md);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  transition: background-color 0.2s;
}
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}
.btn-primary:hover {
  background-color: #0056b3;
}
/*
 * ==========================================================================
 * 5. UTILITIES Y COMPONENTES GENÉRICOS (Continuación: Espaciado Completo)
 * ==========================================================================
 */

/* --- MARGINES (m) --- */

/* Todos los márgenes (m) */
.m-xs { margin: var(--space-xs) !important; }
.m-sm { margin: var(--space-sm) !important; }
.m-md { margin: var(--space-md) !important; }
.m-lg { margin: var(--space-lg) !important; }
.m-xl { margin: var(--space-xl) !important; }

/* Margen Vertical (my) */
.my-xs { margin-top: var(--space-xs) !important; margin-bottom: var(--space-xs) !important; }
.my-sm { margin-top: var(--space-sm) !important; margin-bottom: var(--space-sm) !important; }
.my-md { margin-top: var(--space-md) !important; margin-bottom: var(--space-md) !important; }
.my-lg { margin-top: var(--space-lg) !important; margin-bottom: var(--space-lg) !important; }
.my-xl { margin-top: var(--space-xl) !important; margin-bottom: var(--space-xl) !important; }

/* Margen Horizontal (mx) */
.mx-xs { margin-left: var(--space-xs) !important; margin-right: var(--space-xs) !important; }
.mx-sm { margin-left: var(--space-sm) !important; margin-right: var(--space-sm) !important; }
.mx-md { margin-left: var(--space-md) !important; margin-right: var(--space-md) !important; }
.mx-lg { margin-left: var(--space-lg) !important; margin-right: var(--space-lg) !important; }
.mx-xl { margin-left: var(--space-xl) !important; margin-right: var(--space-xl) !important; }

/* Margen Superior (mt) */
.mt-xs { margin-top: var(--space-xs) !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }

/* Margen Inferior (mb) */
.mb-xs { margin-bottom: var(--space-xs) !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }
.mb-xl { margin-bottom: var(--space-xl) !important; }

/* Margen Izquierdo (ml) */
.ml-xs { margin-left: var(--space-xs) !important; }
.ml-sm { margin-left: var(--space-sm) !important; }
.ml-md { margin-left: var(--space-md) !important; }
.ml-lg { margin-left: var(--space-lg) !important; }
.ml-xl { margin-left: var(--space-xl) !important; }

/* Margen Derecho (mr) */
.mr-xs { margin-right: var(--space-xs) !important; }
.mr-sm { margin-right: var(--space-sm) !important; }
.mr-md { margin-right: var(--space-md) !important; }
.mr-lg { margin-right: var(--space-lg) !important; }
.mr-xl { margin-right: var(--space-xl) !important; }


/* --- PADDINGS (p) --- */

/* Todo el padding (p) */
.p-xs { padding: var(--space-xs) !important; }
.p-sm { padding: var(--space-sm) !important; }
.p-md { padding: var(--space-md) !important; }
.p-lg { padding: var(--space-lg) !important; }
.p-xl { padding: var(--space-xl) !important; }

/* Padding Vertical (py) */
.py-xs { padding-top: var(--space-xs) !important; padding-bottom: var(--space-xs) !important; }
.py-sm { padding-top: var(--space-sm) !important; padding-bottom: var(--space-sm) !important; }
.py-md { padding-top: var(--space-md) !important; padding-bottom: var(--space-md) !important; }
.py-lg { padding-top: var(--space-lg) !important; padding-bottom: var(--space-lg) !important; }
.py-xl { padding-top: var(--space-xl) !important; padding-bottom: var(--space-xl) !important; }

/* Padding Horizontal (px) */
.px-xs { padding-left: var(--space-xs) !important; padding-right: var(--space-xs) !important; }
.px-sm { padding-left: var(--space-sm) !important; padding-right: var(--space-sm) !important; }
.px-md { padding-left: var(--space-md) !important; padding-right: var(--space-md) !important; }
.px-lg { padding-left: var(--space-lg) !important; padding-right: var(--space-lg) !important; }
.px-xl { padding-left: var(--space-xl) !important; padding-right: var(--space-xl) !important; }

/* Padding Superior (pt) */
.pt-xs { padding-top: var(--space-xs) !important; }
.pt-sm { padding-top: var(--space-sm) !important; }
.pt-md { padding-top: var(--space-md) !important; }
.pt-lg { padding-top: var(--space-lg) !important; }
.pt-xl { padding-top: var(--space-xl) !important; }

/* Padding Inferior (pb) */
.pb-xs { padding-bottom: var(--space-xs) !important; }
.pb-sm { padding-bottom: var(--space-sm) !important; }
.pb-md { padding-bottom: var(--space-md) !important; }
.pb-lg { padding-bottom: var(--space-lg) !important; }
.pb-xl { padding-bottom: var(--space-xl) !important; }

/* Padding Izquierdo (pl) */
.pl-xs { padding-left: var(--space-xs) !important; }
.pl-sm { padding-left: var(--space-sm) !important; }
.pl-md { padding-left: var(--space-md) !important; }
.pl-lg { padding-left: var(--space-lg) !important; }
.pl-xl { padding-left: var(--space-xl) !important; }

/* Padding Derecho (pr) */
.pr-xs { padding-right: var(--space-xs) !important; }
.pr-sm { padding-right: var(--space-sm) !important; }
.pr-md { padding-right: var(--space-md) !important; }
.pr-lg { padding-right: var(--space-lg) !important; }
.pr-xl { padding-right: var(--space-xl) !important; }

/* --- MARGEN CERO Y AUTO --- */
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.p-0 { padding: 0 !important; }
.m-auto { margin: 0 auto !important; }

/* --- Flexbox & Alignment Utilities --- */
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between{ justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-md{
  gap: var(--space-md);
}
.align-center { align-items: center; }
.text-center { text-align: center !important; }

/*
 * ==========================================================================
 * 6. ESTILOS DE CABECERA (HEADER)
 * ==========================================================================
 */
header {
  padding: 0;
  //background-color: lightblue;
  border-bottom: 1px solid var(--color-border);
}

/* --- BARRA SUPERIOR (TOP BAR) --- */
.top_bar {
  display:flex;
  margin: 0 auto;
  padding: 5px 20px;
  border-bottom: 1px solid var(--color-border);
  background-color:#f1f1f1;


  justify-content: flex-end;
  gap: var(--space-sm);
  span{
    font-size: 12px;
  }
}

.top_bar a {
  font-size: var(--font-size-sm);
  color: var(--color-secondary);
  text-decoration: none;
}

/* --- BARRA PRINCIPAL (MAIN BAR) --- */
.main_bar {
  margin: 0 auto;
  padding: var(--space-sm) 50px;

  display: flex;
  align-items: center;
}

/* --- LOGO --- */
.main_bar .logo {
  max-height: 60px;
  max-width: 280px;
  width:100%;
  height: auto;
  transition: opacity 0.3s;
}


/*
 * ==========================================================================
 * 7. MEDIA QUERIES GLOBALES Y ESPECÍFICAS
 * ==========================================================================
 */

/* 7.1 Pantallas Medianas (Tablets - Máximo 992px) */
@media (max-width: 1240px) {
  /* Ajuste de tipografía global */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  /* Ajuste de espaciado modular */
  :root {
    --space-md: 1.2rem;
  }
}

/* 7.2 Pantallas Pequeñas (Móviles - Máximo 768px) */
@media (max-width:1240px) {

  /* Ajuste de tipografía global */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .main_bar {
    padding: var(--space-xs);
    .logo{
      max-height: 40px;
    }
  }

}
/* Fin plantilla */

/* Custom styles */


#main-content-area{
  flex-grow: 1;
  display:flex;
  flex-direction:column;
}

/* ========================================
   LAYOUT BOXED DEL WIZARD
   ======================================== */

/* Una sola columna en TODOS los pasos. El detalle del pedido (sidebar) ya no vive
   en el layout: es un panel flotante que abre el icono de carrito de la cabecera. */
.translation-wizard-container {
  display: block;
  width: 100%;               /* dentro del flex-column de #main-content-area, sin esto se encoge al contenido */
  max-width: 940px;
  margin: 0 auto 200px;
  padding: 20px;
    @media (max-width:1240px){
      margin-bottom:100px;
      width:100%;
      min-height:auto;
    }
}

/* Contenido principal (izquierda) */
.wizard-content {
  width: 100%;
  max-width: 740px;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Sidebar resumen (derecha) */
.wizard-sidebar {
  margin-top:85px;
  width: 100%;
  max-width: 630px;
  background-color: #F9F9F9;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  position: relative;
  height: fit-content;
  min-height: 200px;
  @media(max-width:1240px){
    max-width:100%;
    padding:0;
    box-shadow:none;

  }
}


/* --- VISUALIZACIÓN DE PASOS --- */
.translation-wizard-step {
   display: none;
  padding: 45px 70px;
  width:100%;
  margin: 0 auto;
  box-shadow: 5px 6px 16px #00000017;
  border: 1px solid #E7E7E7;
  border-radius: 15px;
  /* Tanda R: el step ocupa el 100% real de la columna (antes topaba en 800px dentro del contenedor de 940). */
  max-width: none;
}
.translation-wizard-step.active {
  display: block; /* Mostrar solo el que tiene la clase 'active' */
}

.wizard-section {
  border: 1px solid #e9ecef; padding: 20px; margin-bottom: 30px; border-radius: 8px; background-color: #fff;
}
.wizard-section legend {
  font-size: 1.3em; font-weight: 600; color: #0056b3; padding: 0 10px; margin-left: 10px; background-color: #fff;
}

.translation-wizard-step h2 {
  margin-top: 0; color: #333; font-size: 1.8em; margin-bottom: 20px;
}


.form-group { margin-bottom: 15px; }
.form-group label {
  display: block; margin-bottom: 8px; font-weight: 500; color: #333; /* contraste AA (antes #555) */
  font-size: 15px; /* fijo 15px (el clamp caía a 13px en móvil) */
}

.title-label{
  font-size: 15px; font-weight: 500; margin-bottom: 8px; display: block; color: #000000;
  @media(max-width:1240px){
    font-size:15px;
  }
}

.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group select, .form-group textarea {
  color:#0f0f0f; width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; font-size: 16px; transition: border-color 0.3s ease;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
  font-size: 14px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #007bff; outline: none; box-shadow: 0 0 0 2px rgba(0,123,255,.25);
}

.dropzone-area {
  border: 1px dashed #000000; border-radius: 8px; padding: 30px; text-align: center; cursor: pointer; margin-bottom: 25px; margin-top:10px; transition: background-color 0.3s ease, border-color 0.3s ease;
  @media(max-width:1240px){
    margin:5px 0 0;
    margin-bottom:20px;
  }
}
.turnstile-wrapper{
  margin:0;
}
.dropzone-area p { margin:0; font-weight: 400; }
.dropzone-area.dragging { border-color: #0056b3; background-color: #e0f0ff; }

/* TABLA DE ARCHIVOS */
#file-list-area { margin-top: 15px; }
.file-list-table { width: 100%; border-collapse: collapse; }
.file-list-table tbody tr:nth-child(even){background-color: #EBEBEB}
.file-list-table th, .file-list-table td {
  padding: 5px 8px; text-align: left; border-bottom: 1px solid #f0f0f0; color: #495057; font-size: 0.9em;

  @media (max-width:1240px){
    font-size:14px;
  }

}
.file-list-table th { font-weight: 600; }
/* vertical-align: top → cuando aparece el aviso de idioma (varias líneas) bajo el nombre, el detalle de
   palabras/páginas (y la X) quedan ARRIBA, no centrados verticalmente respecto a la celda alta. */
.file-list-table td { border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.file-list-table .file-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* El aviso de idioma no corresponde debe leerse completo (con salto de línea), no cortarse con elipsis. */
.file-list-table .file-name .file-idioma-aviso { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.file-list-table .file-stats { white-space: nowrap; }
.file-list-table .file-actions { text-align: right; }
.file-list-table .remove-file-btn { background: none; color: #666; border: none; font-size:18px; padding: 0 6px; cursor: pointer; transition: color 0.2s; line-height:1}
.file-list-table .remove-file-btn:hover { color: #000; }
.file-list-table tr.processing-row td { color: #6c757d; font-style: italic; }


/* RESUMEN DEL PEDIDO */
.order-summary-box h3 { font-size: 1.4em; color: #333; margin-top: 0; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #EBEBEB; }
dl.summary-details-list { margin-bottom: 20px; }
dl.summary-details-list::after { content: ""; display: table; clear: both; }
dl.summary-details-list dt { float: left; clear: left; width: 33%; text-align: left; font-weight: 400; color: #000; padding: 5px 0; }
dl.summary-details-list dd { float: left; width: 67%; text-align: right; margin-left: 0; font-weight: 400; color: #000; padding: 5px 0; }
.summary-pricing { border-top: 1px dashed; padding-top: 15px; margin-top: 15px; clear: both; }
.price-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 1em; }
.price-line span:first-child { color: #555; }
.price-line.total {font-weight: bold; color: #333;}

#file-list-loading-spinner{
  padding: 20px; text-align: center;
  @media(max-width:1240px){
    padding:20px 0;
    background-color: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    margin-top: 15px;
  }
  .spinner-container{
    display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 8px;
    @media(max-width:1240px){
      flex-direction:column;
      gap:10px;
    }
    .spinner{
      width: 24px; height: 24px; border-width: 3px;
    }
    #spinner-text{
      font-weight: 500; color: #333; font-size:14px;
      @media(max-width:1240px){
        font-size:11px;
      }
    }
  }
}


/* RADIOS Y PASARELAS */
.radio-group-wrapper { display: flex; flex-direction: column; gap: 20px; margin-bottom: var(--space-md); }
.radio-option {
  font-size:14px;
  display: flex; align-items: center; padding: 12px 15px; border-radius: 5px; border: 2px solid #dee2e6; cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
  /* borde 2px #dee2e6 para igualar a .traductor-card / .billing-type-card (antes 1px #e9ecef) */
}
.radio-option:has(input:checked) { background-color: #e0f0ff; border-color: #007bff; }
.radio-option input[type="radio"] { margin-right: 12px; transform: scale(1.1); }
.radio-option label { margin-bottom: 0; font-weight: 500; color: #343a40; }
.payment-methods-section { margin-top: 25px; margin-bottom: 25px; }
ul.wc_payment_methods { list-style: none outside; padding: 0; margin: 0; }
li.wc_payment_method { margin-bottom: 1em; padding: 1em; border: 1px solid #e0e0e0; border-radius: 5px; background-color: #fcfcfc; }
li.wc_payment_method label { font-weight: bold; display: flex;gap: 10px; flex-direction: column; justify-content: start}
li.wc_payment_method label img { max-height: 32px; margin-left: 10px; vertical-align: middle; }
li.wc_payment_method input[type="radio"] { margin-right: 10px; vertical-align: middle;
@media(max-width:1240px){
  display:none;
}
}
/* div.payment_box { padding: 1em; margin-top: 1em; background-color: #f5f5f5; border-radius: 4px; font-size: 0.95em; color: #555; border: 1px solid #eee; } */

/* NAVEGACIÓN Y OTROS */
.wizard-navigation {
  margin-top: 20px; padding-top: 10px; display: flex; justify-content: flex-end; align-items: center;
  @media(max-width:1240px){
    margin-top:0;
    flex-direction:column;   /* el orden lo controla `order` (Continuar → aviso → Atrás) */
  }
}

/* "Enviar presupuesto por email": aspecto de enlace azul, sin fondo. */
.wizard-navigation button.action-send-quote{
  background-color: transparent;
  color: #2A5FD9;
  box-shadow: none;
  min-width: auto;
  padding: 6px 4px;
  font-weight: normal;
  margin-right: 10px;
  text-decoration: underline;
  border-radius: 0;
  &:hover:not(:disabled){
    background-color: transparent;
    box-shadow: none;
    color: #0056b3;
  }
  @media(max-width:1240px){
    margin-right:0;
  }
}

.wizard-navigation button:first-child:not(:last-child) { margin-right: auto; }
/* Aviso dinámico "Completa todos los datos para continuar" bajo el botón Continuar. */
/* Aviso "Completa todos los datos": centrado, gris; ocupa toda la fila bajo los botones. */
.wizard-continue-hint { margin: 0; color: #929292; font-size: 13px; text-align: center; flex-basis: 100%; }
.wizard-continue-hint[hidden] { display: none; }

/* Orden de la navegación para que el aviso quede SIEMPRE justo debajo de "Continuar". */
.wizard-navigation { flex-wrap: wrap; }
.wizard-navigation .back { order: 1; }
.wizard-navigation .action-send-quote { order: 2; }
.wizard-navigation button:not(.back):not(.action-send-quote) { order: 3; }
.wizard-navigation .wizard-continue-hint { order: 4; }
@media (max-width:1240px){
  .wizard-navigation { flex-direction: column; }
  .wizard-navigation button:not(.back):not(.action-send-quote) { order: 1; }  /* Continuar arriba */
  .wizard-navigation .wizard-continue-hint { order: 2; flex-basis: auto; }    /* aviso justo debajo */
  .wizard-navigation .action-send-quote { order: 3; }
  .wizard-navigation .back { order: 4; }                                      /* Atrás abajo */
}
/* Desktop: "Enviar presupuesto por email" baja a su propia fila, DEBAJO del botón y a la DERECHA.
   El ::after (fila vacía a ancho completo) fuerza el salto; margin-left:auto lo alinea a la derecha. */
@media (min-width:1241px){
  .wizard-navigation::after { content: ""; flex-basis: 100%; height: 0; order: 5; }
  /* Especificidad (0,2,1) para ganar al override base de .action-send-quote (margin-right:10px). */
  .wizard-navigation button.action-send-quote { order: 6; margin: 6px 0 0 auto; }
}
/* Paso 1 múltiple: cuando "Continuar" hace de "Guardar pedido" no muestra el chevron. */
#btn-to-step-2.guardar-mode svg { display: none; }
.wizard-navigation button { padding: 14px 34px; min-height: 42px; min-width:200px; border: none; background-color: #2A5FD9; color: white; border-radius: 18px; cursor: pointer; font-size: 15px; font-weight: bold; transition: background-color 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.wizard-navigation button:hover:not(:disabled) { background-color: #0056b3; box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.wizard-navigation button:disabled { background-color: var(--color-btn-inactive-bg); color: var(--color-btn-inactive-text); cursor: not-allowed; box-shadow: none; }
.wizard-navigation button[id^="prev-to-"] { background-color: #6c757d; }
.wizard-navigation button[id^="prev-to-"]:hover:not(:disabled) { background-color: #545b62; }
#payment-processing-indicator p, #order-confirmation-message p { font-size: 1.1em; color: #555; line-height: 1.6; }
#order-confirmation-message { background-color: #e6ffed; padding: 20px; border-radius: 5px; border: 1px solid #c3e6cb; color: #155724; margin-bottom: 20px; text-align: center; }

.wizard-navigation button#new-quote-button { background-color: #28a745; width: auto; margin: 0 auto; display: block; }
.wizard-navigation button#new-quote-button:hover { background-color: #218838; }

.wizard-navigation button.back{
  background-color: transparent;
  color: gray;
  padding-left: 0;
  margin-left: 0;
  min-width: auto;
  box-shadow: none;
  &:hover{
    background-color: transparent;
    box-shadow: none;
    color:lightgrey;
    text-decoration:underline;
  }
  @media(max-width:1240px){
    padding:12px 25px;
  }
}

@media (min-width: 768px) {
  .translation-options{
    display:flex;
    justify-content: space-between;
    gap:20px;

    .form-group{
      flex:1;
    }
  }
}


@media (max-width:1240px) {
  .translation-options { grid-template-columns: 1fr; }
  .wizard-navigation { flex-direction: column; gap: 10px; }
  .wizard-navigation button { width: 100%; margin-right:0;}
  .wizard-navigation button:first-child:not(:last-child) { margin-right: 0; }
  /* "Atrás" pegado a la izquierda en móvil (no a ancho completo/centrado). */
  .wizard-navigation button.back {
    align-self: flex-start;
    width: auto;
    padding-left: 0;
    justify-content: flex-start;
  }
  dl.summary-details-list dd { text-align: left; margin-bottom: 10px; }
}

/* --- ANIMACIÓN DE CARGA (SPINNER) --- */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #007bff; /* Color del spinner */
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: inline-block; /* Asegura que el spinner se muestre correctamente en línea */
  vertical-align: middle; /* Alinea el spinner verticalmente con el texto */
  margin-left: 8px; /* Espacio a la izquierda si va con texto */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* From Uiverse.io by Nawsome */
.loader {
  --background: linear-gradient(135deg, #23C4F8, #275EFE);
  --shadow: rgba(39, 94, 254, 0.28);
  --text: #6C7486;
  --page: rgba(255, 255, 255, 0.36);
  --page-fold: rgba(255, 255, 255, 0.52);
  --duration: 3s;
  width: 200px;
  height: 140px;
  position: relative;
}

.loader:before, .loader:after {
  --r: -6deg;
  content: "";
  position: absolute;
  bottom: 8px;
  width: 120px;
  top: 80%;
  box-shadow: 0 16px 12px var(--shadow);
  transform: rotate(var(--r));
}

.loader:before {
  left: 4px;
}

.loader:after {
  --r: 6deg;
  right: 4px;
}

.loader div {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  position: relative;
  z-index: 1;
  perspective: 600px;
  box-shadow: 0 4px 6px var(--shadow);
  background-image: var(--background);
}

.loader div ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.loader div ul li {
  --r: 180deg;
  --o: 0;
  --c: var(--page);
  position: absolute;
  top: 10px;
  left: 10px;
  transform-origin: 100% 50%;
  color: var(--c);
  opacity: var(--o);
  transform: rotateY(var(--r));
  -webkit-animation: var(--duration) ease infinite;
  animation: var(--duration) ease infinite;
}

.loader div ul li:nth-child(2) {
  --c: var(--page-fold);
  -webkit-animation-name: page-2;
  animation-name: page-2;
}

.loader div ul li:nth-child(3) {
  --c: var(--page-fold);
  -webkit-animation-name: page-3;
  animation-name: page-3;
}

.loader div ul li:nth-child(4) {
  --c: var(--page-fold);
  -webkit-animation-name: page-4;
  animation-name: page-4;
}

.loader div ul li:nth-child(5) {
  --c: var(--page-fold);
  -webkit-animation-name: page-5;
  animation-name: page-5;
}

.loader div ul li svg {
  width: 90px;
  height: 120px;
  display: block;
}

.loader div ul li:first-child {
  --r: 0deg;
  --o: 1;
}

.loader div ul li:last-child {
  --o: 1;
}

.loader span {
  display: block;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 20px;
  text-align: center;
  color: var(--text);
}

@keyframes page-2 {
  0% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  35%, 100% {
    opacity: 0;
  }

  50%, 100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-3 {
  15% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  35% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }

  65%, 100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-4 {
  30% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  65%, 100% {
    opacity: 0;
  }

  80%, 100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-5 {
  45% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  65% {
    opacity: 1;
  }

  80%, 100% {
    opacity: 0;
  }

  95%, 100% {
    transform: rotateY(0deg);
  }
}


/* Estilos para bloquear el dropzone cuando está procesando */
.dropzone-area.disabled-dropzone {
  pointer-events: none; /* Deshabilita clics y eventos de puntero */
  cursor: not-allowed; /* Cambia el cursor */
  /* Tanda R: estado deshabilitado en gris explícito (#929292) en texto, icono y borde. */
  border-color: #929292;
}
.dropzone-area.disabled-dropzone .dropzone-text,
.dropzone-area.disabled-dropzone .dropzone-hint,
.dropzone-area.disabled-dropzone .dropzone-icon svg { color: #929292; }


/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width:1240px) {
  .modal-content {
    padding: 20px;
  }
}


/* Nuevos estilos */

/*
 * ==========================================================================
 * ESTILOS PARA SELECTORES PERSONALIZADOS
 * ==========================================================================
 */

.custom-select-wrapper {
  position: relative;
  /* La altura del wrapper debe coincidir con la altura del select */
  display: inline-block;
  width: 100%;
}

.custom-select {
  width: 100%;
  padding: 10px 40px 10px 12px; /* Espacio extra a la derecha para el icono */
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: var(--font-size-base);
  color: var(--color-secondary); /* Color gris del texto placeholder */

  /* CRÍTICO: Ocultar la flecha nativa en la mayoría de los navegadores */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-color: var(--color-surface); /* Fondo blanco */
  cursor: pointer;
}

/* En IE y Edge, el -ms-expand oculta el icono nativo */
.custom-select::-ms-expand {
  display: none;
}

/* --- ESTILO DEL ICONO SUPERPUESTO (La Flecha Grande) --- */

.select-icon {
  position: absolute;
  top: 50%;
  right: 15px; /* Ajusta la posición del icono desde el borde derecho */
  transform: translateY(-50%);
  pointer-events: none; /* Asegura que el clic pase al select */

  color: var(--color-secondary);
  width: 20px; /* Tamaño de la flecha: ¡Aquí la haces grande! */
  height: 20px;

  /* El icono SVG que usamos en el HTML */
  line-height: 1; /* Elimina espacio vertical extra */
}

.select-icon svg {
  fill: currentColor; /* Usa el color del texto definido en .select-icon */
  width: 100%;
  height: 100%;
  /* Hazlo visiblemente más grande que el estándar (que suele ser 12-14px) */
}


/* ========================================
   PASO 2 - Cards de Traductor
   ======================================== */

.traductor-card {
  display: block;
  position: relative;
  padding: 15px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ffffff;
  @media (max-width: 1240px) {
    padding:10px;
  }
}

.traductor-card:hover {
  border-color: var(--color-accent);
}

.traductor-card input[type="radio"] {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  @media (max-width: 1240px) {
    display:none;
  }
}

.traductor-card-content {
  margin-left: 0;
  @media (max-width: 1240px) {
    margin-left:0;
  }
}

.traductor-title {
  display: block;
  font-weight: 500;
  font-size: 16px;
  color: #000000;
  margin-bottom: 5px;
  @media (max-width: 1240px) {
    font-size:15px;
  }
}

.traductor-description {
  display:block;
  margin: 0;
  font-size: 14px;
  color: var(--color-disabled);
  line-height: 1.5;
  @media (max-width: 1240px) {
    font-size:12px;
  }
}

/* Estado cuando el radio está seleccionado */
.traductor-card:has(input[type="radio"]:checked) {
  border-color: var(--color-accent);
  background-color: #e7f3ff;
}

.traductor-card:has(input[type="radio"]:checked) .traductor-description {
color:black;
}

/* Fallback para navegadores que no soportan :has() */
/*
.traductor-card.selected {
  border-color: #007bff;
  background-color: #e7f3ff;
}
 */

.traductor-card.selected .traductor-description {
  /*display: block;*/
}


/* ========================================
   Autocomplete de ciudades y direcciones
   ======================================== */

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


.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.15s ease-in-out;
  box-sizing: border-box;
}

/* Los selects de país se unifican en una sola regla más abajo (fondo blanco + chevron). */


.form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Autocomplete suggestions */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #007bff;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  margin: 0;
}

.autocomplete-suggestions.active {
  display: block;
}

.autocomplete-suggestion {
  padding: 12px 15px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f1f1f1;
  color: #333;
  background: white;
}

.autocomplete-suggestion:hover {
  background-color: #e7f3ff;
  color: #007bff;
}

.autocomplete-suggestion:last-child {
  border-bottom: none;
}

.autocomplete-suggestion[data-selectable="true"] {
  transition: all 0.15s ease;
}

.autocomplete-suggestion[data-selectable="true"]:hover,
.autocomplete-suggestion.active {
  background-color: #e7f3ff;
  transform: translateX(5px);
}

/* ========================================
   Paso 5 - Selector de tipo de facturación
   ======================================== */

.billing-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.billing-type-card {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex:1;
  position: relative;
  padding: 20px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ffffff;
  text-align: left;
}

.billing-type-card:hover {
  border-color: #007bff;
}

.billing-type-card input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  @media (max-width: 1240px) {
    display:none;
  }
}


.billing-type-title {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: #212529;
  @media (max-width: 1240px) {
    font-size:15px;
  }
}

.billing-type-card:has(input[type="radio"]:checked),
.billing-type-card.selected {
  border-color: #007bff;
  background-color: #e7f3ff;
}


.billing-fields-container {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Métodos de pago WooCommerce - Estilo Cards
   ======================================== */

#payment-methods-container {
  margin: 20px 0;
}

/* Reset de estilos de lista */
.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Cada método de pago como card */
.wc_payment_method {
  display: block;
  position: relative;
  padding: 20px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ffffff;
  list-style: none;
}

.wc_payment_method:hover {
  border-color: #007bff;
}

/* Radio button */
.wc_payment_method input[type="radio"] {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
}

/* Label del método de pago */

.wc_payment_method label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: #212529;
  margin: 0 0 5px 35px;
  cursor: pointer;
}




/* Contenedor de iconos */
.payment-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Imágenes de los iconos */
.payment-icons img {
  width: auto !important;
  margin: 0 !important;
  object-fit: contain;
}

/* Adaptación para pantallas pequeñas (móviles) */
@media (max-width: 1240px) {

  .payment-icons {
    flex-wrap: wrap; /* Para que si no caben los 4 iconos, bajen de línea */
  }
}

/* Descripción del método de pago */
.payment_box {
  display: none !important;
  margin: 0 0 0 35px;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
}

/* Mostrar descripción solo cuando el radio está seleccionado */

/* ========================================
   PASO 3 - Cards de Plazo de Entrega
   ======================================== */

#step-2-term-shipping .radio-option {
  display: block;
  position: relative;
  padding: 20px;
  margin-bottom: 15px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

#step-2-term-shipping .radio-option:hover {
  border-color: #007bff;
}

#step-2-term-shipping .radio-option input[type="radio"] {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

#step-2-term-shipping .radio-option label {
  display: block;
  margin-left: 35px;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 16px;
  color: #212529;
  cursor: pointer;
}

/* Estado cuando el radio está seleccionado */
#step-2-term-shipping .radio-option:has(input[type="radio"]:checked) {
  border-color: #007bff;
  background-color: #e7f3ff;
}

/* Fallback para navegadores que no soportan :has() */
#step-2-term-shipping .radio-option input[type="radio"]:checked {
  accent-color: #007bff;
}

/* ============================================
   REVISIÓN DEL PEDIDO - PASO 6 (NUEVO DISEÑO)
   ============================================ */

/* Bloque principal con fondo gris — compacto (ref. captura Caso 1 - Pedido único/7.jpg) */

/* Lista de documentos (sin tabla) */

.review-documents .document-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.review-documents .document-item:last-child {
  border-bottom: none;
}

.review-documents .document-name {
  font-size: 14px;
  color: #333;
  flex: 1;
}

.review-documents .document-details {
  font-size: 14px;
  color: #666;
  text-align: right;
}

/* Línea divisoria */
.review-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 8px 0;
}

/* Desglose de precios */
.summary-pricing .price-line {
  display: flex;
  justify-content: space-between;
  padding: 0;
  font-size: 14px;
  color: #555;
}

.summary-pricing .price-line.total {
  font-size: 16px;
  color: #000;
  margin-top: 10px;
}

/* Bloque de detalles del pedido */
.order-details-block {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}

.order-details-block .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e8e8e8;
}

.order-details-block .detail-row:last-child {
  border-bottom: none;
}

.order-details-block .detail-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.order-details-block .detail-value {
  color: #666;
  font-size: 14px;
  text-align: right;
}

/* Resumen de documentos */
.documents-summary {
  margin: 20px 0;
  padding: 15px;
  background-color: #f0f8ff;
  border-left: 4px solid #0066cc;
  border-radius: 4px;
}

.documents-summary p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

/* Checkbox de aceptación */
.review-acceptance {
  margin: 25px 0;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  &:first-child{
    margin-bottom:15px;
  }
  @media (max-width: 1240px) {
    font-size:13px;
  }
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  flex-shrink: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  transition: all 0.2s ease;
  @media (max-width: 1240px) {
    height: 16px; width: 16px; /* proporcional al texto reducido en móvil */
  }
}

.checkbox-container:hover .checkmark {
  border-color: #007bff;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 4px;
  top: 2px;
  width: 5px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-label {
  line-height: 1.5;
  color: #333;
}

/* Texto informativo */
.review-info-text {
  margin: 20px 0;
  font-size: 14px;
  color: #555;
}

.review-info-text p {
  margin: 5px 0;
}

.review-info-text a {
  color: #007bff;
  text-decoration: none;
}

.review-info-text a:hover {
  text-decoration: underline;
}

/* Responsive para móvil */
@media (max-width:1240px) {
  .order-review-summary,
  .order-details-block {
    padding: 5px;
  }

  .review-documents .document-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-documents .document-details {
    margin-top: 5px;
    text-align: left;
  }

  .order-details-block .detail-row {
    flex-direction: column;
  }

  .order-details-block .detail-value {
    text-align: left;
    margin-top: 5px;
    color: #333;
    font-weight: 500;
  }
}

/* ============================================
   MODAL DE EMAIL DE REVISIÓN
   ============================================ */

.wizard-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding:30px;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  justify-content: space-between;
  align-items: center;
  position:relative;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.modal-close {
  position: absolute;
  top: -20px;
  right: -10px;
  background: none;
  border: none;
  font-size: 0;                 /* oculta el carácter × (grueso); la X se dibuja fina con ::before/::after */
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: right;
  border-radius: 50%;
  transition: all 0.2s ease;
  &:focus-visible{
    outline:none;
  }
}
/* X de cierre FINA (mismo tamaño): dos líneas de 1.5px cruzadas. */
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}
.modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

#close-upload-error-modal{
  top:10px !important;
  right:20px !important;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 5px 0;
}

.modal-body p {
  margin: 0 0 10px;
  color: #555;
  line-height: 1.6;
}


.modal-footer {
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-footer .btn-secondary,
.modal-footer .btn-primary {
  padding: 14px 34px;
  min-height: 48px;
  font-size: 15px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.modal-footer .btn-secondary {
  background: #f5f5f5;
  color: #666;
}

.modal-footer .btn-secondary:hover {
  background: #e0e0e0;
  color: #333;
}

.modal-footer .btn-primary {
  background: #007bff;
  color: white;
}

.modal-footer .btn-primary:hover {
  background: #0056b3;
}

.modal-footer .btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1240px) {
  .modal-content {
    width: 95%;
    max-width: none;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer button {
    width: 100%;
  }
}

/* Ajustes para modales con columnas verticales */
.modal-footer[style*="flex-direction: column"] button {
  margin: 0;
}

/* Estilos para listas dentro de modales */
.modal-body ul {
  list-style: disc; /* Activa los bullets nativos */
  padding-left: 20px; /* Da espacio para que se vean */
  margin: 0 0 15px 0;
}

.modal-body ul li {
  padding: 1px 0;
  color: #333;
  font-size: 15px;
}

/* Eliminamos el ::before manual para evitar duplicados */
.modal-body ul li::before {
  content: none;
}
/* Validaciones */
/* ========================================
VALIDACIÓN - CAMPOS CON ERROR
======================================== */

.field-error {
  border-color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.05) !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

.field-error:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}

/* Modal de errores */
#error-modal .modal-content {
  max-width: 450px;
}

#error-modal .modal-body ul {
  text-align: left;
  color: #dc3545;
  margin: 15px 0;
}

#error-modal .modal-body ul li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

#error-modal .modal-body ul li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #dc3545;
  font-weight: bold;
}

/* ========================================
   MÉTODOS DE PAGO - FINALIZACIÓN
   ======================================== */

.wc_payment_method input[type="radio"]:checked ~ .payment_box {
  display: block !important;
}

.wc_payment_method:has(input[type="radio"]:checked) {
  border-color: rgb(0, 123, 255);
  background-color: rgb(231, 243, 255);
;
}

.wc_payment_method input[type="radio"]:checked {
  accent-color: rgb(0, 123, 255);
}

/* ========================================
   LAYOUT RESPONSIVE DEL WIZARD
   ======================================== */



/* Ajuste para el contenido del resumen */
.order-summary-box {
  width: 100%;
}

.order-summary-box h3 {
  word-wrap: break-word;
}

/* Ajustar ancho de la lista de detalles */
dl.summary-details-list {
  margin-bottom: 20px;
  width: 100%;
}

dl.summary-details-list dt {
  float: left;
  clear: left;
  width: 44%;
  text-align: left;
  font-weight: 500;
  color: #555;
  white-space: nowrap;      /* etiquetas ("Plazo de realización", etc.) SIEMPRE en una línea */
}

dl.summary-details-list dd {
  float: left;
  width: 56%;
  text-align: right;
  margin-left: 0;
  color: #212529;
  word-wrap: break-word;
}

/* Los pares dt/dd van FLOTADOS pero envueltos en .summary-step-1/2/3 y #summary-grupos, que sin
   clearfix colapsan a altura 0 y hacen que las filas se solapen (idiomas/palabras/páginas/grupos
   quedaban "invisibles"). clear: los apila; ::after contiene sus propios floats. */
.summary-step-1, .summary-step-2, .summary-step-3, .summary-grupos { clear: both; }
.summary-step-1::after, .summary-step-2::after, .summary-step-3::after {
  content: ""; display: block; clear: both;
}

/* Botón de toggle para mobile (oculto en desktop) */
.order-summary-toggle {
  display: none;
  width: 100%;
  cursor: pointer;
  margin-bottom: 0;
  transition: all 0.3s ease;
  background: #333; /* Oscuro para contraste */
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1001;
}

.order-summary-toggle:hover {
  border-color: #7c7c7c;
  background: #7c7c7c;
}

.order-summary-toggle::after {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 300;
  transition: transform 0.3s ease;

  content: '▲'; /* Flecha arriba */
  font-size: 12px;
  margin-left: 10px;
  color: #fff;

}

.order-summary-toggle.active {
  border-color: #7c7c7c;
  background: #7c7c7c;
}

.order-summary-toggle.active::after {
  content: '▼'; /* Flecha abajo */
}


.order-summary-content {

  display: block;
}

/* ========================================
   PASO 6 - Revisión del pedido
   ======================================== */

.review-section {
  margin-bottom: 20px;
}

.price-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
  color: #495057;
}

.price-line:last-child {
  padding-bottom: 0;
}

.info-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: #495057;
  border-bottom: 1px solid #dee2e6;
}

.info-line:last-child {
  border-bottom: none;
}

.info-line strong {
  color: #212529;
  font-weight: 600;
}

#final-documents-summary {
  font-size: 14px;
}

#final-documents-summary .file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #dee2e6;
  color: #495057;
}

#final-documents-summary .file-item:last-child {
  border-bottom: none;
}

#final-documents-summary .file-name {
  font-weight: 500;
  color: #212529;
}

#final-documents-summary .file-details {
  color: #6c757d;
  font-size: 13px;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Breakpoint intermedio (hasta 1200px) - NUEVO */
@media (max-width: 1240px) {
  dl.summary-details-list dt {
    width: 42%;
    white-space: normal;   /* en móvil/tablet el drawer es ancho; permitimos que la etiqueta envuelva */
  }

  dl.summary-details-list dd {
    width: 58%;
  }
}

/* Tablets (hasta 1024px) */
@media (max-width: 1240px) {

  .translation-wizard-step {
    padding: 35px 40px;
    width: 100%;
    max-width:100%;
  }

  /* Ajustar proporciones en tablet */
  dl.summary-details-list dt {
    width: 40%;
    font-size: 0.9em;
    font-weight:bold;
  }

  dl.summary-details-list dd {
    width: 60%;
    font-size: 0.9em;
  }
}

/* Mobile grande (hasta 768px) */
@media (max-width:1240px) {
  .order-summary-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    background: black  !important; /* Fondo blanco */
    color: white !important;    /* Texto negro */
    border: 1px solid #e0e0e0 !important; /* Borde suave */
    border-radius: 12px 12px 0 0; /* Curva arriba */
    padding: 15px 25px !important;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    .btn-text{
      display: flex;
      flex: 1;
      justify-content: center;
    }
  }

  /* Animación de la flecha */
  .bounce-icon {
    animation: bounce 2s infinite;
    font-size: 14px;
  }

  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
  }

  /* Quitar la flecha antigua del content si la tenías */
  .order-summary-toggle::after {
    display: none !important;
  }

  .order-summary-content {
    display: none;
    padding: 20px;
    animation: slideDown 0.3s ease;
    background: white;
    height: 75dvh; /* Ocupa casi toda la pantalla */
    overflow-y: auto;
    transition: bottom 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
  }

  .order-summary-content.active {
    display: block;
  }

  /* Pasos del wizard al 100% */
  .translation-wizard-step {
    width: 100%;
    padding: 25px 20px;
    margin: 0;
  }

  /* Elementos del contenido principal al 100% */
  .wizard-section,
  .review-section,
  .radio-group-wrapper,
  .billing-type-selector,
  .payment-method-selector,
  .wc_payment_methods {
    width: 100%;
  }

  /* Grids de formularios en columna única */
  .form-row[style*="grid"] {
    gap: 15px;
  }


  .billing-type-selector {
    display: flex;
    flex-direction: row;
    gap: clamp(10px, 2vw, 15px);
  }

  /* Navegación de botones responsive (el orden lo controla `order`). */
  .wizard-navigation {
    flex-direction: column;
    gap: 10px;
  }

  .wizard-navigation[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column;
  }

  .wizard-navigation button {
    width: 100%;
    min-width: auto;
  }

  /* Opciones de traducción apiladas */
  .translation-options {
    grid-template-columns: 1fr;
  }

  /* Ajustar tabla de archivos */
  .file-list-table {
    font-size: 0.9em;
  }

  .file-list-table .file-name {
    max-width: 180px;

  }

  dl.summary-details-list dd {
    margin-bottom: 10px;
  }
}

/* Mobile pequeño (hasta 480px) */
@media (max-width: 1240px) {


  .translation-wizard-step {
    padding: 20px 15px;
  }

  .wizard-section,
  .review-section {
    padding: 15px;
  }

  h3 {
    font-size: 1.3em;
  }

  .billing-type-card,
  .wc_payment_method {
    padding: 10px;
    justify-content: center;

  }

  .wc_payment_methods{
    gap:10px;
  }
  .wc_payment_method {
    margin-bottom:0;
    label, .payment_box{
      margin-left: 0;
      font-size:13px;
    }

  }

  .order-summary-toggle {
    font-size: 14px;
    padding: 12px 15px;
  }

  .price-line,
  .info-line {
    font-size: 14px;
  }
}

/* Animación para el acordeón */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 2000px;
    transform: translateY(0);
  }
}

/* Mejoras adicionales para responsive */
@media (max-width:1240px) {
  /* Hacer que los campos de formulario ocupen todo el ancho */
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea,
  .form-control {
    width: 100%;
  }

  /* Ajustar dropzone en mobile */
  .dropzone-area {
    padding: 10px 15px !important;

  }
}

/* Estilos individuales para movil*/

@media (max-width:1240px) {
  /*.top_bar{display:none}*/
  .translation-wizard-container{
    min-height:auto;
    padding:20px 10px;
  }
  #order-summary-area h3{
    display:none;
  }

}

.blur-loading {
  filter: blur(6px);
  opacity: 0.6;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Campo con error */
.field-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.25);
}

/* Campo correcto tras corregir */
.field-valid {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 1px rgba(40, 167, 69, 0.25);
}

/* Opcional: destacar label del campo con error */
.field-invalid + label,
.field-invalid ~ label {
  color: #dc3545;
}

/* Estilos Modal Genérico */
.modal-header {
  position: relative; /* Para posicionar el código */
}



/* --- ESTILOS MODALES PERSONALIZADOS (NS01, PU04, etc) --- */

/* Código de error (arriba izquierda) */
.modal-error-code {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-weight: 600;
}

/* Título Rosa "Importante" */
#generic-modal-title {
  color: #E94073; /* Color rosa de la captura */
  font-size: 1.4em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

/* Cuerpo del texto centrado */
#generic-modal-body {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

#generic-modal-body p {
  margin-bottom: 10px;
}

/* Footer del modal (Botones) */
#generic-modal-footer {
  border-top: none; /* Quitamos borde si lo había */
  display: flex;
  align-items: center;
  justify-content: center; /* Por defecto centrado */
  padding-bottom: 0;
}

/* Estilo especial para el caso Urgente (Enlace izquierda + Botón derecha) */
#generic-modal-footer.footer-split {
  justify-content: space-between;
  flex-direction: row;
}

/* Enlace de "Cambiar a plazo standard" */
.btn-link-secondary {
  background: none;
  border: none;
  color: #666;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
}
.btn-link-secondary:hover {
  color: #007bff;
  text-decoration: underline;
}

/* Botón Azul Grande "Confirmar y cerrar" */
.btn-modal-primary {
  background-color: #007bff; /* azul de marca (antes #3b82f6, fuera de paleta) */
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 34px;
  min-height: 48px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-modal-primary:hover {
  background-color: #0069d9;
}

/* Nota del horario laboral (abajo del todo) */
.modal-bottom-note {
  padding: 0 20px 0 20px;
  font-size: 12px;
  color: #888;
  text-align: center;
  line-height: 1.4;
  margin:0 auto;
  margin-top:20px;
}

/* Modales en MÓVIL (≤768px): antes se veían compactos. Los hacemos más altos, subimos la X a 20px
   del borde superior/derecho, y quitamos el padding lateral de la zona de botones y de la nota
   inferior (disclaimer) para ganar espacio. */
@media (max-width: 768px) {
  .modal-content {
    padding: 44px 18px 22px;    /* aire arriba para la X (sin chocar con el título) + modal más alto */
    display: flex;
    flex-direction: column;
  }
  /* La X se posiciona respecto a .modal-content (no al header) → 20px del borde superior y derecho. */
  .modal-header { position: static; }
  .modal-close { top: 20px; right: 20px; }
  /* Zona de botones anclada abajo (llena el modal más alto) y SIN padding lateral. */
  .modal-footer { margin-top: auto; padding-left: 0; padding-right: 0; }
  /* Disclaimer inferior sin padding lateral. */
  .modal-bottom-note { padding-left: 0; padding-right: 0; }
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* --- ANIMACIONES DE TRANSICIÓN ENTRE PASOS --- */

/* Clase base para la animación */
.translation-wizard-step {
  /* Por defecto oculto */
   display: none;
  /* Preparar animación */
   opacity: 0;
  transform: translateY(10px); /* Empieza un poco más abajo */
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Clase activa (cuando se muestra el paso) */
.translation-wizard-step.active {
  display: block;
  /* La animación ocurre gracias a @keyframes o transition */
  animation: slideFadeIn 0.5s forwards;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- ESTILOS PARA MENSAJES DE ERROR INLINE --- */
.inline-error-msg {
  display: block;
  font-size: 12px;
  color: #dc3545;
  margin-top: 5px;
  animation: fadeIn 0.3s;
}

/* Borde rojo suave en el input */
input.field-invalid, select.field-invalid, textarea.field-invalid {
  border-color: #dc3545 !important;
  background-color: #fff8f8 !important;
}

/* Borde verde suave en el input (opcional, da buen feedback) */
input.field-valid {
  border-color: #28a745 !important;
  background-color: #fafffa !important;
}


/* --- STICKY SUMMARY MÓVIL (Bottom Sheet) --- */

@media (max-width:1240px) {
  /* 1. Botón Flotante Fijo Abajo */
  .wizard-sidebar {

    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
    min-height: 0px;
  }



  /* 2. Contenido Desplegable (Sheet) */
  .order-summary-content {

  }

  .order-summary-content.active {
    bottom: 0; /* Sube arriba */
  }

}

.select2-container .select2-selection--single .select2-selection__rendered{
  padding-left:15px !important;
}
.select2-selection__arrow{
  display:none !important;
}

/* --- BARRA DE PROGRESO DE SUBIDA --- */
.upload-progress-wrapper {
  width: 100%;
  padding: 5px 0;
}

.upload-progress-text {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.upload-progress-track {
  width: 100%;
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  background-color: #4184f2; /* Azul */
  width: 0%;
  transition: width 0.1s linear;
}

/* D1: fase PROCESANDO (OCR) — barra indeterminada con rayas en movimiento (no un % inventado). */
.upload-progress-fill.processing {
  width: 100% !important;
  background-color: #2A5FD9;
  background-image: linear-gradient(45deg,rgba(255,255,255,.35) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.35) 50%,rgba(255,255,255,.35) 75%,transparent 75%,transparent);
  background-size: 1.1rem 1.1rem;
  animation: progress-stripes .7s linear infinite;
}

@keyframes progress-stripes {
  from { background-position: 1.1rem 0; }
  to { background-position: 0 0; }
}

/* D7: fila de fichero en estado de ERROR con opción de reintentar. */
.file-error-row td { padding: 0 !important; }
.file-error-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px; padding: 10px 12px; }
.file-error-main { display: flex; align-items: flex-start; gap: 8px; }
.file-error-icon { font-size: 16px; line-height: 1.2; }
.file-error-name { font-weight: 600; color: #b42318; font-size: 14px; }
.file-error-msg { color: #912018; font-size: 12.5px; margin-top: 2px; }
.file-error-actions { display: flex; align-items: center; gap: 8px; }
.file-retry-btn { background: #2A5FD9; color: #fff; border: none; border-radius: 6px; padding: 6px 12px;
  font-size: 13px; font-weight: 600; cursor: pointer; }
.file-retry-btn:hover { background: #1f47db; }
.file-error-remove { background: transparent; border: none; color: #912018; font-size: 20px; line-height: 1;
  cursor: pointer; padding: 0 4px; }

/* --- FULL SCREEN LOADER --- */
.fs-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85); /* Blanco semitransparente */
  backdrop-filter: blur(10px); /* Efecto desenfoque potente */
  z-index: 99999; /* Por encima de todo */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none; /* Para que no bloquee clicks si se queda pillado invisible */
}

.fs-loader.visible {
  opacity: 1;
  pointer-events: all;
}

.fs-loader-content {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.fs-loader.visible .fs-loader-content {
  transform: scale(1);
}

/* Spinner elegante (Doble anillo) */
.fs-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  animation: spin 1s linear infinite;
}

.fs-loader h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 20px;
  font-weight: 700;
}

.fs-loader p {
  margin: 0;
  color: #666;
  font-size: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Contenedor de la opción para que el badge flote a la derecha */
.radio-option label {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Esto empuja el badge a la derecha */
  width: 100%;
  cursor: pointer;
}

.option-title {
  font-weight: 600;
  color: #333;
}

/* Estilo del Badge Recomendado */
.badge-recommended {
  background-color: #4285f4; /* El azul de tu captura */
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 12px;
  border-radius: 10px; /* Forma de píldora */
  text-transform: none;
  margin-left: 10px;
  white-space: nowrap;
  right:20px;
  top:-10px;
  position: absolute;
  @media (max-width: 1240px) {
    top:-10px;
    right:10px;
    font-size:10px;
    padding:2px 8px;
  }
}

/* Ajuste para que el radio button no descuadre el flex */
.radio-option {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 13px;
  border: 1px solid #AAA;
  border-radius: 4px;
  transition: all 0.3s ease;
  span{
    line-height:normal;
  }
}

.radio-option input[type="radio"] {
  margin-top: 4px;
  margin-right: 12px;
}

/* STEPS DE WIZARD */

.wizard-progress-container {
  /* Tanda R: mismo padding lateral que el step (70px) para que los círculos de pasos (flex-end)
     queden alineados con el borde derecho del CONTENIDO de la columna. */
  padding: 30px 70px 0 70px;
  background: #fff;
  margin-bottom: 20px;
  @media (max-width: 1240px) {
    padding: 0 20px;
    margin-bottom:10px;

  }
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  gap:10px;
}

.progress-step {
  display: flex;
  align-items: center;
  position: relative;
  color: #999;
  &.active{
    &+.step-divider{
      display:block;

    }
  }
}

/* El círculo con el número */
.step-number {
  width: 35px;
  height: 35px;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: white;
  transition: all 0.3s ease;
  z-index: 2;
  @media (max-width: 1240px) {
    width:25px;
    height:25px;
  }
}

/* El texto al lado del número */
.step-label {
  margin-left: 10px;
  font-size: 18px;
  color:#033076;
  font-weight: 600;
  display: none; /* Oculto por defecto para que solo se vea el activo */
  white-space: nowrap;
  @media (max-width: 1240px) {
    font-size:12px;
  }
}

/* La línea divisoria entre pasos */
.step-divider {
  flex-grow: 1;
  height: 1px;
  border-top: 1px dashed #b7b7b7;
  margin: 0 15px;
  display:none;
  @media (max-width: 1240px) {
    margin:0;
  }
}

/* ESTADOS: Activo y Completado */

/* Paso actual */
.progress-step.active .step-number {
  border-color: #333;
  color: #333;
}
.progress-step.active .step-label {
  display: block; /* Mostramos el texto solo en el paso activo */
  color: #333;
}

/* Pasos ya pasados */
.progress-step.completed .step-number {
  background: #333;
  border-color: #333;
  color: #fff;
}

/* Si prefieres el azul de tu botón Continuar */
.progress-step.active .step-number,
.progress-step.completed .step-number {
  border-color: #007bff;
}
.progress-step.completed .step-number {
  background: #007bff;
}


footer{
  h1, h2, h3, h4, h5, h6{
    color:white;
  }
}
.main-footer {
  background-color: #333333;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 40px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  a{
    color:#666;
  }
}

/* --- LOGO Y CONTACTO --- */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo-block {
  img{
    width:27px;
    @media (max-width: 1240px) {
      width:20px;
    }
  }
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

/* Representación de la bandera */
.flag-icon {
  width: 45px;
  height: 65px;
  background: linear-gradient(to bottom, #aa151b 25%, #f1bf00 25%, #f1bf00 75%, #aa151b 75%);
  position: relative;
}

.logo-text .logo-subtitle {
  font-size: 16px; display: block;
  @media (max-width: 1240px) {
    font-size:12px;
  }
}
.logo-text .logo-title { font-size: 28px; margin: 0; font-weight: 600;
  @media (max-width: 1240px) {
    font-size:21px;
  }

}
.logo-text .logo-url-box {

  background: #fff;
  color: #333;
  display:none;
  padding: 2px 8px;
  font-size: 14px;
  margin-top: 5px;
  border-radius: 2px;
}

.footer-quick-contact {
  display: flex;
  gap: 30px;
  font-size: 15px;
}

.footer-quick-contact a { color: #fff; text-decoration: none; }

.footer-line {
  border: 0;
  border-top: 1px solid #555;
  margin: 30px 0;
  @media (max-width: 1240px) {
    margin:10px 0;
  }
}

/* --- GRID DE COLUMNAS --- */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: 40px;
}

.footer-column h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom:10px;

}

.footer-column p {
  font-size: 14px;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom:20px;
  @media (max-width: 1240px) {
    margin-bottom:0;
  }
}

.footer-column a { color: #fff; text-decoration: underline; }

/* Iconos Sociales */
.footer-socials {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.footer-socials a {
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-socials a:hover { opacity: 0.7; }

/* --- BARRA LEGAL --- */
.footer-legal-bar {
  background-color: #e5e5e5;
  color: #666;
  text-align: center;
  padding: 5px 0;
  font-size: 13px;
}

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width:1240px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-quick-contact {
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
  }

  .footer-grid {
    gap:20px;
    grid-template-columns: 1fr; /* Una columna en móvil */
  }

  .footer-column h3 {
    margin-top: 10px;
    margin-bottom:10px;
  }
}

/* Contenedor principal */
.faq-wrapper {
  background-color: #d1d5db; /* Gris de fondo de la imagen */
  padding: 40px 20px;
  border-radius: 8px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #d1d5db;
  padding-bottom: 10px;
}

/* Item de Acordeón */
.faq-item {
  padding: 15px 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}


/* Cabecera (Summary) */
.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Quita la flecha por defecto */
  outline: none;
}

.faq-header::-webkit-details-marker {
  display: none; /* Quita flecha en Safari */
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  padding-right: 20px;
}

/* Iconos + / - personalizados */
.faq-icon {
  width: 24px;
  height: 24px;
  border: 1px solid #333;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Símbolo + */
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: #333;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Línea horizontal */
.faq-icon::before {
  width: 12px;
  height: 2px;
}

/* Línea vertical */
.faq-icon::after {
  width: 2px;
  height: 12px;
}

/* Cambio a símbolo - cuando está abierto */
.faq-item[open] .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Contenido del texto */
.faq-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  padding-right: 40px;
  animation: fadeIn 0.4s ease;
  p{
    margin-bottom:0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}


.faq-modern-section {
  background-color: #efefef;
  padding: 60px 20px;
  font-family: sans-serif;
  @media (max-width: 1240px) {
    padding:30px 10px;
  }
}

.faq-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive */
  gap: 30px;
  @media (max-width: 1240px) {
    gap:0;
  }
}

.faq-column-header {
  text-align: center;
  margin-bottom: 25px;
}

.faq-column-header h3 {
  font-size: 1.2rem;
  color: #333;
  font-weight: 700;
}



/* Estilo para los iconos SVG */
.faq-column-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px; /* Espacio para que el icono no toque los bordes */

  i{
    font-size:48px;
  }
}

.faq-column-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Tarjeta contenedora */
.faq-card {
  padding: 15px;
  @media (max-width: 1240px) {
    padding:0;
  }
}

/* Items del Acordeón */
.faq-modern-item {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-modern-item summary {
  list-style: none;
  padding: 0px 15px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2c3e50;
  transition: background 0.3s;
  span.plus-icon{
    flex:20px;
    text-align:end;
  }
}


.faq-modern-item summary::-webkit-details-marker {
  display: none;
}

/* Icono +/- */
.plus-icon::after {
  content: '+';
  font-size: 26px;
  font-weight: 300;
  line-height:36px;
}

.faq-modern-item[open] .plus-icon::after {
  content: '−';
}

/* Contenido */
.faq-content {
  padding: 0 15px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  border-top: none;
}



/* --- SECCIÓN CONTACTO (Banner Azul) --- */
.contact-banner {
  background-color: #29abe2; /* Azul brillante de la captura */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-banner-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-title {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.contact-subtitle {
  font-size: clamp(14px, 3vw, 19px);
  margin-bottom: 35px;
  @media (max-width: 1240px) {
    margin-bottom:15px;
  }
}

/* Contenedor de las cajas blancas */
.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Cajas blancas de contacto */
.contact-link-box {
  background-color: #ffffff;
  color: #444444; /* Texto oscuro para legibilidad */
  text-decoration: none;
  width: 100%;
  max-width: 550px; /* Ancho similar al de la imagen */
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 4px; /* Esquinas ligeramente suavizadas */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-link-box:hover {
  background-color: #f8f8f8;
  transform: translateY(-2px);
}

/* Ajuste para móvil */
@media (max-width: 1240px) {
  .contact-banner {
    padding: 30px 20px;
  }
  .contact-link-box {
    font-size: 14px;
    padding: 8px 10px;
  }
}

/* --- ESTILOS PASO 4 (Revisión y Pago) --- */

/* Ocultar sidebar y centrar contenido en el Paso 4 */
.translation-wizard-container.step-4-mode {
  display: block; /* Rompe el grid */
}

/* El sidebar es ahora un panel flotante global (abre el carrito), disponible también
   en los pasos 4/5; solo se oculta la barra sticky "Ver pedido". */
.translation-wizard-container.step-4-mode .order-summary-toggle {
  display: none !important;
}

.translation-wizard-container.step-4-mode .wizard-content {
  width: 100%;
  max-width: 900px; /* Un poco más ancho para la tabla */
  margin: 0 auto;
}

/* Tabla de Revisión Personalizada */

.review-row {
  display: grid;
  grid-template-columns: 40% 60%;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  background-color: #f9f9f9;
  padding: 12px 20px;
  font-weight: 400;
  color: #7A7A7A;
  border-right: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.review-value {
  padding: 12px 20px;
  color: #333;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.review-row.highlight {
  background-color: #e8f4fd;
}

.review-row.highlight .review-label,
.review-row.highlight .review-value {
  color: #7A7A7A;
  font-weight: 700;
  font-size: 1.1em;
  background-color: transparent;
}

/* Caja Gris de Información de Entrega */
.review-info-box {
  background-color: #f2f2f2;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  color: #444;
  border: 1px solid #e0e0e0;
}

.review-info-box h5 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #333;
  font-weight: 700;
}

.review-info-box p {
  margin: 0 0 15px 0;
  font-size: 14px;
  line-height: 1.6;
}

.review-info-box p:last-child {
  margin-bottom: 0;
}

/* Caja Azul de Atención */
.review-attention-box {
  background-color: #e7f3ff;
  border-left: 4px solid #007bff;
  padding: 20px;
  margin-bottom: 30px;
  font-size: 13px;
  color: #0056b3;
  line-height: 1.5;
}

.review-attention-box strong {
  font-weight: 700;
}

/* Responsive para la tabla */
@media (max-width: 1240px) {
  .review-row {
    grid-template-columns: 1fr;
  }
  .review-label {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 8px 15px;
    font-size: 15px;


  }
  .review-value {
    padding: 10px 15px;
    font-size:15px;
    span{
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
      display: block;
      max-width: 100%;
    }
  }
}

/* ==========================================================================
   NUEVO ESTILO REVISIÓN DE PEDIDO (MINIMALISTA)
   ========================================================================== */

/* Contenedor principal sin bordes */
.review-details-grid {
  display: block;
  width: 100%;
  background-color: #f6f6f6;
  margin-bottom: 10px;
  border: none; /* Quitamos bordes */
  border-radius: 0;
  padding:20px 20px 15px 20px;
  @media(max-width:480px){
    padding:15px 20px 10px 20px
  }
}

/* Filas limpias */
.review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Alineación superior por si hay varias líneas */
  padding: 0; /* Espaciado vertical cómodo */
  border-bottom: none; /* Sin líneas entre filas */
  font-size: 15px;
  color: #333;
}

/* Etiquetas (Izquierda) */
.review-label {
  background-color: transparent; /* Sin fondo gris */
  font-weight: 400; /* Negrita */
  width: 40%;
  padding: 0;
  border: none;
  text-align: left;
}

/* Valores (Derecha) */
.review-value {
  width: 60%;
  text-align: right;
  color: #555;
  padding: 0;
  background-color: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Alinear contenido a la derecha */
}

/* Línea discontinua separadora */
.review-separator {
  border: 0;
  border-top: 1px dashed #ccc;
  margin: 20px 0;
  height: 1px;
  width: 100%;
  @media (max-width: 1240px) {
    margin:5px 0;
  }
}

/* Totales (Subtotal, IVA, Total) */
.review-row.total-section {
  font-size: 16px;
  padding: 0;
  @media (max-width: 1240px) {
    padding:0;
  }

  }




.review-row.final-total {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-top: 0;
  .review-label, .review-value {
    color:#000;
    @media (max-width: 1240px) {
      font-size:15px;
    }
  }
}

/* --- CAJA GRIS INFERIOR (Plazos y Datos) --- */
.review-footer-box {
  background-color: #f8f9fa; /* Gris muy claro */
  padding: 20px;
  border-radius: 4px;
  margin-top: 30px;
  font-size: 14px;
  color: #555;
  @media (max-width: 1240px) {
    padding:20px 25px;
    margin-top:50px;
  }
}

.review-footer-row {
  display: flex;
  margin-bottom: 20px;
}

.review-footer-label {
  font-weight: 700;
  width: 150px;
  flex-shrink: 0;
  color: #333;
}

.review-footer-value {
  flex-grow: 1;
  line-height: 1.6;
}

/* P4c: plazo de entrega y datos de envío FUERA de la caja gris. */
.review-delivery-info {
  margin-top: 24px;
  @media(max-width:480px){
    margin-top:44px;
  }
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  padding: 0 20px;
}
.review-delivery-plazo { margin-bottom: 12px; }
.review-delivery-envio { margin-bottom: 4px; }
.review-delivery-envio-title { font-weight: 700; margin-bottom: 2px; }
/* La caja gris ahora solo contiene el aviso ATENCIÓN. */
.review-footer-box .review-attention-note { margin-top: 0; }

/* P4b: "+ Código promocional" desplegable. */
.coupon-toggle-link {
  background: none; border: none; cursor: pointer; padding: 0;
  color: #929292; font-weight: 400; font-size: 14px;
}
.coupon-toggle-link:hover { color: #0056b3; }
.coupon-collapse { margin-top: 10px; }
.coupon-collapse[hidden] { display: none; }

/* Nota de Atención (Azul al final) */
.review-attention-note {
  margin-top: 20px;
  font-size: 14px;
  color: #000;
  line-height: 1.5;
  font-style: italic;
  @media (max-width: 1240px) {
    font-size:14px;
  }
}

.review-attention-note strong {
  font-style: normal;
  text-transform: uppercase;
}

/* Ocultar elementos antiguos si quedan */
.review-info-box, .review-attention-box {
  display: none;
}

/* Ajuste Responsive */
@media (max-width: 1240px) {
  .review-footer-row {
    flex-direction: column;
  }
  .review-footer-label {
    margin-bottom: 5px;
  }
}


/* ========================================
   BOTÓN FLOTANTE WHATSAPP
   ======================================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 20px;
  background-color: #25d366; /* Verde oficial WhatsApp */
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 35px; /* Tamaño del icono */
  box-shadow: 2px 2px 2px #999;
  z-index: 200; /* Muy alto para que flote sobre todo */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128C7E; /* Verde más oscuro al pasar el mouse */
  color: #FFF;
  transform: scale(1.1); /* Efecto zoom */
}

/* Ajuste para móviles */
@media (max-width:1240px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 60px;
    right: 10px;
    font-size: 28px;
  }
}


/* --- ESTILOS CUPÓN DESCUENTO --- */
.coupon-section {
  margin-bottom: 20px;
  text-align:right;
}

.coupon-row {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Alineado a la derecha en escritorio */
  gap: 15px;
}

.coupon-label {
  font-size: 14px;
  color: #555;
  margin: 0;
  white-space: nowrap;
}

.coupon-input-group {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

#coupon-code-input {
  width: 150px;
  padding: 6px 12px;
}

#btn-apply-coupon {
  padding: 6px 15px;
  font-size: 13px;
  white-space: nowrap;
}

#coupon-message {
  text-align: right;
  font-size: 12px;
  margin-top: 5px;
  min-height: 15px;
}

/* --- VERSIÓN MÓVIL (TÍTULO ARRIBA, INPUT+BOTÓN ABAJO) --- */
@media (max-width:1240px) {
  .coupon-row {
    flex-direction: column; /* Apila verticalmente */
    align-items: flex-start; /* Alinea a la izquierda */
    gap: 8px;
  }

  .coupon-label {
    font-weight: 600; /* Un poco más visible en móvil */
    margin-bottom: 2px;
  }

  .coupon-input-group {
    width: 100%; /* Ocupa todo el ancho */
    display: flex;
  }

  #coupon-code-input {
    flex-grow: 1; /* El input se estira para llenar el hueco */
    width: auto;  /* Anula el ancho fijo de escritorio */
  }

  #btn-apply-coupon {
    flex-shrink: 0; /* El botón mantiene su tamaño */
  }

  #coupon-message {
    text-align: left; /* Mensaje alineado a la izquierda */
  }
}

#shipping-address-fieldset{
  display:none; margin-top: 25px; padding: 25px; background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px;
  @media (max-width:1240px) {
    padding:10px;
  }
}
/* Título "DIRECCIÓN DE ENVÍO" con la misma tipografía que los <h4> de sección (sin emoji). */
#shipping-address-fieldset legend {
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 600;
  font-size: 15px;
  color: #000;
  padding: 0;
  margin-bottom: 12px;
}

/* Selects de país (envío + facturación particular/empresa): fondo BLANCO (son editables) y
   MISMA flecha chevron. Antes: envío se veía gris (background:transparent sobre el fieldset gris),
   Empresa mostraba la flecha nativa (sin regla) y Particular tenía la posición dispar. */
#tr_client_country,
#billing_particular_country,
#billing_empresa_country {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNmM3NTdkIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgY2xhc3M9ImZlYXRoZXIgZmVhdGhlci1jaGV2cm9uLWRvd24iPjxwb2x5bGluZSBwb2ludHM9IjYgOSAxMiAxNSAxOCA5Ij48L3BvbHlsaW5lPjwvc3ZnPg==");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}










/* --- CONFIGURACIÓN DESKTOP (Como la imagen) --- */
.top_bar {
  background-color: #f1f1f1; /* Gris claro de la imagen */
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
}

.top_bar a {
  color: var(--color-secondary);
  font-size: 14px;
  font-weight: 500;
}

.main_bar {
  background-color: #ffffff;
  padding: 15px 0;
  /* Sin border-bottom: el separador inferior lo pone `header`; evita el doble borde bajo el logo. */
}

.notice_bar{
  background-color: #F7F6F6;
  text-align:center;
  padding:10px 20px;
  @media (max-width:767px){
    font-size:12px;
    padding:5px 10px;
  }
}



.hamburger-btn, .mobile_nav {
  display: none; /* Ocultos en desktop */
}

/* --- CONFIGURACIÓN MÓVIL (< 768px) --- */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important; /* Escondemos la barra gris superior */
  }

  .hamburger-btn {
    display: block; /* Mostramos la hamburguesa */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
  }


  .mobile_nav {
    display: none;
    flex-direction: column;
    position: fixed; /* Cambiado a fixed para que cubra toda la pantalla */

    /* Ajuste de la altura: Padding superior (10px) + Logo (65px) + Padding inferior (10px) = 85px */
    top: 85px;
    left: 0;
    right: 0;
    bottom: 0; /* Esto fuerza al menú a llegar hasta el final de la pantalla */

    background: #ffffff;
    z-index: 9999; /* Asegura que esté por encima de todo el wizard */
    overflow-y: auto; /* Permite scroll interno si hay muchos enlaces */
    padding: 20px 0;
  }

  .mobile_nav.active {
    display: flex;
  }

  .mobile_nav a {
    padding: 20px; /* Enlaces más grandes y fáciles de pulsar */
    color: #333;
    text-align: center;
    font-size: 24px; /* Texto más legible en móvil */
    font-weight:bold;
    text-decoration: none;
  }

  .mobile_nav a:last-child {
    border-bottom: none;
  }

  /* Bloquear el scroll del fondo cuando el menú está abierto */
  body.menu-open {
    overflow: hidden;
  }
}

/* --- MODAL CONTINGENCIA RE-AJUSTADO --- */
.upload-error-content {
  max-width: 700px !important;
  padding:  10px 40px !important;
  border-radius: 15px !important;
}

.modal-title-error, .modal-subtitle-error {
  color: #E94073 !important; /* Rosa de la imagen */
  text-align: center;
  margin-bottom:10px;
}

.modal-subtitle-error {
  margin-bottom: 15px;
  font-weight: 700;
}

/* Unificar tamaño de letra en inputs y selects */
.upload-error-content .form-control {
  font-size: 14px !important;
  height: 45px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Grid superior para los campos de texto */
.grid-emergency-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

/* El país y el uploader ocupan el 100% */
.full-width-row {
  grid-column: span 2;
  width: 100%;
  margin-bottom: 15px;
}

.dropzone-area-emergency {
  width: 100%; /* Uploader al 100% */
  border: 2px dashed #4285f4;
  border-radius: 10px;
  padding: 25px;
  background: #f8fbff;
  text-align: center;
  cursor: pointer;
}

.dropzone-area-emergency p {
  color: #4285f4;
  font-weight: 700;
  margin: 0;
}

#em-file-list {
  margin-top: 10px;
  text-align: left;
  max-height: 150px;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .grid-emergency-top { grid-template-columns: 1fr; }
  .full-width-row { grid-column: span 1; }
}

/* Estado visual cuando se arrastra un archivo sobre el dropzone del modal */
.dropzone-area-emergency.dragging {
  border-color: #E94073 !important; /* Rosa corporativo del modal */
  background-color: #fff5f8 !important;
  transform: scale(1.02);
  transition: all 0.2s ease;
}

/* ==========================================================================
   PEDIDO MÚLTIPLE (feature 2026-07) — portada de modo, tarjetas de línea,
   resumen multi-línea y bifurcación "¿Cómo quieres continuar?".
   Base funcional; el fine-tuning visual se hará después.
   ========================================================================== */

/* Portada (paso 0) */
#step-0-mode .mode-intro { margin-bottom: 30px; }
#step-0-mode .mode-intro-title { font-size: 22px; font-weight: 700; margin: 0 0 12px; line-height: 1.25; }
#step-0-mode .mode-intro-desc { color: #555; font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
/* Paso 0: las dos tarjetas en FILA, mismo ancho, padding contenido y sin sangría
   izquierda (el margen del antiguo radio-check ya no aplica). En móvil vuelven a columna. */
.mode-selector { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.mode-card { position: relative; flex: 1 1 0; min-width: 0; padding: 14px 16px; }
.mode-card .traductor-card-content { margin-left: 0; }
@media (max-width: 600px) { .mode-selector { flex-direction: column; } }
.mode-card .mode-badge { position: absolute; top: -12px; right: 14px; background: #111; color: #fff; border-radius: 14px; padding: 3px 12px; font-size: 12px; font-weight: 600; }

/* Tarjetas de líneas confirmadas (paso 1) */
.lineas-completadas { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.linea-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; background: #f5f6f8; border-radius: 10px; padding: 14px 16px; }
.linea-card-num { font-size: 11px; font-weight: 700; color: #2A5FD9; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.linea-card-title { font-weight: 700; color: #000000; }
.linea-card-sub, .linea-card-stats { color: var(--color-disabled); font-size: 13px; }
.linea-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; }
.linea-card-actions a { color: #2A5FD9; text-decoration: none; font-weight: 400; font-size: 14px; }
.linea-card-actions a.linea-borrar { color: gray; }
.linea-consultar-tag { display: inline-block; background: #fff3cd; color: #8a6d00; border-radius: 10px; padding: 1px 8px; font-size: 11px; font-weight: 600; margin-left: 6px; vertical-align: middle; }

/* Enlace "+ Añadir otro Pedido" */
.btn-add-linea { background: transparent !important; color: #2A5FD9 !important; border: none !important; box-shadow: none !important; font-weight: 700; padding: 8px 4px; width: auto; }
.btn-add-linea:hover { text-decoration: underline; }

/* Resumen multi-línea (paso 4) */
.review-lineas-list { display: flex; flex-direction: column; padding:0 20px;
  border-top:1px solid #c7c7c7;
  border-bottom:1px solid #c7c7c7;
}
.review-linea {
  padding: 14px 0;
  &:not(.review-linea:last-child){
    border-bottom: 1px solid #eee;
  }
}
.review-linea-top { display: flex; justify-content: space-between; align-items: center; }
.review-linea-title { font-weight: 700; color: #222;
@media(max-width:480px){font-size:15px;}
}
.review-linea-sub { color: #8a8f98; font-size: 15px; margin-top: 2px; }
.review-linea-bottom { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.review-linea-stats { color: #8a8f98; font-size: 15px; }
.review-linea-price { font-size: 16px; color: #222;
  @media(max-width:480px){font-size:15px;}
}
.review-linea-consultar { color: #8a8f98; font-style: italic; }
.review-remove-linea { background: none; border: none; color: #2A5FD9; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }

/* Bifurcación Caso 3 */
.review-branching { margin: 22px 0; }
.review-branching h4 { margin: 0 0 12px; font-size: 16px; }
.branch-option { display: block; border: 1px solid #d7dbe0; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; cursor: pointer; }
.branch-option input { margin-right: 8px; }
.branch-option:has(input:checked) { border-color: #2A5FD9; background: #f5f8ff; }
.branch-option .branch-title { font-weight: 700; color: #222; }
.branch-option .branch-desc { display: block; color: #6b7280; font-size: 13px; margin-top: 4px; }
.branch-option.branch-disabled { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================================
   WIZARD 2.0 — Correcciones de UI (2026-07-20)
   ========================================================================== */

/* Ocultar los radios nativos de los selectores tipo tarjeta (la tarjeta ES el control). */
.mode-selector input[type="radio"],
.radio-group-wrapper input[type="radio"],
.billing-type-selector input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}

/* La caja de cada paso: sin borde ni sombra. */
.translation-wizard-step { border: none !important; box-shadow: none !important; }

/* Barra de progreso: sin texto; círculos con estado por color. */
.wizard-progress .step-label { display: none !important; }
.progress-step { background: transparent !important; border: none !important; padding: 0 !important; }
.progress-step .step-number {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: #e9ecef; color: #667085; font-weight: 700; font-size: 15px;
  border: 1px solid #e9ecef; transition: all .2s ease;
}
.progress-step.active .step-number { background: #fff; color: #2A5FD9; border-color: #2A5FD9; font-weight:400}     /* actual: fondo blanco, letra negra */
.progress-step.completed .step-number { background: #2A5FD9; color: #fff; border-color: #2A5FD9; } /* completado: fondo azul, letra blanca */
/* Bullets de pasos pegados a la derecha y SIN barritas divisorias. */
.wizard-progress { justify-content: flex-end !important; gap: 10px; max-width: none !important; margin: 0 !important; }
.step-divider { display: none !important; }

/* Resumen ACUMULATIVO por grupos (pedido múltiple) en el sidebar. */
.summary-grupos { margin: 6px 0 12px; }
.summary-grupos-head { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #8a8f98; margin: 0 0 8px; }
.summary-grupo { border: 1px solid #e6e8ec; border-radius: 8px; padding: 9px 11px; margin-bottom: 8px; background: #fafbfc; }
.summary-grupo .grp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.summary-grupo .grp-title { font-weight: 700; color: #033076; font-size: 13.5px; }
.summary-grupo .grp-trad { color: #555; font-size: 12px; margin-top: 2px; }
.summary-grupo .grp-stats { color: #8a8f98; font-size: 11.5px; margin-top: 3px; }
.summary-grupo .grp-consultar { color: #b26a00; font-weight: 700; font-size: 12.5px; }

/* Títulos de sección en mayúsculas (IDIOMAS / TRADUCTOR / DOCUMENTOS). */
.title-label { text-transform: uppercase; letter-spacing: .02em; }

/* Paso 0: quitar la línea azul bajo el h2. */
.mode-intro-title { border-bottom: none !important; padding-bottom: 0 !important; }

/* Paso 1: idiomas uno al lado del otro también en móvil. */
@media (max-width: 600px) {
  .translation-options { display: flex; flex-direction: row; gap: 12px; }
  .translation-options .form-group { flex: 1 1 0; min-width: 0; margin-bottom: 0; }
}

/* Placeholder del traductor centrado. */
.traductor-placeholder { text-align: center; color: #8a8f98; }

/* Dropzone "Subir archivos": icono y texto EN LA MISMA LÍNEA; el pie (hint) debajo. */
#file-dropzone.dropzone-area {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0 4px; text-align: center; padding: 26px 16px;
}
.dropzone-icon { line-height: 0; display: inline-flex; margin-bottom:2px}
/* Icono = una sola flecha arriba, del mismo tamaño que el texto "Subir archivos". */
.dropzone-icon svg { width: 18px; height: 18px; color: #000000; }
.dropzone-text { font-weight: 600; color: #000000; margin: 0; font-size: 16px; }
.dropzone-hint { flex-basis: 100%; font-size: 12px; color: #7A7A7A; margin: 0; }

/* P1c: selector de traductor colapsable cuando hay varias opciones. */
.traductor-selector[data-expanded="false"] .traductor-options-list { display: none; }
/* Al desplegar "Cambiar", las tarjetas necesitan separación (antes salían pegadas). */
.traductor-options-list { display: flex; flex-direction: column; gap: 10px; }
.traductor-selector[data-expanded="true"] .traductor-collapsed { display: none; }
.traductor-collapsed {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
  border: 1px solid #E7E7E7; border-radius: 8px; background: #fff;
}
.traductor-collapsed-name { font-weight: 400; color: #333; }
.traductor-change-link {
  background: none; border: none; cursor: pointer;
  color: #2A5FD9; font-weight: 600; font-size: 14px; padding: 4px 6px;
  text-decoration: underline; white-space: nowrap;
}
.traductor-change-link:hover { color: #0056b3; }

/* Bloque agrupado del Paso 1 (combinaciones + formulario + añadir): borde que lo separa de la navegación. */
.step1-combos-group { border: 0px solid #E7E7E7; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
@media (max-width:1240px){ .step1-combos-group { padding: 14px; } }

/* "+ Añadir otro pedido": pastilla centrada (estado LISTA). */
.step1-add-row { display: flex; justify-content: center; margin: 8px 0 0; }
.btn-add-linea {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #eef2ff; color: #2A5FD9 !important; border: 1px solid #cdd8ff !important;
  border-radius: 18px; padding: 14px 34px; min-height: 42px; font-weight: 600; font-size: 15px;
  box-shadow: none !important; width: auto !important; cursor: pointer;
}
.btn-add-linea:hover { background: #e0e8ff; text-decoration: none; }
.btn-add-linea .add-plus { font-size: 18px; line-height: 1; }

/* "Modificar el tipo de pedido": enlace de vuelta al paso 0, alineado a la izquierda
   (en línea con el borde izquierdo del botón "Continuar"). */
.step1-back-row { margin-top: 16px; text-align: left; }
.btn-back-mode {
  display: inline-flex; align-items: center; gap: 6px;
  background: none !important; border: none !important; box-shadow: none !important;
  color: #6c757d !important; font-weight: 600; cursor: pointer; padding: 6px; width: auto !important;
}
.btn-back-mode:hover { color: #2A5FD9 !important; }
.btn-back-mode .back-arrow { width: 18px; height: 18px; }

/* Separación entre tarjetas de líneas confirmadas (pastillas). */
.lineas-completadas { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.lineas-completadas .linea-card { margin: 0; }

/* --- Tanda R: ritmo de espaciado (más aire ENTRE secciones que dentro de cada sección) --- */
/* Título ↔ control: separación pequeña (8px, en .title-label). Entre secciones (Idiomas → Traductor
   → Documentos): separación grande vía el margin-bottom del bloque de cada sección. */
.translation-options { margin-bottom: 10px; }
#traductor-jurado-container.radio-group-wrapper { margin-bottom: 28px; }
@media (max-width:1240px) {
  .translation-options { margin-bottom: 20px; }
  #traductor-jurado-container.radio-group-wrapper { margin-bottom: 20px; }
}

/* --- Tanda R: flujo "Añadir otro pedido" (grupo + formulario + acciones) --- */
/* Grupo "Combinaciones añadidas" (arriba): separación clara respecto al formulario. */
.lineas-completadas-wrap { margin-bottom: 32px; }
@media (max-width:1240px) { .lineas-completadas-wrap { margin-bottom: 24px; } }

/* Título de la iteración del formulario → badge "PEDIDO N" a la derecha (tanda U). */
#linea-form-wrapper { position: relative;

  display: block;
  border: 1px solid rgb(221, 221, 221);
  padding: 20px;
  border-radius: 8px;

}
.linea-form-title {
  position: absolute; top: -15px; right: 15px; margin: 0; z-index: 2;
  background: #eef2ff; color: #2A5FD9; border: 1px solid #cdd8ff;
  border-radius: 999px; padding: 4px 13px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* Fila de acciones de la iteración: Cancelar (enlace) + Aceptar combinación (botón activo). */
.linea-form-actions {
  display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px;
}
.btn-aceptar-linea {
  background: var(--color-accent); color: #fff; border: none; border-radius: 18px;
  padding: 14px 34px; min-height: 48px; font-weight: bold; font-size: 15px; cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-aceptar-linea:hover:not(:disabled) { background: #0056b3; }
.btn-aceptar-linea:disabled { background: var(--color-btn-inactive-bg); color: var(--color-btn-inactive-text); cursor: not-allowed; box-shadow: none; }
.btn-cancelar-linea {
  background: none; border: none; box-shadow: none; color: var(--color-disabled);
  font-weight: 600; cursor: pointer; padding: 6px; width: auto; font-size: 14px;
}
.btn-cancelar-linea:hover { color: #000000; text-decoration: underline; }
@media (max-width:1240px) {
  .linea-form-actions { flex-direction: column-reverse; gap: 10px; }
  .btn-aceptar-linea { width: 100%; }
}

/* --- Tanda R: tipografía en MÓVIL --- */
@media (max-width:1240px) {
  .translation-wizard-step h4 { font-size: 15px; }               /* títulos de sección */
  #step-0-mode .mode-intro-title { font-size: 18px; }            /* intro "Tramitación online…" */
  .traductor-description,
  .wizard-continue-hint { font-size: 13px; }                     /* textos/descripciones */
  .wizard-navigation button,
  #btn-start-wizard,
  .btn-aceptar-linea,
  .btn-cancelar-linea { font-size: 17px; }                       /* botones (Empezar, Continuar, Aceptar, Cancelar…) */
  .wizard-navigation button.back { font-size: 17px; }            /* enlaces "‹ Atrás" */
}

/* ==========================================================================
   AJUSTES DE DISEÑO (2026-07-24) — títulos en mayúsculas, chevrons de navegación,
   revisión compacta y barra OCR con progreso simulado.
   ========================================================================== */

/* Todos los títulos de sección del wizard (H4) en MAYÚSCULAS. El texto fuente se
   mantiene en minúsculas (acentos/mantenimiento); el look es por CSS. */
.translation-wizard-step h4 { text-transform: uppercase; letter-spacing: .02em; }

/* Grupos de formulario dentro de un paso (tanda V): separación clara entre grupos.
   El wrapper .wz-step-group es invisible; solo aporta margen inferior si NO es el último. */
.wz-step-group:not(:last-child) { margin-bottom: 50px; }
.wz-step-group > :last-child .form-group{
  margin-bottom: 0;

}   /* evita doble margen del último bloque interno */
@media (max-width:1240px){ .wz-step-group:not(:last-child) { margin-bottom: 50px; } }

/* Chevron de navegación (fuente única wz_chevron()). Coherencia en botones de
   avance/retroceso; se alinea con el texto y hereda el color del botón. */
.wz-chevron { width: 16px; margin-top:2px;height: 16px; flex: 0 0 auto; vertical-align: middle; }
.wizard-navigation button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wizard-navigation button.back { gap: 6px; align-items:end;}
.btn-back-mode .wz-chevron { width: 18px; height: 18px; }

/* Revisión multi-línea (pedido múltiple): mismo criterio compacto que el pedido único. */
.review-linea { padding: 8px 0; }
.review-linea-bottom { margin-top: 2px; }

/* Barra de subida/OCR: transición suave del relleno para que el progreso "suba". */
.upload-progress-fill { transition: width .35s ease; }

/* ==========================================================================
   CABECERA MÓVIL — Selector de idioma (dummy) + carrito (2026-07-20)
   A la izquierda del hamburger. Solo visible en móvil (<=1240px); en desktop el
   resumen del pedido vive en la barra lateral derecha, así que NO hay carrito.
   ========================================================================== */
/* Iconos de cabecera (idioma + carrito + FAQ) visibles en DESKTOP y MÓVIL. */
.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;    /* empuja el grupo hacia la derecha */
  margin-right: 10px;
}

/* --- FAQ (abre modal) --- */
.wz-header-faq {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 6px; font-size: 28px; color: #333; line-height: 1;
}
.wz-header-faq:hover { color: #2A5FD9; }

/* El FAQ ya no se muestra en el body: solo en el modal de la cabecera (que clona esta sección). */
.faq-modern-section { display: none; }

/* Estilos base de idioma y carrito, ahora también en desktop (antes solo <=1240px). */
.wz-lang-switch { position: relative; }
.wz-lang-btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  padding: 6px; font-size: 20px; color: #333; line-height: 1;
  position: relative;
}
/* Selector de idioma = solo la bandera (sin globo): en flujo, tamaño legible. */
.wz-lang-btn .wz-lang-flag {
  position: static;
  font-size: 22px; line-height: 1;
  background: none; border-radius: 0;
}
.wz-lang-menu {
  display: none;
  position: absolute; top: 100%; right: 0; z-index: 1200;
  margin: 6px 0 0; padding: 6px 0; list-style: none;
  min-width: 170px;
  background: #fff; border: 1px solid #e2e2e2; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.wz-lang-switch.open .wz-lang-menu { display: block; }
.wz-lang-menu li { margin: 0; }
.wz-lang-menu button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 10px 16px; font-size: 15px; color: #333;
}
.wz-lang-menu button:hover { background: #f2f5ff; }
/* Carrito: SOLO el icono (sin círculo/pastilla). Glifo blanco con contorno azul;
   contador superpuesto abajo-izquierda del icono (tanda U). */
.wz-header-cart {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; box-shadow: none; cursor: pointer;
  padding: 0 6px; border-radius: 0;
}
.wz-header-cart .fa-shopping-cart {
  font-size: 26px; line-height: 1;
  color: #fff; -webkit-text-stroke: 1.5px #2A5FD9; text-stroke: 1.5px #2A5FD9;
}
.wz-header-cart-count {
  position: absolute; top: 0; left: 25px;
  font-variant-numeric: tabular-nums; min-width: 18px; height: 18px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #2A5FD9; color: #fff; border: 1px solid #2A5FD9; border-radius: 12px;
  font-size: 12px; font-weight: 700;
}
body.wz-has-header-cart .order-summary-toggle { display: none !important; }

/* Modal de FAQ (reutiliza el contenido del FAQ del footer). */
/* Marca "Oficina del / TRADUCTOR JURADO" (bandera + texto). Reutilizada en modal FAQ y footer. */
.tj-brand { display: inline-flex; align-items: center; gap: 10px; }
.tj-brand-flag { width: 20px; height: auto; display: block; flex: 0 0 auto; }
.tj-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.tj-brand-sub { font-size: 14px; margin-bottom:1px; color: #333; }
.tj-brand-title { font-size: 14px; font-weight: 500; letter-spacing: .01em; color: #111; }
.tj-brand--light .tj-brand-sub { color: #cfd3da; }
.tj-brand--light .tj-brand-title { color: #fff; }

/* Modal de FAQ rediseñado (ver docs/nuevos-disenos/modal-faqs.jpg): cabecera con logo + X,
   cuerpo con acordeón (una columna), pie con texto + botones Teléfono/Email. */
.wz-faq-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100000;
  background: rgba(0,0,0,.5); overflow-y: auto;
}
.wz-faq-modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; padding: 24px; }
.wz-faq-modal {
  position: relative; display: flex; flex-direction: column;
  background: #f7f6f6; border-radius: 14px;
  /* PC: modal grande, centrado, con padding lateral generoso (como el de móvil pero sin pantalla completa). */
  max-width: 820px; width: 100%; margin: auto; max-height: calc(100dvh - 48px);
  padding: 24px 44px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28); overflow: hidden;
}
.wz-faq-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 0 15px 10px; border-bottom: 1px solid #C0C0C0; flex: 0 0 auto;
}
.wz-faq-modal-close {
  position: relative;
  width: 40px; height: 40px; flex: 0 0 auto;
  background: none; border: none; font-size: 0; line-height: 1;   /* oculta el × grueso */
  color: #444; cursor: pointer; padding: 0;
}
/* X de cierre FINA (mismo tamaño de 40px): dos líneas de 1.5px cruzadas. */
.wz-faq-modal-close::before,
.wz-faq-modal-close::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}
.wz-faq-modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.wz-faq-modal-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.wz-faq-modal-close:hover { color: #000; }
.wz-faq-modal-body { padding: 40px 0 40px 10px; overflow-y: auto; flex: 1 1 auto; }
.wz-faq-modal-title { margin: 12px 0 20px; font-size: 17px; font-weight: 700; letter-spacing: .02em; color: #1a1a1a; }
.wz-faq-modal-body .faq-modern-section { display: block !important; background: none; padding: 0; margin: 0; }
.wz-faq-modal-body .faq-grid { display: block; max-width: none; gap: 0; }
.wz-faq-modal-body .faq-column { width: 100%; }
.wz-faq-modal-body .faq-card { padding: 0; }
.wz-faq-modal-body .faq-modern-item { border-radius: 0; margin-bottom: 0; }
.wz-faq-modal-body .faq-modern-item summary { padding: 2px 0; font-size: 16px; color: #1a1a1a; }

/* Título "PREGUNTAS FRECUENTES" en la CABECERA del modal: oculto por defecto (móvil mantiene el logo
   + el título de abajo, como el diseño). En PC (≥769px) se muestra grande en lugar del logo. */
.wz-faq-modal-head-title { display: none; margin: 0; }
@media (min-width: 769px) {
  .wz-faq-modal-head .tj-brand { display: none; }             /* PC: quitar el logo de la cabecera */
  .wz-faq-modal-head-title {
    display: block; font-size: 24px; font-weight: 700; letter-spacing: .02em; color: #1a1a1a;
  }
  .wz-faq-modal-title { display: none; }                      /* PC: ocultar el "PREGUNTAS FRECUENTES" de abajo */
  /* Altura FIJA: el modal no crece al abrir preguntas; el cuerpo hace scroll dentro. */
  .wz-faq-modal { height: 80vh; }
  /* Espacio inferior en el cuerpo (scroll) del modal en PC. */
  .wz-faq-modal-body { padding-bottom: 200px; }
  /* Botones a la mitad de ancho y centrados (la fila de acciones ocupa el 50% y los 2 botones lo reparten). */
  .wz-faq-modal-actions { width: 50%; margin-left: auto; margin-right: auto; }
}
.wz-faq-modal-body .faq-content { padding: 0 50px 14px 0; color: #555; }
.wz-faq-modal-foot { padding: 16px 0 20px; border-top: 1px solid #000; flex: 0 0 auto; }
.wz-faq-modal-foot-text { margin: 0 15px 20px; font-size: 15px; color: #555; line-height: 1.5; }
.wz-faq-modal-actions { display: flex; gap: 14px; }
.wz-faq-modal-btn {
  flex: 1 1 0; text-align: center; text-decoration: none;
  padding: 7px; border: 1.5px solid #2A5FD9; border-radius: 18px;
  color: #2A5FD9; font-weight: 400; background: #fff;font-size:16px;
}
.wz-faq-modal-btn:hover { background: #2A5FD9; color: #fff; }
body.wz-faq-open { overflow: hidden; }

/* Móvil: el modal ocupa toda la pantalla (tipo menú). */
@media (max-width: 768px) {
  .wz-faq-modal-overlay.open { padding: 0; }
  .wz-faq-modal {
    padding:20px 30px;
    max-width: none; width: 100%; height: 100dvh; max-height: none;
    margin: 0; border-radius: 0;
  }
}

/* ==========================================================================
   DETALLE DEL PEDIDO — panel flotante (drawer) que abre el icono de carrito.
   Antes vivía como columna lateral fija; ahora está oculto por defecto en
   desktop y móvil, y se despliega desde la derecha al pulsar el carrito.
   ========================================================================== */
.wizard-sidebar {
  margin: 0; padding: 0; background: none; box-shadow: none;
  min-height: 0; max-width: none; width: auto;
}
.order-summary-content {
  display: none;
  /* !important: el markup trae style="position: relative;" inline en #order-summary-content. */
  position: fixed !important; top: 0; right: 0; left: auto; bottom: auto; z-index: 99999;
  width: 520px; max-width: 92vw; height: 100%;   /* PC: drawer más ancho (cabe "Plazo de realización" en 1 línea) */
  background: #F9F9F9; box-shadow: -8px 0 30px rgba(0,0,0,.22);
  padding: 24px 22px; overflow-y: auto;
}
.order-summary-content.active { display: block; }
.wz-summary-backdrop {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.45);
}
.wz-summary-backdrop.open { display: block; }
body.wz-summary-open { overflow: hidden; }

@media (max-width: 1240px) {
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;    /* empuja el grupo hacia la derecha, junto al hamburger */
    margin-right: 10px;
  }

  /* --- Selector de idioma --- */
  .wz-lang-switch { position: relative; }
  .wz-lang-btn {
    display: flex; align-items: center; gap: 4px;
    background: none; border: none; cursor: pointer;
    padding: 6px; font-size: 20px; color: #333; line-height: 1;
    position: relative;
  }
  .wz-lang-btn .wz-lang-flag {
    position: static;
    font-size: 22px; line-height: 1;
    background: none; border-radius: 0;
  }
  .wz-lang-menu {
    display: none;
    position: absolute; top: 100%; right: 0; z-index: 1200;
    margin: 6px 0 0; padding: 6px 0; list-style: none;
    min-width: 170px;
    background: #fff; border: 1px solid #e2e2e2; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
  }
  .wz-lang-switch.open .wz-lang-menu { display: block; }
  .wz-lang-menu li { margin: 0; }
  .wz-lang-menu button {
    display: block; width: 100%; text-align: left;
    background: none; border: none; cursor: pointer;
    padding: 10px 16px; font-size: 15px; color: #333;
  }
  .wz-lang-menu button:hover { background: #f2f5ff; }

  /* --- Carrito: SOLO el icono (blanco con contorno azul) + contador abajo-izquierda --- */
  .wz-header-cart {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; box-shadow: none; cursor: pointer;
    padding: 0 6px; border-radius: 0;
  }


  /* El carrito de cabecera SUSTITUYE la barra sticky "Ver pedido" del wizard. */
  body.wz-has-header-cart .order-summary-toggle { display: none !important; }

  /* D · Detalle del pedido en móvil = HOJA INFERIOR (bottom-sheet), no el drawer
     lateral de PC. Sobrescribe la base .order-summary-content (fixed/derecha/440px). */
  .order-summary-content {
    top: auto !important; right: 0 !important; left: 0 !important; bottom: 0 !important;
    width: 100% !important; max-width: none !important;
    height: auto !important; max-height: 85dvh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,.22);
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  }
}

/* Animación "bump" al cambiar el total. */
@keyframes wzCartBump {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.14); }
  60%  { transform: scale(.96); }
  100% { transform: scale(1); }
}
.wz-cart-bump { animation: wzCartBump .38s ease; }

/* ==========================================================================
   ACCESIBILIDAD (2026-07-21) — foco visible + reduce motion. No cambia la estética.
   ========================================================================== */
/* Foco visible por teclado en controles personalizados que ocultaban el outline. */
.faq-header:focus-visible,
.wz-lang-btn:focus-visible,
.wz-header-cart:focus-visible,
.order-summary-toggle:focus-visible,
.mode-card:focus-visible,
.wizard-navigation button:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respeta la preferencia del sistema de reducir movimiento. */
@media (prefers-reduced-motion: reduce) {
  .bounce-icon,
  .wz-cart-bump,
  .whatsapp-float,
  [class*="pulse"] {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}


/* Checkbox custom: anillo cuando el input (oculto) recibe foco por teclado. */
.checkbox-container input:focus-visible ~ .checkmark {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Skip link: oculto hasta recibir foco por teclado (salta a #main-content-area). */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100000;
  background: #007bff; color: #fff; padding: 10px 16px; border-radius: 4px;
  text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 8px; outline: 2px solid #fff; outline-offset: 2px; }

/* Texto visible solo para lectores de pantalla (H1 SEO, etiquetas ocultas). */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Rendimiento: la animación del spinner solo compone (transform). */
.spinner { will-change: transform; }

/* ==========================================================================
   FOOTER SIMPLE (tanda U) — bloque oscuro: marca + descripción + oficina + barra
   legal. Ver docs/nuevos-disenos/footer.jpg. SOLO móvil (≤1240px); en PC se muestra
   el footer antiguo .main-footer ("parte negra"). El toggle está al final del bloque.
   ========================================================================== */
.site-footer-simple { display: none; background: #2b2b2b; color: #e6e6e6; }
.site-footer-simple__inner { max-width: 1100px; margin: 0 auto; padding: 44px 22px 34px; }
.site-footer-simple .tj-brand { margin-bottom: 22px; }
.site-footer-simple__desc { max-width: 620px; margin: 0 0 26px; font-size: 16px; line-height: 1.55; color: #dcdcdc; }
.site-footer-simple__office { font-size: 15px; line-height: 1.6; color: #dcdcdc; }
.site-footer-simple__office strong { display: block; margin-bottom: 4px; color: #fff; font-weight: 700; }
.site-footer-simple__legal { background: #E3E3E3; border-top: 1px solid #d0d0d0; padding: 10px; text-align: center; }
.site-footer-simple__legal a { color: #606060; text-decoration: none; font-size: 13px; display:inline-block;}
.site-footer-simple__legal a:hover { color: #000; text-decoration: underline; }
@media (max-width: 768px) {
  .site-footer-simple__inner { padding: 34px 18px 28px; }
  .site-footer-simple__desc { font-size: 15px; }
  .site-footer-simple__legal { font-size: 13px; }
}

/* Swap de footers: PC = antiguo (.main-footer, negro); móvil (≤1240) = simple rediseñado. */
@media (max-width: 1240px) {
  .main-footer { display: none; }
  .site-footer-simple { display: block; }
}

/* Objetivos táctiles ≥44px en los controles interactivos del wizard (WCAG 2.5.5).
   Los botones sólidos usan su propio min-height unificado (48px), así que no van aquí. */
.form-control,
.order-summary-toggle,
.wz-header-cart {
  min-height: 44px;
}

/* ==========================================================================
   MÓVILES ESTRECHOS (iPhone 13 ≈390px, iPhone 17 Pro ≈393px): ajuste de espacios
   laterales/paddings para que NADA desborde. El culpable principal era el widget
   Cloudflare Turnstile (iframe FIJO de ~300px) que no cabía por los paddings
   anidados (container 20 + step 15 + step1-combos-group 14 + linea-form-wrapper 20
   ≈ 69px por lado → ~252px de contenido). Aquí bajamos esos paddings a ~42px por
   lado → ~306px de contenido, con lo que el Turnstile (300px) entra sin recortarse.
   Va al final del fichero para ganar a los bloques @media (max-width:1240px).
   ========================================================================== */
@media (max-width: 480px) {
  .translation-wizard-container { padding: 12px; }
  .translation-wizard-step { padding: 35px 0; }
  .step1-combos-group { padding: 10px 0; }
  #linea-form-wrapper { padding: 16px 12px; }
  /* Turnstile centrado (el markup trae justify-content:flex-end inline → hace falta !important). */
  .turnstile-wrapper { justify-content: center !important; margin: 0; }
  /* Red de seguridad: la tabla de ficheros y textos largos nunca fuerzan scroll horizontal. */
  .file-list-table .file-name { max-width: 150px; }
}

/* ==========================================================================
   DETALLE DEL PEDIDO DESACTIVADO (temporal): el carrito de cabecera es SOLO informativo
   (contador de combinaciones). NO se muestra el panel/drawer del resumen ni su toggle/backdrop,
   ni en móvil ni en PC. El JS del resumen sigue calculando (para actualizar el contador), pero
   no se abre nada. Para reactivarlo: quitar este bloque y restaurar el wiring del carrito en header.php.
   ========================================================================== */
.wizard-sidebar,
.order-summary-content,
.order-summary-toggle,
.wz-summary-backdrop { display: none !important; }
/* El icono del carrito ya no abre nada → no debe parecer clicable. */
.wz-header-cart { cursor: default; }

/* ==========================================================================
   LANDINGS DE RESULTADO (pago OK / error / revisión) — sistema de diseño común.
   Ver docs/landing-pages/*.jpg. Móvil = tarjeta a ancho completo; PC = centrada 480px.
   ========================================================================== */
.wz-landing {
  font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
  max-width: 480px;
  margin: 48px auto 80px;
  padding: 0 24px;
  color: #101828;
}
@media (max-width: 768px) { .wz-landing { margin: 28px auto 60px; padding: 0 20px; } }

/* Sticky footer SOLO en las landings (contenido corto → sin hueco blanco bajo el footer).
   `:has()` scopea el truco a las páginas que contienen .wz-landing; no afecta al resto. */
body:has(.wz-landing) { display: flex; flex-direction: column; min-height: 100vh; }
body:has(.wz-landing) .main-footer,
body:has(.wz-landing) .site-footer-simple { margin-top: auto; }

/* Icono superior en círculo de color (tinte claro + icono saturado). */
.wz-landing-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; font-size: 32px;
}
.wz-landing-icon.--ok     { background: #E7F4D8; color: #5FA43C; }
.wz-landing-icon.--error  { background: #FCE9E9; color: #E4443C; }
.wz-landing-icon.--review { background: #FDEFD0; color: #E8940C; }

.wz-landing-title { text-align: center; font-size: 23px; font-weight: 700; line-height: 1.3; margin: 0 0 12px; color: #101828; }
.wz-landing-ref {
  display: inline-block; margin: 0 0 20px;
  background: #F2F4F7; color: #667085; border-radius: 999px;
  padding: 4px 14px; font-size: 13px; font-weight: 600;
}
.wz-landing-refwrap { text-align: center; }
.wz-landing-sub { text-align: center; color: #667085; font-size: 15px; line-height: 1.6; margin: 0 0 34px; }

/* "PRÓXIMOS PASOS" + stepper vertical. */
.wz-landing-steps-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #98A2B3; margin: 0 0 18px; }
.wz-steps { list-style: none; margin: 0 0 34px; padding: 0; }
/* --icon: diámetro del círculo. La línea conectora se ancla al CENTRO del icono actual y llega al
   CENTRO del siguiente (top: media-icono; bottom: -media-icono), relativo a la fila → funciona sea
   cual sea el nº de líneas del texto (no depende de una altura fija). */
.wz-step {
  --icon: 36px;
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 26px;   /* separación entre pasos */
}
.wz-step:last-child { padding-bottom: 0; }
.wz-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(var(--icon) / 2);          /* centro del icono */
  top: calc(var(--icon) / 2);           /* centro del icono actual */
  bottom: calc(var(--icon) / -2);       /* centro del icono siguiente */
  width: 2px; transform: translateX(-50%);
  background: #E4E7EC; z-index: 0;
}
.wz-step-icon {
  position: relative; flex: 0 0 auto;
  width: var(--icon); height: var(--icon); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; z-index: 1;          /* por encima de la línea → la tapa donde va el círculo */
}
.wz-step-text { padding-top: 7px; font-size: 15px; line-height: 1.45; }

.wz-step.done .wz-step-icon    { background: #2A5FD9; color: #fff; }
.wz-step.done:not(:last-child)::before { background: #2A5FD9; }
.wz-step.done .wz-step-text    { color: #2A5FD9; font-weight: 400; }
.wz-step.current .wz-step-icon { background: #E5ECFB; color: #2A5FD9; }
.wz-step.current .wz-step-text { color: #2A5FD9; font-weight: 400; }
.wz-step.pending .wz-step-icon { background: #F2F4F7; color: #98A2B3; }
.wz-step.pending .wz-step-text { color: #98A2B3; }

/* Botón azul a ancho completo. */
.wz-landing-btn {
  display: block; width: 100%; box-sizing: border-box;
  background: #2A5FD9; color: #fff; text-align: center; text-decoration: none;
  padding: 16px 20px; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background .2s ease;
}
.wz-landing-btn:hover { background: #1e4bb8; color: #fff; }

/* Enlace de soporte. */
.wz-landing-support { display: block; text-align: center; margin-top: 16px; color: #2A5FD9; font-weight: 400; font-size: 14px; text-decoration: none; }
.wz-landing-support:hover { text-decoration: underline; color: #2A5FD9; }

/* Caja de reintento (error de pago). */
.wz-landing-retrybox {
  border: 1px solid #E4E7EC; border-radius: 14px;
  padding: 26px 22px; text-align: center; margin: 0 0 8px;
}
.wz-landing-retrybox h2 { font-size: 17px; font-weight: 700; color: #101828; margin: 0 0 10px; }
.wz-landing-retrybox p { font-size: 14px; color: #667085; line-height: 1.55; margin: 0 0 20px; }

/* Pago por TRANSFERENCIA (error de pago): icono de banco a la izquierda y datos a la derecha. */
.wz-landing-bank {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 4px 4px; text-align: left;
}
.wz-landing-bank-icon { flex: 0 0 auto; font-size: 30px; color: #344054; line-height: 1; padding-top: 2px; }
.wz-landing-bank-body { flex: 1 1 auto; min-width: 0; }
.wz-landing-bank-title { font-size: 14px; font-weight: 700; color: #101828; margin: 0 0 8px; line-height: 1.45; }
/* Los datos bancarios no se parten a mitad de IBAN en pantallas estrechas. */
.wz-landing-bank-data { font-size: 14px; color: #344054; line-height: 1.65; margin: 0 0 10px; overflow-wrap: anywhere; }
.wz-landing-bank-note { font-size: 13.5px; color: #667085; font-style: italic; line-height: 1.55; margin: 0; }
/* "justificante de pago" va subrayado, pero NO es enlace (no se expone ningún email). */
.wz-landing-bank-underline { text-decoration: underline; }

/* ==========================================================================
   MÓVIL: método de pago en 3 filas (iconos / título / descripción) + aire bajo los términos.
   ========================================================================== */
.wc_payment_method.payment_method_redsys_bizum label{
  flex-direction:row;
}

@media (max-width: 1240px) {
  /* La card de pago apila: fila 1 = iconos, fila 2 = título, fila 3 = descripción. */
  .wc_payment_method label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }



  .wc_payment_method label .pm-icons {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
  }
  .wc_payment_method label .pm-icons img { max-height: 28px; width: auto; margin: 0; }
  .wc_payment_method label .pm-title { order: 2; }


  /* Aire bajo los checkboxes de términos. */
  .terms-acceptance { margin-bottom: 40px; }
}

#review-case-standard{
  padding:0 20px;

  h4{
    margin-bottom:0;
    padding:0 20px 10px 20px;
  }


  @media (max-width:480px){
    padding:0 5px;

    h4{
      padding-bottom:5px;
      padding-left:25px;
    }

  }



}