/* =========================
   FUENTES
========================= */
@font-face {
  font-family: "Optima";
  src: url("optima_medium-webfont.woff2") format("woff2"),
       url("optima_medium-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Optima";
  src: url("optima_demi_bold-webfont.woff2") format("woff2"),
       url("optima_demi_bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

/* =========================
   VARIABLES
     --color-primary: #4a90e2;
  --color-primary-hover: #357ab8;
========================= */
:root {
  --color-dark: #444;
  --color-black: #000;
  --color-light: #fff;
  --color-gray: #666;
  --color-primary: #F2CF39;
  --color-primary-hover: #A99029;

  --caja-ancho-min: 280px;
  --caja-alto: 450px;
  --gap: 24px;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  font-family: "Optima", "Roboto", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================
   HEADER
========================= */
.top {
  background: var(--color-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 20px;
}

.logo-header {
  max-height: 60px;
  width: auto;
}

.contenedortop {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.columna1 img {
  max-height: 60px;
}

.columna2 {
  font-size: 24px;
  font-weight: 700;
}

/* =========================
   MAIN
========================= */
.middle {
  flex: 1;
  padding: 10px 10px;
  background: var(--color-light);
}

.contenido-middle {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

/* Título principal */
.titulo-cajas {
  position: relative;
  font-size: 28px;
  font-weight: 700;
  z-index: 2;
}

.descripcion-cajas {
  font-size: 18px;
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.separador {
  width: 120px;
  height: 3px;
  background: #ddd;
  margin: 0 auto 40px auto;
  border-radius: 2px;
}

/* =========================
   FORMULARIO
========================= */
.form-container {
  background: #f9f9f9;
  padding: 35px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 420px;

  margin: 40px auto 0 auto; /* 🔥 ESTO LO CENTRA */
}

/* Título */
.form-container h2 {
  margin-bottom: 20px;
  font-weight: 600;
  color: #444;
  font-size: 18px;
  text-align: center;
}

/* Labels */
.form-container label {
  display: block;
  font-size: 14px;
  margin: 12px 0 6px;
  color: #555;
}

/* Inputs y Select */
.form-container input,
.form-container select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fff;
}

.form-container input:focus,
.form-container select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(74,144,226,0.15);
}

/* Checkbox 
.check-extranjero {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check-extranjero input {
  margin-right: 6px;
}*/

/* Botón */
.form-container button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-container button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* Solo para página formulario */
.middle-form {
  display: flex;
  justify-content: center;
}

.middle-form .contenido-middle {
  width: 100%;
  max-width: 600px;
}

/* =========================
   GRID
========================= */
.grid-cajas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 400px));
  gap: var(--gap);
  justify-content: center;
}

.caja {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  padding: 20px;
  height: var(--caja-alto);

  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: stretch; /* 🔥 importante */
}

.caja-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.caja-titulo {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.caja-texto {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.5;
  margin-bottom: auto;
}

.caja-btn {
  display: inline-block;
  padding: 10px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.caja-btn:hover {
  background: var(--color-primary-hover);
  transform: scale(1.03);
}
.caja-lista {
  width: 100%;
  text-align: left;
  padding-left: 20px;
  margin: 10px 0 15px 0;
}

.caja-lista li {
    margin-bottom: 6px;
}

/* Contenedor del título */
.titulo-wrapper {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}

/* Texto gigante de fondo */
.titulo-fondo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  font-size: 120px;
  font-weight: 700;
  letter-spacing: 8px;
  color: rgba(0, 0, 0, 0.05); /* 🔥 transparencia elegante */
  
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* =========================
   FOOTER
========================= */
.bottom {
  background: #171720;
  color: #fff;

  height: 80px;
  display: flex;
  align-items: center;       /* centra vertical */
  justify-content: center;   /* centra horizontal */

  padding: 0 40px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .contenedortop {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .titulo-cajas {
    font-size: 24px;
  }

  .descripcion-cajas {
    font-size: 16px;
  }
   .titulo-fondo {
    font-size: 60px;
  }
}
@media (max-width: 992px) {
  .grid-cajas {
    grid-template-columns: repeat(2, 1fr); /* 2 por fila en tablet */
  }
}

@media (max-width: 600px) {
  .grid-cajas {
    grid-template-columns: 1fr; /* 1 por fila en móvil */
  }
}
@media (max-width: 480px) {
  .titulo-fondo {
    font-size: 40px;
  }
}
/* =========================
   BARRA DE BOTONES SUPERIOR
========================= */
.barra-botones {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 12px 20px;
}

.barra-contenido {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end; /* derecha */
  gap: 12px;
}
.btn-texto {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 500;

  color: var(--color-primary);
  text-decoration: none;   /* 🔥 quita subrayado */
  cursor: pointer;

  transition: color 0.3s ease;
}

.btn-texto:hover {
  text-decoration: none;   /* asegura que no aparezca */
  color: var(--color-primary-hover);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  font-family: Arial, sans-serif;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 12px;
  color: #999;
  width: 200px;
}

.circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  margin-bottom: 8px;
}

.line {
  flex: 1;
  height: 2px;
  background: #ddd;
}

/* Paso completado */
.step.completed .circle {
  background: #f4b400;
}

.step.completed span {
  color: #000;
}

/* Paso activo */
.step.active .circle {
  background: #f4b400;
}

.step.active span {
  color: #000;
  font-weight: bold;
}

/* ===== Topbar =====   
.topbar {
    background: var(--color-dark);
    padding: 5px 40px;
    display: flex;
    justify-content: flex-end;
}*/

.topbar {
    background: var(--color-dark);
    padding: 5px 40px;
    display: flex;
    justify-content: space-between; /* 🔥 clave */
    align-items: center;
}

.topbar-texto {
    color: white;
    font-size: 13px;
}
.topbar-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 13px;
    letter-spacing: 1px;
    position: relative;
    font-weight: 500;
}

/* Hover */
.topbar-links a:hover {
    opacity: 0.8;
}

/* Activo */
.topbar-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
}
.contenedor-checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Resumen filas */
.fila {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.fila.total {
    font-weight: bold;
    font-size: 15px;
}

/* Código descuento */
.codigo-descuento {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.codigo-descuento input {
    flex: 1;
    padding: 8px;
}

.codigo-descuento button {
    background: #f1c40f;
    border: none;
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Inputs */
.datos input,
.datos textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.datos textarea {
    height: 100px;
    resize: none;
}

/* Botón siguiente */
.acciones {
    max-width: 1200px;
    margin: 20px auto;
    text-align: right;
}

.btn-siguiente {
    background: #ccc;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.espacio-transparente {
    height: 60px;              /* ajusta el espacio */
    background: transparent;   /* completamente transparente */
}


/* ************************ */
/* CHECKBOX TÉRMINOS */
/* ************************ */
.check-terminos {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ************************ */
/* BOTÓN ACEPTAR */
/* ************************ */
.btn-aceptar {
    align-self: flex-end;
    background: #ccc;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

.btn-aceptar.activo {
    background: #000;
    color: #fff;
    cursor: pointer;
}

/* ************************ */
/* TEXTO TÉRMINOS */
/* ************************ */
.terminos {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.terminos h3 {
    margin-bottom: 10px;
}

.terminos h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
}

.terminos p {
    margin-bottom: 10px;
}

/* Tabla */
.tabla-container {
    overflow-y: auto;
}

.tabla-terapias {
    width: 100%;
    border-collapse: collapse;
}

.tabla-terapias th {
    text-align: left;
    padding: 12px;
    background: #f5f5f5;
}


.tabla-terapias td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* Hover */
.tabla-terapias tr:hover {
    background: #fafafa;
}

/* Footer */
.modal-footer {
    padding: 15px;
    text-align: right;
}

.btn-siguiente {
    background: #ccc;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}
.btn-seleccionar {
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* hover */
.btn-seleccionar:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.terminos {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.terminos h3 {
    margin-bottom: 10px;
}

.terminos h4 {
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
}

.terminos p {
    margin-bottom: 10px;
}

#modal-tyc .modal-content {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

#modal-tyc-body {
    overflow-y: auto;
    padding: 20px;
}