/* ============================================================
   🌐 DORA LA CONSULTORA - ESTILOS PRINCIPALES
   Autor: Hades Gomero
   Versión: 2.2 (2025)
   Descripción: Estilos principales del sitio web con multiselect mejorado.
   ============================================================ */

/* ===============================
   🔄 RESETEO Y VARIABLES GLOBALES
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
}

:root {
  --primary-color-bg: #f5f7fa;
  --primary-color-text: #1b2a49;
  --primary-color-accent: #3a6ea5;
  --primary-color-dark: #111526;
  --primary-color-button: #2563eb;
}

/* ===============================
   🧍 BODY
   =============================== */
.dora-body {
  background: linear-gradient(to bottom, var(--primary-color-bg), #ffffff);
  color: var(--primary-color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===============================
   🧭 HEADER
   =============================== */
.dora-header {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dora-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dora-logo {
  height: 40px;
}

.dora-header-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color-text);
  letter-spacing: -0.5px;
}

/* ===============================
   🏔️ HERO SECTION
   =============================== */
.dora-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(58, 110, 165, 0.1), white);
}

.dora-hero-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 60px 20px;
  align-items: center;
  min-height: 78vh;
}

@media (min-width: 768px) {
  .dora-hero-container {
    grid-template-columns: 1fr 1fr;
    padding: 100px 40px;
  }
}

/* Texto principal */
.dora-hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--primary-color-text);
}

.dora-highlight {
  color: var(--primary-color-accent);
}

.dora-hero-subtitle {
  margin-top: 16px;
  max-width: 550px;
  font-size: 1.125rem;
  margin-bottom: 20px;
  color: rgba(27, 42, 73, 0.8);
}

/* Lista de beneficios */
.dora-hero-text ul {
  list-style: none !important;
  margin-top: 25px;
  margin-bottom: 25px;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.dora-hero-text li {
  list-style: none !important;
  position: relative;
  padding-left: 28px;
  font-size: 1rem;
  color: rgba(27, 42, 73, 0.85);
  white-space: nowrap;
  margin-bottom: 30px;
}

.dora-hero-text li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary-color-accent);
  font-weight: bold;
  font-size: 1.1rem;
}

.dora-hero-text li:last-child {
  flex-basis: 100%;
  margin-top: 8px;
}

