/*
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
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap');

/*
 * ==========================================================================
 * 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: #343a40;      /* Texto principal */
  --color-text-light: #ffffff;     /* Texto sobre fondo oscuro */
  --color-border: #e0e0e0;
  --shadow-default: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);

  /* --- TIPOGRAFÍA --- */
  --font-family-base: 'Open Sans','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.5rem;
  --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;
}


/*
 * ==========================================================================
 * 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-lg);
}

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); }
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 {
  max-width: 1200px;
  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-end { justify-content: flex-end; }
.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 {
  margin: 0 auto;
  padding: var(--space-xs) 70px;
  border-bottom: 1px solid var(--color-border);

  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.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:auto;
  height: auto;
  transition: opacity 0.3s;
}


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

/* 7.1 Pantallas Medianas (Tablets - Máximo 992px) */
@media (max-width: 992px) {
  /* 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: 768px) {

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

  .main_bar {
    padding: var(--space-md);
  }

  .main_bar .logo {
    max-height: 40px;
  }
}
/* Fin plantilla */

/* Custom styles */


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

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

.translation-wizard-container {
  display: grid;
  grid-template-columns: minmax(auto, 740px) minmax(auto, 630px);
  gap: 30px;
  max-width: 1400px; /* 740 + 630 + 30 gap */
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 125px);
  justify-content: center;
    @media (max-width:768px){
      display:flex;
      width:100%;
      flex-direction:column-reverse;
      min-height:auto;
      gap:15px;
    }
}

/* 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 {
  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:768px){
    max-width:100%;
    padding:0;
    box-shadow:none;

  }
}


/* --- VISUALIZACIÓN DE PASOS --- */
.translation-wizard-step {
  display: none; /* Ocultar todos los pasos por defecto */
  padding: 45px 70px;
  width:100%;
  margin: 0 auto;
  box-shadow: 5px 6px 16px #00000017;
  border: 1px solid #E7E7E7;
  border-radius: 15px;

}
.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; border-bottom: 2px solid #007bff; padding-bottom: 10px;
}


