/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    Antigravity AI
 * @copyright Since 2026 Antigravity AI
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

/* variables del sistema de diseño */
:root {
  --wwu-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wwu-primary: #EB5C3A;
  --wwu-primary-hover: #d84b29;
  --wwu-primary-gradient: linear-gradient(135deg, #EB5C3A 0%, #d84b29 100%);
  --wwu-secondary-gradient: linear-gradient(135deg, #f07d62 0%, #EB5C3A 100%);
  --wwu-info-gradient: linear-gradient(135deg, #0B3043 0%, #061c28 100%);
  --wwu-primary-tint: rgba(235, 92, 58, 0.06);
  --wwu-primary-tint-hover: rgba(235, 92, 58, 0.12);
  --wwu-text: #1e293b;
  --wwu-text-muted: #64748b;
  --wwu-text-light: #f8fafc;
  --wwu-bg-card: #ffffff;
  --wwu-border: #e2e8f0;
  --wwu-border-hover: #cbd5e1;
  --wwu-success: #10b981;
  --wwu-success-bg: rgba(16, 185, 129, 0.08);
  --wwu-error: #f43f5e;
  --wwu-error-bg: rgba(244, 63, 94, 0.08);
  --wwu-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  --wwu-shadow-input: 0 2px 4px rgba(0, 0, 0, 0.02);
  --wwu-shadow-glow: 0 0 0 4px rgba(235, 92, 58, 0.18);
  --wwu-radius-lg: 0;
  --wwu-radius-md: 0;
  --wwu-radius-sm: 0;
  --wwu-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenedor principal de la página */
.wwu-main-container {
  font-family: var(--wwu-font);
  color: var(--wwu-text);
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

/* Tarjeta contenedora de doble columna */
.wwu-card {
  background: var(--wwu-bg-card);
  border-radius: var(--wwu-radius-lg);
  box-shadow: var(--wwu-shadow-card);
  display: flex;
  overflow: hidden;
  border: 1px solid var(--wwu-border);
}

/* Panel Izquierdo de Información */
.wwu-info-panel {
  width: 42%;
  background: var(--wwu-info-gradient);
  color: var(--wwu-text-light);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Efectos de fondo decorativos en el panel */
.wwu-info-panel::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 92, 58, 0.25) 0%, rgba(0,0,0,0) 70%);
  filter: blur(20px);
  pointer-events: none;
}

.wwu-info-panel::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 92, 58, 0.15) 0%, rgba(0,0,0,0) 70%);
  filter: blur(15px);
  pointer-events: none;
}

.wwu-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wwu-info-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.wwu-info-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Lista de valores de la empresa */
.wwu-values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wwu-values-list li {
  display: flex;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.wwu-value-icon {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--wwu-radius-sm);
  margin-right: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wwu-values-list li strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.wwu-values-list li p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0;
}

.wwu-info-footer {
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* Panel Derecho de Formulario */
.wwu-form-panel {
  width: 58%;
  padding: 3.5rem 3rem;
  background: var(--wwu-bg-card);
  position: relative;
}

.wwu-form-header {
  margin-bottom: 2rem;
}

.wwu-form-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--wwu-text);
}

.wwu-form-header p {
  color: var(--wwu-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Grupos y filas de formulario */
.wwu-form-row {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.wwu-form-row .wwu-form-group {
  flex: 1;
  margin-bottom: 0;
}

.wwu-form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.wwu-form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
  text-align: left !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
}

.wwu-form-group label .required {
  color: var(--wwu-error);
  margin-left: 2px;
}

.wwu-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wwu-char-count {
  font-size: 0.8rem;
  color: var(--wwu-text-muted);
}

/* Contenedores y campos de entrada */
.wwu-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.wwu-input-icon {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  color: var(--wwu-text-muted);
  pointer-events: none;
  transition: var(--wwu-transition);
}

.wwu-input-wrapper input,
.wwu-input-wrapper select,
.wwu-form-group textarea {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 0.95rem;
  font-family: var(--wwu-font);
  color: var(--wwu-text);
  background-color: #f8fafc;
  border: 1.5px solid var(--wwu-border);
  border-radius: var(--wwu-radius-md);
  box-shadow: var(--wwu-shadow-input);
  outline: none;
  transition: var(--wwu-transition);
}

.wwu-form-group textarea {
  padding: 12px 16px;
  resize: vertical;
}

/* Foco en inputs */
.wwu-input-wrapper input:focus,
.wwu-input-wrapper select:focus,
.wwu-form-group textarea:focus {
  background-color: #ffffff;
  border-color: var(--wwu-primary);
  box-shadow: var(--wwu-shadow-glow);
}

.wwu-input-wrapper input:focus + .wwu-input-icon,
.wwu-input-wrapper select:focus + .wwu-input-icon {
  color: var(--wwu-primary);
}

/* Selector dropdown personalizado */
.wwu-input-wrapper select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Estados de Error en Inputs */
.wwu-form-group.has-error input,
.wwu-form-group.has-error select,
.wwu-form-group.has-error textarea {
  border-color: var(--wwu-error);
  background-color: rgba(244, 63, 94, 0.01);
}

.wwu-form-group.has-error input:focus,
.wwu-form-group.has-error select:focus,
.wwu-form-group.has-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15);
}

