/* =================================================================
ESTILOS PARA EL BANNER DE CONSENTIMIENTO DE COOKIES (DISEÑO B2B)
================================================================== */
/* --- ESTILOS PARA NOTIFICACIONES TOAST --- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background-color: #333;
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.215, 0.610, 0.355, 1);
  font-family: sans-serif;
  font-size: 14px;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}
.toast.error {
  background-color: #D32F2F; /* Rojo oscuro para errores */
}
.toast.success {
  background-color: #388E3C; /* Verde para éxito */
}
/* --- ESTILO PARA REDUCIR ALTURA DEL FOOTER --- */
.main-footer .footer-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* --- ESTILOS PARA EL OVERLAY DE CARGA --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  color: #fff;
  font-family: sans-serif;
}
.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid #fff;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- ESTILOS PARA EL BANNER DE COOKIES --- */
:root { 
  --mc-primary-blue: #00567d; 
  --mc-dark-bg: #343a40; 
  --mc-light-text: #f8f9fa; 
  --green: #71a850; /* Definimos la variable --green que faltaba */
}
#cookie-consent-banner { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); width: 90%; max-width: 650px; background-color: var(--mc-dark-bg); color: var(--mc-light-text); padding: 1.5rem; box-shadow: 0 8px 25px rgba(0,0,0,0.3); z-index: 1050; display: none; font-size: 24px; line-height: 1.6; border-radius: 8px; }
.cookie-consent-content { display: flex; flex-direction: column; text-align: center; align-items: stretch; gap: 1rem; }
#cookie-consent-banner p { margin: 0; font-size: 24px; } /* Aumentado el tamaño de la fuente para el texto del banner */
#cookie-consent-banner a { color: #fff; text-decoration: underline; font-weight: bold; }
.cookie-consent-buttons { display: flex; gap: 0.75rem; justify-content: flex-end; }
.cookie-consent-button { padding: 0.6rem 1.2rem; border-radius: 5px; cursor: pointer; font-weight: 600; font-size: 20px; border: 1px solid transparent; transition: background-color 0.2s, color 0.2s; } /* Aumentado el tamaño de la fuente para los botones */
/* CORRECCIÓN: Aseguramos que el botón de aceptar siempre tenga fondo verde y texto blanco */
.cookie-consent-accept { background-color: var(--green) !important; color: #fff !important; border-color: var(--green) !important; }
.cookie-consent-accept:hover { background-color: #5a8a40 !important; border-color: #5a8a40 !important; }
.cookie-consent-configure { background-color: transparent; color: var(--mc-light-text); border-color: transparent; }
.cookie-consent-configure:hover { background-color: rgba(255, 255, 255, 0.1); }
.cookie-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 1051; display: none; justify-content: center; align-items: center; }
.cookie-modal { background: #fff; color: #333; padding: 2rem; border-radius: 8px; max-width: 500px; width: 90%; font-size: 20px; } /* Aumentado el tamaño de la fuente para el modal */
.cookie-modal p { font-size: 20px; } /* Asegurar que los párrafos dentro del modal también sean más grandes */
.cookie-modal h3 { margin-top: 0; color: var(--mc-primary-blue); }
.cookie-modal-section { margin-bottom: 1.5rem; }
.cookie-toggle { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cookie-toggle label { font-weight: bold; }
.switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--mc-primary-blue); }
input:checked + .slider:before { transform: translateX(26px); }
input:disabled + .slider { background-color: #e9ecef; cursor: not-allowed; }
input:disabled + .slider:before { background-color: #adb5bd; }
@media (max-width: 768px) {
  #cookie-consent-banner { left: 0; right: 0; bottom: 0; border-radius: 0; width: 100%; transform: translateX(0); padding: 1rem; font-size: 14px; line-height: 1.5; }
  #cookie-consent-banner p { font-size: 14px; }
  .cookie-consent-content { text-align: left; gap: 0.75rem; }        
  .cookie-consent-buttons { flex-direction: column-reverse; gap: 0.5rem; }
  .cookie-consent-button { font-size: 14px; padding: 0.5rem 1rem; text-align: center; }
  .cookie-modal { font-size: 16px; }
  .cookie-modal p { font-size: 16px; }
  /* --- AJUSTES RESPONSIVE ADICIONALES --- */
  .main-footer .footer-container { flex-direction: column; gap: 1rem; }
  .footer-legal-content { flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; }
  .footer-separator { display: none; }        
  /* CORRECCIÓN: Aplicar tamaño de fuente a TODOS los inputs y selects del formulario en móvil para consistencia. */
  /* 16px es el estándar para evitar zoom automático en iOS. */
  .cta-form-section input[type="text"], .cta-form-section input[type="email"], .cta-form-section input[type="tel"], .cta-form-section select { font-size: 16px !important; padding: 12px 15px; }
  .form-group--inline label { display: none; } /* Oculta labels para dar prioridad al placeholder */
  .main-footer { padding-top: 1.5rem; padding-bottom: 1.5rem; } /* CORRECCIÓN DEFINITIVA: Reduce el espacio vertical del footer en móvil */

  /* --- REDISEÑO RESPONSIVE DEL FORMULARIO --- */
  .cta-grid { grid-template-columns: 1fr; gap: 1rem; } /* Apila imagen y formulario */
  .cta-image-column { display: none; } /* Oculta la imagen de la agente en móvil para dar prioridad al formulario */
  .form-group--inline { flex-direction: column; gap: 0; } /* Apila los campos que estaban en línea */
  .form-group input, .form-group select { width: 100%; box-sizing: border-box; } /* Asegura que todos los campos ocupen el 100% */
  #contact-form { display: flex; flex-direction: column; gap: 1rem; } /* Añade espacio vertical entre los campos */
  .form-title--desktop { display: none; } /* Oculta el título de escritorio */
}

/* --- AJUSTES PARA MODO ESCRITORIO --- */
@media (min-width: 769px) {
  /* Asegura que los campos del formulario ocupen el 100% del ancho y tengan un tamaño de fuente consistente. */
  .form-group input, .form-group select { width: 100%; box-sizing: border-box; font-size: 16px; }
}

/* --- ESTILOS PARA OCULTAR EL HEADER --- */
.main-header { transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out; }
.main-header.hide-header { transform: translateY(-100%); }

input[type="checkbox"]:checked {
  accent-color: var(--green);
}

/* --- ESTILOS PARA UNIFICAR COLOR DE TEXTO EN SELECTS --- */
/* Aplica un color de placeholder cuando no se ha seleccionado una opción válida */
.form-group select.is-placeholder {
  color: #757575; /* Color de placeholder estándar */
}