.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; font-size: 0.95em; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; font-size: 1em; transition: border-color 0.3s ease;
}
.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 #0C59CF; border-radius: 8px; padding: 30px; text-align: center; cursor: pointer; background-color: #F3F3F3; margin-bottom: 25px; margin-top:25px; transition: background-color 0.3s ease, border-color 0.3s ease;
}
.dropzone-area p { margin:0; color: #0056b3; 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; }
.file-list-table th { font-weight: 600; }
.file-list-table td { border-bottom: 1px solid #f0f0f0; }
.file-list-table .file-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list-table .file-stats { white-space: nowrap; }
.file-list-table .file-actions { text-align: right; }
.file-list-table .remove-file-btn { background-color: #e74c3c; color: white; border: none; font-size:18px; padding: 13px 8px; border-radius: 4px; cursor: pointer; transition: background-color 0.2s; line-height:0}
.file-list-table .remove-file-btn:hover { background-color: #c0392b; }
.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: 15px; padding-bottom: 24px; 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: 6px 0; font-size: 1em; }
.price-line span:first-child { color: #555; }
.price-line.total {font-weight: bold; color: #333;}


/* RADIOS Y PASARELAS */
.radio-group-wrapper { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--space-xl); }
.radio-option { display: flex; align-items: center; background-color: #f8f9fa; padding: 12px 15px; border-radius: 5px; border: 1px solid #e9ecef; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.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; align-items: center; }
li.wc_payment_method label img { max-height: 24px; margin-left: 10px; vertical-align: middle; }
li.wc_payment_method input[type="radio"] { margin-right: 10px; vertical-align: middle; }
/* 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: 30px; padding-top: 20px; display: flex; justify-content: flex-end; align-items: center; }
.wizard-navigation button:first-child:not(:last-child) { margin-right: auto; }
.wizard-navigation button { padding: 12px 25px; min-width:200px; border: none; background-color: #007bff; color: white; border-radius: 5px; cursor: pointer; font-size: 1em; 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: #adb5bd; 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: 768px) {
  .translation-options { grid-template-columns: 1fr; }
  .wizard-navigation { flex-direction: column; gap: 10px; }
  .wizard-navigation button { width: 100%; }
  .wizard-navigation button:first-child:not(:last-child) { margin-right: 0; }
  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 */
  opacity: 0.6; /* Reduce la opacidad para indicar que está inactivo */
  cursor: not-allowed; /* Cambia el cursor */
}


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

@media (max-width: 768px) {
  .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: 20px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

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

.traductor-card input[type="radio"] {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.traductor-card-content {
  margin-left: 35px;
}

.traductor-title {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: #212529;
  margin-bottom: 8px;
}

.traductor-description {
  display: none;
  margin: 10px 0 0 0;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
}

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

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

/* 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-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #495057;
  font-size: 14px;
}

.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;
}

.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;
  align-items: center;
  gap: 10px;

  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;
}


.billing-type-title {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: #212529;
}

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

/* Fallback para navegadores antiguos */
.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;
}

/* 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-3-delivery .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-3-delivery .radio-option:hover {
  border-color: #007bff;
}

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

#step-3-delivery .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-3-delivery .radio-option:has(input[type="radio"]:checked) {
  border-color: #007bff;
  background-color: #e7f3ff;
}

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

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

/* Bloque principal con fondo gris */
.order-review-summary {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Lista de documentos (sin tabla) */

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

.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 dotted #ccc;
  margin: 15px 0;
}

/* Desglose de precios */
.summary-pricing .price-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 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;
}

.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;
}

.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: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  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: 768px) {
  .order-review-summary,
  .order-details-block {
    padding: 15px;
  }

  .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: -10px;
  right: 0;
  background: none;
  border: none;
  font-size: 46px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: right;
  border-radius: 50%;
  transition: all 0.2s ease;
}

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

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

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

.modal-body ul {
  margin: 15px 0;
  padding-left: 0;
  list-style: none;
}

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

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

.modal-footer .btn-secondary,
.modal-footer .btn-primary {
  padding: 10px 24px;
  font-size: 15px;
  border-radius: 6px;
  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: 600px) {
  .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: 15px 0;
}

.modal-body ul li {
  padding: 4px 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: #373737FF;
  background-color: #e1e1e1;
}

.wc_payment_method input[type="radio"]:checked {
  accent-color: #373737FF;
}

/* ========================================
   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: 35%;
  text-align: left;
  font-weight: 500;
  color: #555;
  word-wrap: break-word;
}

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

/* Botón de toggle para mobile (oculto en desktop) */
.order-summary-toggle {
  display: none;
  width: 100%;
  padding: 15px 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  color: #212529;
  cursor: pointer;
  margin-bottom: 0;
  position: relative;
  transition: all 0.3s ease;
}

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

.order-summary-toggle::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 300;
  color: #373737FF;
  transition: transform 0.3s ease;
}

.order-summary-toggle.active {
  border-color: #373737;
  background: #e1e1e1;
}



.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: 1200px) {
  dl.summary-details-list dt {
    width: 42%;
  }

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

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

  .translation-wizard-step {
    padding: 35px 40px;
    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: 768px) {
  .order-summary-toggle {
    display: block;
  }

  .order-summary-content {
    display: none;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #373737FF;
    border-top: none;
    animation: slideDown 0.3s ease;
  }

  .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"],
  .billing-type-selector {
    display: flex !important;
    flex-direction: column;
    gap: 15px;
  }

  /* Navegación de botones responsive */
  .wizard-navigation {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .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.85em;
  }

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

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

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


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

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

  h3 {
    font-size: 1.3em;
  }

  .traductor-card,
  .billing-type-card,
  .wc_payment_method {
    padding: 15px;
  }

  .traductor-card-content,
  .billing-type-content,
  .wc_payment_method label {
    margin-left: 30px;
  }

  .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: 768px) {
  /* 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: 20px 15px;
  }
}

/* Estilos individuales para movil*/

@media (max-width: 768px) {
  .top_bar{display:none}
  .translation-wizard-container{
    min-height:auto;
  }
  #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, PU05, etc) --- */

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

/* Título Rosa "Importante" */
#generic-modal-title {
  color: #E94073; /* Color rosa de la captura */
  font-size: 1.8em;
  margin-bottom: 10px;
  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: 15px;
}

/* 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: #3b82f6; /* Azul brillante */
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-modal-primary:hover {
  background-color: #2563eb;
}

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

@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: 768px) {
  /* 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;
  }

  /* Estilo del botón barra */
  .order-summary-toggle {
    width: 100%;
    border-radius: 15px 15px 0 0; /* Redondeado arriba */
    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::after {
    content: '▲'; /* Flecha arriba */
    font-size: 12px;
    margin-left: 10px;
    color: #fff;
  }

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

  /* 2. Contenido Desplegable (Sheet) */
  .order-summary-content {
    position: fixed;
    bottom: -100%; /* Oculto abajo */
    left: 0;
    width: 100%;
    background: white;
    height: 80vh; /* Ocupa casi toda la pantalla */
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 80px; /* Espacio para que no lo tape el botón */
    transition: bottom 0.3s ease-in-out;
    z-index: 1000;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
  }

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

  /* Ajuste: Añadir padding al body para que el botón no tape contenido */
  body {
    padding-bottom: 60px;
  }
}

.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: #28a745; /* Verde */
  width: 0%;
  transition: width 0.1s linear;
}

/* Animación de rayas para cuando está procesando el servidor (100%) */
.upload-progress-fill.processing {
  background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
  background-size: 1rem 1rem;
  animation: progress-stripes 1s linear infinite;
}

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

/* --- 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); }
}