.wwu-form-group.has-error .wwu-error-message {
  display: block;
  font-size: 0.82rem;
  color: var(--wwu-error);
  margin-top: 0.4rem;
  font-weight: 500;
  animation: wwuShake 0.4s ease-in-out;
}

/* Estados de Éxito en Inputs */
.wwu-form-group.has-success input,
.wwu-form-group.has-success select,
.wwu-form-group.has-success textarea {
  border-color: var(--wwu-success);
}

/* Área Interactiva Drag & Drop (CV) */
.wwu-dropzone {
  border: 2px dashed var(--wwu-border);
  border-radius: var(--wwu-radius-md);
  padding: 1.75rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: var(--wwu-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 140px;
}

.wwu-dropzone:hover {
  border-color: var(--wwu-border-hover);
  background: #f1f5f9;
}

.wwu-dropzone.dragover {
  border-color: var(--wwu-primary);
  background: var(--wwu-primary-tint);
  transform: scale(1.01);
  box-shadow: var(--wwu-shadow-glow);
}

.wwu-dropzone-icon {
  color: var(--wwu-text-muted);
  margin-bottom: 0.75rem;
  transition: var(--wwu-transition);
}

.wwu-dropzone.dragover .wwu-dropzone-icon {
  color: var(--wwu-primary);
  transform: translateY(-4px);
}

.wwu-dropzone-primary {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--wwu-text);
}

.wwu-dropzone-secondary {
  font-size: 0.8rem;
  color: var(--wwu-text-muted);
  margin: 0;
}

/* Previsualización del archivo cargado */
.wwu-file-preview {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--wwu-border);
  border-radius: var(--wwu-radius-md);
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  animation: wwuFadeIn 0.3s ease-out;
}

.wwu-file-info {
  display: flex;
  align-items: center;
  text-align: left;
}

.wwu-pdf-icon {
  color: var(--wwu-error);
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
}

.wwu-file-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wwu-file-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wwu-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wwu-file-size {
  font-size: 0.78rem;
  color: var(--wwu-text-muted);
  margin-top: 1px;
}

.wwu-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--wwu-border);
  border-radius: 10px;
  margin-top: 6px;
  overflow: hidden;
}

.wwu-progress-fill {
  height: 100%;
  width: 100%;
  background: var(--wwu-success);
  border-radius: 10px;
  animation: wwuProgress 1s ease-in-out;
}

.wwu-remove-file {
  background: none;
  border: none;
  color: var(--wwu-text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--wwu-transition);
}

.wwu-remove-file:hover {
  background: var(--wwu-error-bg);
  color: var(--wwu-error);
}

/* Botón de envío */
.wwu-submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--wwu-primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--wwu-radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(236, 66, 73, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: var(--wwu-transition);
  margin-top: 1.5rem;
}

.wwu-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.wwu-submit-btn:hover::before {
  left: 100%;
}

.wwu-submit-btn:hover {
  background: #0B3043 !important;
  box-shadow: 0 6px 20px rgba(11, 48, 67, 0.35);
  transform: translateY(-2px);
}

.wwu-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 6px rgba(236, 66, 73, 0.2);
}

