/* Reset y básicos */
body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
}

/* Header */
header {
  background-color: #e61919;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hamburger-menu {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.hamburger-menu svg {
  width: 26px;
  height: 29px;
}
.logo-img {
  width: auto;
  height: 42px;
  margin-left: -5px;
  margin-top: -3px;
  object-fit: contain;
}
.mi-claro-btn {
  background-color:transparent;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.mi-claro-btn svg {
  margin-right: 0.5rem;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 375px;
  margin: 10px auto;
  padding: 0 15px;
}

/* Títulos y líneas */
h1 {
  color: #85b8f1d7;
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
  font-weight: normal;
}
h4 {
    color: #2c97ad;
    font-weight: bold;
}
.line-with-arrow {
  position: relative;
  height: 2px;
  background-color: #6161612c;
  margin: 10px 0 20px;
  width: 100%;
}
.line-with-arrow::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #6161612c;
}

/* Texto descriptivo */
.texto2 {
  margin-bottom: 20px;
  text-align: justify;
  font-size: 15px;
  line-height: 1.5;
  color: #5a5a5a;
}

/* Dropdown */
.dropdown {
  width: 100%;
  margin: 20px auto;
  /* position: relative; */
  margin-bottom: 16px;
}
.dropdown-toggle {
  width: 100%;
  padding: 15px 15px;
  background-color: white;
  border: 1px solid #7c7a78;
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  z-index: 10;
}
.dropdown-toggle:hover {
  background-color: #ffffff;
}
.dropdown-menu {
  display: none;
  width: 100%;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 10px 2px rgba(0,0,0,0.15);
  /* position: absolute; */
  margin-top: 8px;
  position: static;
  z-index: auto;
  margin-top: 8px;
}
.dropdown-item {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 14px;
}
.dropdown-item:hover {
  background-color: white;
}
.dropdown-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.service-option span {
  font-weight: 600;
}

.dropdown.open > .dropdown-toggle {
  border: 2px solid #dd5b04;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  position: relative;             /* para el ::after */
}

/* Triángulo naranja apuntando hacia abajo, justo bajo el toggle */
.dropdown.open > .dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -14px;                   /* 8px fuera del toggle */
  left: 50%;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #dd5b04;  /* triángulo apuntando abajo */
  width: 0;
  height: 0;
  z-index: 9;                     /* encima del menú */
}

/* Flecha interna rota y pintada de naranja (si usas .arrow-icon) */
.dropdown-toggle .arrow-icon {
  transition: transform .2s, color .2s;
}
.dropdown.open > .dropdown-toggle .arrow-icon {
  transform: rotate(180deg);
  color: #dd5b04;
}

/* El menú conserva su estilo original y aparece bajo el triángulo */
.dropdown.open > .dropdown-menu {
  display: block;   
  margin-top: 12px;              /* ya lo controlas desde JS */
  /* top: calc(100% + 8px);          
  left: 0;
  z-index: 0;                     detrás del toggle */
}

/* Vertical list de servicios */
.vertical-list {
  display: none;
  max-width: 400px;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  /* z-index: 1;; */
}
.vertical-list.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.service-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.service-option:hover {
  background-color: #f0f0f0;
}
.service-option .radio {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-option .radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.3s ease;
}
.service-option.selected .radio {
  border-color: #e61919;
}
.service-option.selected .radio::after {
  background-color: #e61919;
}
.service-option img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/* Campo número de celular */
.cell-number-input {
  display: none;
  max-width: 400px;
  margin: 20px auto;
}
.cell-number-input.show {
  display: block;
}
.cell-number-input label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.cell-number-input input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  
  
}

.cell-number-input input:focus {
  border-color: #dd5b04;
  border-width: 2px;
  border-style: solid;
  border-radius: 8px;
  outline: none;
}

/* Sección PIN */
#pin-input {
  display: none;
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
}
#pin-input.show {
  display: block;
}
.pin-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.pin-digit {
  width: 3rem;
  height: 3rem;
  font-size: 1.8rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Botones */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 20px auto;
}
.red-button,
.gris-button {
  width: 100%;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  margin: 9px 0;
}
.red-button {
  background-color: #e61919;
  color: white;
}
.red-button:hover {
  background-color: #c41717;
}
.gris-button {
  background-color: #3d3d3d;
  color: white;
}

/* Loading GIF overlay */
.loading-gif {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.loading-gif.show {
  display: flex;
}
.loading-gif img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-left: 15px;
}

/* Mensaje de error */
.error-message {
  color: #e61919;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

/* Footer */
footer {
  background-color: #333333;
  color: white;
  padding: 2rem 0;
  margin-top: 3cm;
}
.footer-section {
  border-bottom: 1.5px solid #4a4a4a;
  margin-bottom: 2rem;
}
.footer-section h3 {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin: 0;
}
.footer-section h3::after {
  content: '\25BC';
  font-size: 0.8em;
  transition: transform 0.3s ease;
}
.footer-section.active h3::after {
  transform: rotate(180deg);
}
.footer-section ul {
  list-style-type: none;
  padding: 0;
  display: none;
}
.footer-section.active ul {
  display: block;
}
.footer-section li {
  padding: 0.5rem 0;
}
.footer-section a {
  color: white;
  text-decoration: none;
}
.social-icons {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}
.social-icons a {
  color: white;
  font-size: 1.5rem;
}
.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}
.footer-bottom a {
  color: #999;
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}