/* Archivo: precios_optica.css */

body {
  font-family: Arial, sans-serif;
  background-color: #F3F3F3;
}

/* Título del selector */
.selector-title {
  font-size: 1.5rem;
  color: #003366;
  font-weight: 600;
}

/* Estilos para el select desplegable */
#location-select {
  max-width: 300px;
  width: 100%;
  border-radius: 0.75rem;
  border: 2px solid #ccc;
  padding: 0.5rem 1rem;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'4'%20height%3D'5'%20viewBox%3D'0%200%204%205'%20xmlns%3D'http://www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M2%200L0%202h4L2%200zm0%205L0%203h4l-2%202z'%20fill%3D'%23666'%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

#location-select:focus {
  outline: none;
  border-color: #4ebbcc;
  box-shadow: 0 0 0 2px rgba(78, 187, 204, 0.3);
}

/* ===== Estilos comunes a las cards ===== */
.card {
  position: relative;
  overflow: visible;
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  perspective: 800px;
  transform: rotateY(-10deg);
  box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}

.card-header {
  min-height: 120px;
  padding: 2rem 1rem 3rem;
  text-align: center;
  background-color: #003366;
}

.card-header h2 {
  color: #ffffff;
  font-size: 25px;
  display: block;
  overflow: hidden;
}

.plan-speed {
  font-size: 2rem;
  font-weight: 600;
  color: #000;
}

.plan-price {
  font-size: 1.25rem;
}

.original-price {
  text-decoration: line-through;
  color: #aaa;
  margin-right: 0.5rem;
}

.discount-price {
  font-weight: 600;
  color: #000;
  font-size: 30px;
}

.periodo-inline {
  font-size: 0.8rem;
  color: #000;
  margin-left: 0.25rem;
  vertical-align: middle;
  font-weight: bold;
}

.per-month {
  display: block;
  font-size: 0.85rem;
  color: #000;
  margin-top: 0.5rem;
}

.btn-contratar {
  font-weight: 600;
  padding: 0.75rem 0;
  border-width: 2px;
  background-color: #004080;
  border-color: #004080;
  color: #fff;
  transition: background-color 0.2s ease;
}

.btn-contratar:hover {
  background-color: #0059b3;
  border-color: #0059b3;
}

/* ===== Animación para el cambio de planes ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.row-animate {
  animation: fadeInUp 0.4s ease;
}

/*  precios sin descuento */
.price-no-discount {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 30px;
}
@media (max-width: 576px) {
  /* 1) Desactiva el flex de Bootstrap en tu wrapper */
  .precio-container.d-flex {
    display: block !important;
  }

  /* 2) Cada hijo (el <s> y el precio nuevo) va en bloque y centrado */
  .precio-container.d-flex > * {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto .5rem !important;
  }

  /* 3) Ajusta margen inferior solo en el tachado */
  .precio-container.d-flex > s {
    margin-bottom: .75rem !important;
  }
  /* Y si tu precio nuevo está en <strong> o <b>… */
  .precio-container.d-flex > strong,
  .precio-container.d-flex > b {
    margin-bottom: 0 !important;
  }
}