.wwu-submit-btn:disabled {
  background: var(--wwu-text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Spinner de carga */
.wwu-btn-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: wwuSpin 0.8s linear infinite;
}

/* Alertas de Notificación */
.wwu-alert {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--wwu-radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  animation: wwuSlideDown 0.3s ease-out;
}

.wwu-alert-success {
  background-color: var(--wwu-success-bg);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065f46;
}

.wwu-alert-error {
  background-color: var(--wwu-error-bg);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: #9f1239;
}

.wwu-alert-icon {
  margin-right: 0.75rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

/* Contenedor de Pantalla de Éxito */
.wwu-success-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wwuFadeIn 0.5s ease-out;
  padding: 2rem 0;
}

.wwu-success-card {
  text-align: center;
  max-width: 400px;
}

.wwu-success-card h4 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--wwu-text);
  margin: 1.5rem 0 0.5rem 0;
}

.wwu-success-card p {
  color: var(--wwu-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.wwu-reset-btn {
  background: var(--wwu-primary) !important;
  border: 1.5px solid var(--wwu-primary) !important;
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: var(--wwu-radius-md);
  font-family: var(--wwu-font);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--wwu-transition);
}

.wwu-reset-btn:hover {
  background: #0B3043 !important;
  border-color: #0B3043 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(11, 48, 67, 0.15);
}

/* Animación del Checkmark en Éxito */
.wwu-checkmark-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.wwu-checkmark-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--wwu-success);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--wwu-success);
  animation: wwuFillCheckmark .4s ease-in-out .4s forwards, wwuScaleCheckmark .3s ease-in-out .9s alternate both;
}

.wwu-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: var(--wwu-success);
  fill: none;
  animation: wwuStrokeCheckmark .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.wwu-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: wwuStrokeCheckmark .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

/* Animaciones CSS (Keyframes) */
@keyframes wwuSpin {
  100% { transform: rotate(360deg); }
}

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

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

@keyframes wwuProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes wwuShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

@keyframes wwuStrokeCheckmark {
  100% { stroke-dashoffset: 0; }
}

@keyframes wwuScaleCheckmark {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes wwuFillCheckmark {
  100% { box-shadow: inset 0px 0px 0px 40px var(--wwu-success-bg); }
}

/* Responsividad (Mobile y Tablet Adaptabilidad) */
@media (max-width: 900px) {
  .wwu-card {
    flex-direction: column;
  }
  
  .wwu-info-panel {
    width: 100%;
    padding: 2.5rem 2rem;
  }
  
  .wwu-form-panel {
    width: 100%;
    padding: 2.5rem 2rem;
  }
  
  .wwu-info-footer {
    display: none;
  }
}

@media (max-width: 600px) {
  .wwu-main-container {
    margin: 1rem auto;
  }
  
  .wwu-form-row {
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .wwu-info-panel h2 {
    font-size: 1.75rem;
  }
  
  .wwu-form-panel h3 {
    font-size: 1.5rem;
  }
  
  .wwu-dropzone {
    padding: 1.25rem;
  }
}

/* --- Bloque de Página de Inicio (Index CTA) --- */
.wwu-home-block {
  margin: 2.5rem 0;
  padding: 0 1rem;
}

.wwu-home-card {
  background: #f8fafc;
  border-left: 4px solid var(--wwu-primary);
  border-radius: var(--wwu-radius-lg);
  padding: 2.75rem 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: none;
}

.wwu-home-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 48, 67, 0.04) 0%, rgba(11, 48, 67, 0) 70%);
  pointer-events: none;
}

.wwu-home-content {
  max-width: 65%;
  position: relative;
  z-index: 2;
  text-align: left;
}

.wwu-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(235, 92, 58, 0.08);
  color: var(--wwu-primary);
  padding: 0.35rem 0.9rem;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
}

.wwu-home-card h3 {
  font-family: var(--wwu-font);
  font-size: 1.85rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.6rem;
}

.wwu-home-card p {
  color: #878787;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.wwu-home-action {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.wwu-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: #EB5C3A !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  font-family: var(--wwu-font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  transition: var(--wwu-transition);
}

.wwu-home-btn:hover {
  background: #0B3043 !important;
  box-shadow: none;
  transform: translateY(-2px);
  color: #ffffff !important;
  text-decoration: none;
}

.wwu-home-btn i,
.wwu-home-btn:hover i {
  color: #ffffff !important;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .wwu-home-card {
    flex-direction: column;
    text-align: center;
    gap: 1.75rem;
    padding: 2.25rem 1.5rem;
  }
  .wwu-home-content {
    max-width: 100%;
  }
  .wwu-home-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Restablecer el contenedor de la tarjeta del tema para integrarlo perfectamente */
#module-workwithus-form div#content.page-content.card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
