/* ============================================
   ESTILOS DEL CARRUSEL - RESPONSIVE
   ============================================ */
.carrusel {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 10px;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 4px;
  z-index: 10;
  transition: background 0.3s ease;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Indicadores de carga para imágenes */
.slide {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Responsive para el carrusel */
@media (max-width: 768px) {
  .carrusel {
    height: 300px;
    margin: 20px auto;
  }
  
  .prev, .next {
    padding: 8px 12px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .carrusel {
    height: 250px;
    margin: 15px 10px;
  }
  
  .prev, .next {
    padding: 6px 10px;
    font-size: 16px;
  }
}

/* ============================================
   ESTILOS GENERALES
   ============================================ */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f1f1f1;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #333;
  font-size: 2rem;
  margin-bottom: 20px;
}

section {
  background-color: #fff;
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

h2 {
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
  font-weight: bold;
  font-size: 1.4em;
}

/* ============================================
   ESTILOS SECCIÓN DATOS DE CONTACTO
   ============================================ */
section.datos-contacto {
  background: linear-gradient(145deg, #f8f9ff 0%, #f0f4ff 100%);
  border: 2px solid #c3d9ff;
  border-left: 5px solid #007bff;
  border-right: 5px solid #007bff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
  margin-bottom: 20px;
  padding: 20px;
  color: #2c3e50;
  display: block;
}

section.datos-contacto h2 {
  color: #2c3e50;
  margin: 0 0 20px 0;
  font-weight: bold;
  font-size: 1.6em;
  line-height: 1.2;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
  display: block;
}

section.datos-contacto div.fila {
  display: block;
  margin-bottom: 15px;
  width: 100%;
}

section.datos-contacto div.fila:last-of-type {
  margin-bottom: 0;
}

section.datos-contacto div.fila label {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: bold;
  color: #2c3e50;
  width: 100%;
}

section.datos-contacto div.fila input {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px;
  font-size: 1.05rem;
  line-height: 1.25;
  border-radius: 8px;
  border: 2px solid #bdc3c7;
  background: #fff;
  color: #1f2a3a;
  transition: border-color 0.3s ease;
  height: 46px;
  box-sizing: border-box;
}

.datos-contacto input:focus,
.datos-contacto select:focus,
.datos-contacto textarea:focus,
section.datos-contacto input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* ============================================
   ESTILOS DEL FORMULARIO
   ============================================ */
.fila {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
}

label {
  flex: 1 0 150px;
  font-weight: bold;
  color: #2c3e50;
  font-size: 1.1em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  flex: 2;
  padding: 14px;
  border-radius: 6px;
  border: 2px solid #bdc3c7;
  background-color: #ffffff;
  font-size: 1.05rem;
  color: #2c3e50;
  transition: border-color 0.3s ease;
  min-height: 48px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
  padding: 12px;
  border-radius: 6px;
  border: 2px solid #bdc3c7;
  background-color: #ffffff;
  font-size: 1.05rem;
  color: #2c3e50;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  font-family: 'Segoe UI', sans-serif;
}

textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.checkbox-group label {
  padding: 12px 18px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 2px solid #bdc3c7;
  font-size: 1em;
  cursor: pointer;
  color: #2c3e50;
  font-weight: normal;
  transition: all 0.3s ease;
  flex: 0 1 auto;
  box-sizing: border-box;
}

.checkbox-group label:hover {
  border-color: #3498db;
  background-color: #ecf0f1;
}

.checkbox-group input:checked + label,
.checkbox-group label:has(input:checked) {
  background-color: #3498db;
  color: white;
  border-color: #2980b9;
}

button {
  background-color: #007bff;
  color: white;
  padding: 12px 18px;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-height: 48px;
}

button:hover {
  background-color: #0056b3;
}

/* ============================================
   ESTILOS DE LISTAS Y ELEMENTOS ESPECÍFICOS
   ============================================ */
#ciudades-seleccionadas {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

#ciudades-seleccionadas li {
  background-color: #f9f9f9;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ddd;
  flex-wrap: wrap;
  gap: 10px;
}

.ciudad-item {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.dias-input {
  width: 80px;
  padding: 8px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 1rem;
}

.eliminar-btn {
  background-color: #dc3545;
  padding: 8px 14px;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  min-height: 40px;
}

.eliminar-btn:hover {
  background-color: #a72833;
}

/* ============================================
   ESTILOS ESPECÍFICOS DE SECCIONES
   ============================================ */
.seleccion-ciudades .fila {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
}

.seleccion-ciudades label {
  font-size: 0.95rem;
  margin: 0;
  white-space: nowrap;
}

.seleccion-ciudades input[type="text"] {
  padding: 8px 12px;
  height: 38px;
  font-size: 0.95rem;
  min-width: 0;
}

.seleccion-ciudades button {
  grid-column: 5;
  white-space: nowrap;
  padding: 8px 16px;
  height: 38px;
  font-size: 0.95rem;
}

.datos-viaje .fila {
  display: grid;
  grid-template-columns: repeat(2, auto 1fr);
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.datos-viaje .fila > label:nth-child(1) { grid-column: 1; }
.datos-viaje .fila > input:nth-child(2),
.datos-viaje .fila > select:nth-child(2) { grid-column: 2; }
.datos-viaje .fila > label:nth-child(3) { grid-column: 3; }
.datos-viaje .fila > input:nth-child(4),
.datos-viaje .fila > select:nth-child(4) { grid-column: 4; }

.datos-viaje label {
  font-size: 0.95rem;
  margin: 0;
  white-space: nowrap;
}

.datos-viaje input,
.datos-viaje select {
  padding: 8px 12px;
  height: 38px;
  font-size: 0.95rem;
  min-width: 0;
}

.datos-viaje .fila.presupuesto-estilo {
  grid-template-columns: repeat(2, auto 1fr);
}

/* Estilo y Ritmo en la misma línea */
.datos-viaje .fila.fila-estilo-ritmo {
  grid-template-columns: auto 200px auto 150px;
  gap: 8px 16px;
}

.datos-viaje .fila.fila-estilo-ritmo select {
  max-width: none;
}

/* ============================================
   ESTILOS DEL BOTÓN CTA
   ============================================ */
.cta-button {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 25px 40px;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 40px auto;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::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: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
  background: linear-gradient(45deg, #218838, #28a745);
}

.cta-button:active {
  transform: translateY(-1px);
}

.cta-icon {
  font-size: 1.5em;
}

.cta-text {
  text-align: left;
  line-height: 1.3;
}

.cta-text strong {
  display: block;
  margin-bottom: 5px;
}

.cta-text small {
  opacity: 0.9;
  font-size: 0.8em;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE
   ============================================ */

/* Tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .carrusel {
    height: 350px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 18px;
  }
  
  .datos-viaje .fila {
    grid-template-columns: repeat(2, auto 1fr);
    gap: 8px 12px;
    margin-bottom: 14px;
  }
  
  .datos-viaje input,
  .datos-viaje select {
    height: 38px;
    padding: 8px 12px;
  }
  
  .datos-viaje label {
    font-size: 0.95rem;
    margin: 0;
  }
}

/* Desktop: Email y WhatsApp en línea con su label */
@media (min-width: 769px) {
  section.datos-contacto div.fila:nth-of-type(2),
  section.datos-contacto div.fila:nth-of-type(3) {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
  }
  
  section.datos-contacto div.fila:nth-of-type(2) label,
  section.datos-contacto div.fila:nth-of-type(3) label {
    margin-bottom: 0;
    white-space: nowrap;
  }
}

/* Móviles (menos de 768px) */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  h1 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  
  section {
    padding: 15px;
    margin: 15px auto;
  }
  
  h2 {
    font-size: 1.2em;
  }
  
  .carrusel {
    height: 250px;
    margin: 20px auto;
  }
  
  .prev,
  .next {
    padding: 8px 12px;
    font-size: 18px;
  }
  
  .datos-contacto {
    padding: 15px;
  }
  
  .datos-contacto h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
  }
  
  .datos-contacto .fila {
    display: block;
    margin-bottom: 15px;
    width: 100%;
  }
  
  .datos-contacto .fila:last-of-type {
    margin-bottom: 0;
  }
  
  .datos-contacto label {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    font-size: 0.95rem;
    white-space: normal;
  }
  
  .datos-contacto input {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    font-size: 1rem;
    height: 46px;
    box-sizing: border-box;
  }
  
  .fila {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
  }
  
  label {
    width: 100%;
    font-size: 0.95rem;
    margin-bottom: 4px;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    height: 42px;
  }
  
  textarea {
    height: auto;
    min-height: 100px;
  }
  
  .checkbox-group {
    gap: 8px;
  }
  
  .checkbox-group label {
    padding: 10px 14px;
    font-size: 0.95rem;
    flex: 1 1 auto;
    min-width: calc(50% - 4px);
    max-width: 100%;
    text-align: center;
    border-radius: 8px;
    box-sizing: border-box;
  }
  
  .seleccion-ciudades .fila {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .seleccion-ciudades label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
  }
  
  .seleccion-ciudades input[type="text"] {
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    display: block;
    margin-bottom: 10px;
  }
  
  .seleccion-ciudades button {
    grid-column: auto;
    width: 100%;
    height: 42px;
    display: block;
  }
  
  #ciudades-seleccionadas li {
    padding: 10px;
  }
  
  .ciudad-item {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .dias-input {
    width: 100%;
  }
  
  .eliminar-btn {
    width: 100%;
  }
  
  .datos-viaje .fila {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .datos-viaje .fila > * {
    width: 100%;
  }
  
  .datos-viaje label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
  }
  
  .datos-viaje input,
  .datos-viaje select {
    display: block;
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Estilo y Ritmo en móvil se muestran en vertical */
  .datos-viaje .fila.fila-estilo-ritmo {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .datos-viaje input[type="date"] {
    width: 100%;
    max-width: 100%;
  }
  
  .datos-viaje .fila.presupuesto-estilo {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .cta-button {
    padding: 20px 25px;
    font-size: 1em;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
  }
  
  .cta-icon {
    font-size: 2em;
  }
  
  .cta-text {
    text-align: center;
  }
  
  button {
    padding: 14px 18px;
    font-size: 1rem;
  }
}

/* Móvil HORIZONTAL (Landscape) */
@media (max-width: 900px) and (orientation: landscape) {
  .datos-contacto .fila:nth-of-type(2),
  .datos-contacto .fila:nth-of-type(3) {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
  }
  
  .datos-contacto .fila:nth-of-type(2) label,
  .datos-contacto .fila:nth-of-type(3) label {
    margin-bottom: 0;
  }
  
  .datos-contacto input {
    height: 42px;
  }
  
  .datos-viaje .fila {
    grid-template-columns: repeat(2, auto 1fr);
  }
}

/* Móviles pequeños (menos de 480px) */
@media (max-width: 480px) {
  body {
    padding: 5px;
  }
  
  h1 {
    font-size: 1.4rem;
  }
  
  section {
    padding: 12px;
    margin: 10px auto;
  }
  
  h2 {
    font-size: 1.1em;
  }
  
  .carrusel {
    height: 200px;
    margin: 15px auto;
  }
  
  .prev,
  .next {
    padding: 6px 10px;
    font-size: 16px;
  }
  
  .datos-contacto {
    padding: 12px;
  }
  
  .datos-contacto h2 {
    font-size: 1.2em;
  }
  
  .datos-contacto .fila {
    display: block;
    margin-bottom: 12px;
  }
  
  .datos-contacto label {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    font-size: 0.9rem;
  }
  
  .datos-contacto input {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    height: 46px;
  }
  
  .checkbox-group label {
    min-width: 100%;
    font-size: 0.9rem;
    max-width: 100%;
    border-radius: 8px;
  }
  
  .cta-button {
    padding: 18px 20px;
    font-size: 0.95em;
  }
  
  .datos-viaje .fila {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-bottom: 8px;
  }
  
  .datos-viaje input,
  .datos-viaje select {
    height: 40px;
    padding: 8px 10px;
    font-size: 0.95rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .datos-viaje input[type="date"] {
    width: 100%;
    max-width: 100%;
  }
  
  .datos-viaje label {
    font-size: 0.85rem;
    margin-bottom: 3px;
  }
  
  .fila {
    gap: 5px;
    margin-bottom: 10px;
  }
  
  label {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select {
    height: 40px;
    padding: 8px 10px;
    font-size: 0.95rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  textarea {
    min-height: 100px;
  }
  
  section {
    padding: 10px;
    margin: 8px auto;
  }
}