/*
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: #111;      /* 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.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-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);
@media (max-width:1240px){
  font-size:16px;
  margin-bottom:15px;
  margin-left:5px;
}
}
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
   ======================================== */

.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 - 600px);
  justify-content: center;
  margin-bottom:200px;
    @media (max-width:1240px){
      margin-bottom:100px;
      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 {
  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;
  max-width:800px;
}
.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: 500; color: #555; font-size: 15px;
  @media(max-width:1240px){
    font-size:12px;
  }
}

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

.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 #0C59CF; border-radius: 8px; padding: 30px; text-align: center; cursor: pointer; background-color: #F3F3F3; 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; 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;}

#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: 10px; margin-bottom: var(--space-md); }
.radio-option {
  font-size:14px;
  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;gap: 20px; flex-direction: row-reverse; 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: 30px; padding-top: 20px; display: flex; justify-content: flex-end; align-items: center;
  @media(max-width:1240px){
    margin-top:0;
    flex-direction:column-reverse;
  }
}

.wizard-navigation button.action-send-quote{
  background-color: #6c757d; margin-right: 10px;
  @media(max-width:1240px){
    margin-right:0;
  }
}

.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: 14px; 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: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; }
  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: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: 20px;
  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: #007bff;
}

.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: 35px;
  @media (max-width: 1240px) {
    margin-left:0;
  }
}

.traductor-title {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: #212529;
  margin-bottom: 8px;
  @media (max-width: 1240px) {
    font-size:13px;
  }
}

.traductor-description {
  display:block;
  margin: 10px 0 0 0;
  font-size: 14px;
  color: #6c757d;
  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: #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-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;
}

#billing_particular_country{
  appearance: none;
  background: transparent;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNmM3NTdkIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgY2xhc3M9ImZlYXRoZXIgZmVhdGhlci1jaGV2cm9uLWRvd24iPjxwb2x5bGluZSBwb2ludHM9IjYgOSAxMiAxNSAxOCA5Ij48L3BvbHlsaW5lPjwvc3ZnPg==");
  background-repeat: no-repeat;
  background-position-x: calc(100% - 10px);
  background-position-y: 6px;
  background-size: 23px;
}


.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;
  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:12px;
  }
}

.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 */
.order-review-summary {
  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;
  @media (max-width: 1240px) {
    font-size:12px;
    &:first-child{
      margin-bottom:10px;
    }
  }
}

.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: 5px;
  top: 2px;
  width: 4px;
  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: 36px;
  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;
}

#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 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: 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: 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: 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: 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%;
  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%;
  }

  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 !important;
    flex-direction: row;
    gap: 15px;
  }

  /* Navegación de botones responsive */
  .wizard-navigation {
    flex-direction: column-reverse;
    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.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: 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;
  }
}

/* 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: 30px;
  font-weight: 600;
}

/* Título Rosa "Importante" */
#generic-modal-title {
  color: #E94073; /* Color rosa de la captura */
  font-size: 1.4em;
  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 {
  padding: 0 20px 0 20px;
  font-size: 12px;
  color: #888;
  text-align: center;
  line-height: 1.4;
  margin:0 auto;
}

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

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

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

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


/* 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:15px;
  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;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

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

/* STEPS DE WIZARD */

.wizard-progress-container {
  padding: 30px 20px 0 20px;
  background: #fff;
  margin-bottom: 20px;
  @media (max-width: 1240px) {
    padding:0;
    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: 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:10px;
    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 {
  margin-top: 10px;
  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: 1.2rem;
  font-weight: 300;
}

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

.translation-wizard-container.step-4-mode .wizard-sidebar,
.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: 600;
  color: #555;
  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: #007bff;
  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: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .review-value {
    padding: 10px 15px;
    font-size:12px;
    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: #fff;
  margin-bottom: 30px;
  border: none; /* Quitamos bordes */
  border-radius: 0;
}

/* Filas limpias */
.review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Alineación superior por si hay varias líneas */
  padding: 8px 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: 700; /* Negrita */
  color: #212529;
  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: 10px 0;
  @media (max-width: 1240px) {
    padding:3px 0;
  }

  }




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

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

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

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

.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: 10000; /* 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;
}

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

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

#tr_client_country{
  appearance: none;
  background: transparent;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNmM3NTdkIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgY2xhc3M9ImZlYXRoZXIgZmVhdGhlci1jaGV2cm9uLWRvd24iPjxwb2x5bGluZSBwb2ludHM9IjYgOSAxMiAxNSAxOCA5Ij48L3BvbHlsaW5lPjwvc3ZnPg==");
  background-repeat: no-repeat;
  background-position-x: calc(100% - 10px);
  background-position-y: 6px;
  background-size: 23px;
}










/* --- 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;
  border-bottom: 1px solid var(--color-border);
}

.notice_bar{
  background-color: #F7F6F6;
  text-align:center;
  padding:10px 20px;
  @media (max-width:767px){
    font-size:13px;
    padding:10px 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;
}