/* === Edad Input Custom === */
.edad-input {
  width: 80px;
  padding: 0.6rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-size: 1.1rem;
  background: #fffdfa;
  color: #222;
  box-shadow: 0 2px 8px rgba(224,26,26,0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}
.edad-input:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(224,26,26,0.12);
  outline: none;
  background: #fff5f5;
}
.edad-item label {
  font-size: 0.95rem;
  color: var(--primary-dark);
  font-weight: 600;
}
/* === Variables y Reset === */
:root {
  --primary: #e01a1a;
  --primary-dark: #c62828;
  --gray-light: #f8f9fa;
  --gray: #dee2e6;
  --text: #dee2e6;
  --white: #fff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gray-light);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 2rem auto;
  padding: 1rem;
}

/* === Stepper === */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  counter-reset: step;
  width: 100%;
}

.step {
  position: relative;
  text-align: center;
  flex: 1;
  opacity: 0.7;
}

.step.active,
.step.completed {
  opacity: 1;
}

.step::before {
  content: counter(step);
  counter-increment: step;
  display: block;
  width: 40px;
  height: 40px;
  background: var(--gray);
  color: white;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  line-height: 40px;
  font-weight: bold;
}

.step.completed::before {
  background: var(--primary-dark);
  content: "✓";
}

.step.active::before {
  background: var(--primary);
}

.step-label {
  font-size: 0.9rem;
  font-weight: 500;
}

/* === Panel === */
.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
  width: 100%;
}

.panel-heading {
  background: var(--primary);
  color: white;
  padding: 1rem;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #dee2e6 !important;
}

.panel-body {
  padding: 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.col-md-8 {
  flex: 2;
}

.col-md-4 {
  flex: 1;
  background: var(--gray-light);
  padding: 1rem;
  border-radius: var(--radius);
  align-self: flex-start;
}

/* === Form Controls === */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.2);
}

/* === Buttons === */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--gray);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* === Tabs === */
.nav-tabs {
  display: flex;
  list-style: none;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray);
}

.nav-tabs li {
  margin-right: 0.5rem;
}

.nav-tabs a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius) var(--radius) 0 0;
}

.nav-tabs .active a {
  background: var(--primary);
  color: white;
}

.tab-content > div {
  display: none;
  padding: 1rem;
  border: 1px solid var(--gray);
  border-top: none;
}

.tab-content > div.active {
  display: block;
}

/* === Responsive === */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  .col-md-4 {
    order: -1;
    margin-bottom: 1rem;
  }

  .stepper {
    font-size: 0.8rem;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .step {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .step::before {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem;
  }
  .panel-body {
    padding: 0.5rem;
  }
  .panel-title {
    font-size: 1rem;
  }
  .stepper {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.7rem;
  }
  .step {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .step::before {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 0.9rem;
  }
  .btn {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }
  .btn-lg {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
  }
  .form-group label {
    font-size: 0.95rem;
  }
   select, input[type="checkbox"] {
     min-height: 44px;
     font-size: 1rem;
     padding: 0.7rem;
   }
   input[type="checkbox"] {
     width: 22px;
     height: 22px;
   }
}

@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0.8rem;
  }
  .panel-body {
    padding: 1rem;
  }
  .row {
    gap: 0.5rem;
  }
  .col-md-8, .col-md-4 {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* === Dynamic Sections === */
.section {
  display: none;
}

.section.active {
  display: block;
}

img, .img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

.habitacion {
  border: 1px solid var(--gray);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--gray-light);
}

.edades-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.edad-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* === Hidden by default === */
#blk_prereserva,
#Precio_total,
#blk_itinerario_content,
#blk_pasajeros_container {
  display: none;
}