/* Botón principal */
.dora-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background-color: var(--primary-color-accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(58, 110, 165, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.dora-btn-download:hover {
  background-color: var(--primary-color-text);
  transform: translateY(-2px);
}

.dora-icon-arrow {
  stroke: #ffffff;
}

/* ===============================
   🖼️ IMAGEN / FORMULARIO
   =============================== */
.dora-hero-image-container {
  position: relative;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.dora-hero-image {
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
  height: 720px !important;
  width: 100%;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

@media (min-width: 768px) {
  .dora-hero-image {
    height: 620px;
  }
}

/* ===============================
   📋 FORMULARIO (MODERNO)
   =============================== */
.dora-form {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 60px;
  background-color: var(--primary-color-dark);
  border-radius: 24px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  height: 100%;
  margin: 0 auto;
  transition: all 0.4s ease;
}

.dora-form-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Campos */
.dora-input,
.dora-select {
  width: 100%;
  padding: 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: all 0.3s ease;
}

/* ===============================
   ✅ MULTISELECT PERSONALIZADO (CORREGIDO)
   =============================== */
.dora-multiselect {
  position: relative;
}

.dora-multiselect-btn {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  padding: 18px 16px;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dora-multiselect-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dora-multiselect-btn::after {
  content: "▼";
  float: right;
  opacity: 0.7;
  transition: transform 0.3s;
}

.dora-multiselect.open .dora-multiselect-btn::after {
  transform: rotate(180deg);
}

.dora-multiselect-options {
  display: none;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  width: 100%;
  top: calc(100% + 5px);
  left: 0;
  background-color: #1b2236;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  padding: 14px;
  z-index: 20;
  max-height: 200px;
  overflow-y: auto;
}

.dora-multiselect.open .dora-multiselect-options {
  display: flex;
}

.dora-multiselect-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 0.9rem;
  background-color: transparent;
  border-radius: 6px;
  padding: 4px 6px;
  transition: background-color 0.2s;
}

.dora-multiselect-options label:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.dora-multiselect-options input[type="checkbox"] {
  accent-color: var(--primary-color-accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ===============================
   🔘 CHECKBOX Y TÉRMINOS
   =============================== */
.dora-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.dora-checkbox {
  margin-top: 3px;
  accent-color: var(--primary-color-button);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

a.dora-terms-link {
  color: #fff;
  text-decoration: underline;
}

a.dora-terms-link:hover {
  color: #93c5fd;
  text-decoration: none;
}

/* ===============================
🎨 ESTILOS PERSONALIZADOS PARA CHOICES.JS (ACTUALIZADO)
=============================== */
.choices {
  margin-bottom: 0 !important;
}
.choices__inner {
  background-color: var(--primary-color-dark) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 16px !important;
  border-radius: 10px;
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: all 0.3s ease;
}

.choices__input {
  background-color: transparent !important;
  color: #ffffff !important;
}

/* Fondo del dropdown */
.choices__list--dropdown .choices__list,
.choices__list[aria-expanded] .choices__list {
  background-color: var(--primary-color-dark);
}

/* Ítems del dropdown */
.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
  background-color: var(--primary-color-dark);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Efecto hover para las opciones */
.choices__list--dropdown .choices__item--selectable:hover,
.choices__list[aria-expanded] .choices__item--selectable:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff;
  cursor: pointer;
}

/* ===============================
🌟 PLACEHOLDER PERSONALIZADO
=============================== */
.choices__placeholder {
  color: rgba(255, 255, 255, 0.55) !important; /* Gris tenue */
  font-style: italic; /* cursiva para diferenciarlo del texto real */
  opacity: 1 !important;
}

/* ===============================
💠 OPCIONES SELECCIONADAS (CHIPS)
=============================== */
.choices__list--multiple .choices__item {
  background-color: rgba(58, 110, 165, 0.6);
  border: none;
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Botón de eliminar (X) en los chips */
.choices__button {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  margin-left: 6px;
  transition: all 0.3s ease;
}
.choices__button:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ===============================
🔽 FLECHA DEL SELECT
=============================== */
.choices[data-type*="select-multiple"]::after,
.choices[data-type*="select-one"]::after {
  border-color: rgba(255, 255, 255, 0.6);
}

/* ===============================
📋 TEXTO Y BORDES GENERALES
=============================== */
.choices__item--selectable.choices__item--choice {
  color: #fff;
}

.choices__item.choices__item--selected {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 6px;
}

/* ===============================
   🚀 BOTÓN ENVIAR
   =============================== */
.dora-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  padding: 18px 0;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dora-btn-submit:hover {
  background: linear-gradient(90deg, #1e40af, #1d4ed8);
  transform: translateY(-2px);
}

/* ===============================
   ⚙️ ANIMACIÓN IMAGEN → FORMULARIO
   =============================== */
#doraBannerImage {
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: translateX(0);
}

#doraBannerImage.move-left {
  transform: translateX(-100%);
  opacity: 0;
}

#doraDownloadForm {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

#doraDownloadForm.slide-in {
  transform: translateX(0);
  opacity: 1;
  z-index: 3;
}

/* ===============================
   🦶 FOOTER
   =============================== */
.dora-footer {
  background-color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid #e5e7eb;
  text-align: left;
  padding: 30px 20px;
  font-size: 0.9rem;
  color: rgba(27, 42, 73, 0.6);
  margin-top: auto;
}

.dora-footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===============================
   📱 RESPONSIVE
   =============================== */
@media (max-width: 768px) {
  .dora-form {
    width: 100%;
    padding: 25px 20px;
    border-radius: 16px;
  }

  .dora-input,
  .dora-select,
  .dora-multiselect-btn {
    padding: 12px;
    font-size: 0.9rem;
  }

  .dora-btn-submit {
    font-size: 0.95rem;
    padding: 12px 0;
  }

  .dora-btn-download {
    width: 100%;
    justify-content: center;
  }

  .dora-hero-image {
    height: 720px;
  }

  .dora-hero-text ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dora-hero-text li {
    white-space: normal;
  }
}
