/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: #99D5FF;
  background-image: radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px);
  background-size: 6px 6px;
  color: #0A0A0A;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main-content-wrap {
  max-width: 900px;
  margin: 30px auto 60px auto;
  background: #fafafa;
  padding: 30px 40px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h2, h3 {
  color: #172033;
  margin-top: 30px;
  margin-bottom: 15px;
}

p.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: #333333;
  margin-bottom: 20px;
}

p {
  margin-bottom: 18px;
}

hr {
  border: none;
  border-top: 1px solid #cccccc;
  margin: 40px 0;
}

u {
  text-decoration: underline;
  font-weight: 600;
  color: #2474b8;
}

/* Lista de causas y pasos */
ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 25px;
  color: #333333;
  font-size: 1rem;
}

ul li {
  margin-bottom: 10px;
}

/* Numeración pasos */
.hiper-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.feature {
  background: #edf5fc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  flex: 1 1 30%;
  min-width: 250px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.feature:hover {
  background: #e3f0fc;
  box-shadow: 0 4px 12px rgba(36, 116, 184, 0.15);
}

.feature-count {
  font-weight: 700;
  font-size: 1.5rem;
  color: #2474b8;
  margin-bottom: 10px;
  display: block;
}

.feature-content h3 {
  color: #185b94;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-content p {
  font-size: 1rem;
  color: #172033;
}

/* Sección final */
.section-intro.with-bottom-line {
  border-bottom: 2px solid #2474b8;
  padding-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  #main-content-wrap {
    padding: 20px;
    margin: 15px 10px 30px;
  }

  .hiper-list {
    flex-direction: column;
  }

  .feature {
    min-width: 100%;
  }
}

/* Contenedor del botón volver */
.contenedor-volver {
  text-align: center;
  margin-bottom: 3em;
}

/* Botón para volver */
.boton-volver {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  padding: 12px 25px;
  background-color: #2474b8;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.boton-volver:hover {
  background-color: #185b94;
  color: #ffffff;
}


/* Título de certificados PDF */
.titulo-container {
  background: #fafafa;
  padding: 20px 30px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
}

.titulo-container h1 {
  margin: 0;
  color: #172033;
}

/* Lista de certificados PDF */
ul.pdf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.pdf-list li {
  margin: 15px 0;
}

ul.pdf-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #edf5fc;
  color: #172033;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow-wrap: anywhere;
}

ul.pdf-list a:hover {
  background: #e3f0fc;
  border-color: #2474b8;
  box-shadow: 0 4px 12px rgba(36, 116, 184, 0.15);
}

/* Iconos PDF */
.pdf-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: #2474b8;
  transition: fill 0.2s ease;
}

ul.pdf-list a:hover .pdf-icon {
  fill: #185b94;
}

/* Adaptación a móviles */
@media (max-width: 480px) {
  .titulo-container {
    max-width: 100%;
    padding: 15px 20px;
    margin-bottom: 30px;
  }

  ul.pdf-list a {
    padding: 14px 12px;
    font-size: 16px;
    gap: 10px;
  }

  .pdf-icon {
    width: 24px;
    height: 24px;
  }
}

/* FAQ */
.faq-header {
  font-weight: 700;
  font-size: 2rem;
  color: #172033;
  margin-bottom: 5px;
}

.faq-subtitle {
  font-weight: 500;
  font-size: 1.2rem;
  color: #333333;
  margin-bottom: 10px;
}

.faq-description {
  font-weight: 400;
  font-size: 1rem;
  color: #333333;
  margin-bottom: 30px;
  max-width: 600px;
  line-height: 1.4;
}

.faq-item {
  margin-bottom: 1.8rem;
}

.faq-question {
  display: block;
  width: 100%;
  background: #edf5fc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  color: #0A0A0A;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  text-align: left;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: #e3f0fc;
  box-shadow: 0 4px 12px rgba(36, 116, 184, 0.15);
  outline: 2px solid #2474b8;
  outline-offset: 2px;
}

.faq-answer {
  margin-top: 0.75rem;
  padding: 1rem 1.5rem;
  background: #fafafa;
  border: 1px solid #cccccc;
  border-radius: 8px;
  color: #172033;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-answer[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .faq-question {
    padding: 1rem;
    font-size: 1.05rem;
  }

  .faq-answer {
    padding: 1rem;
  }
}

/* Conversor a números romanos */
.roman-converter h1 {
  color: #172033;
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
}

.roman-converter h2 {
  color: #172033;
  text-align: center;
  font-size: 1.1rem;
  margin-top: 25px;
  margin-bottom: 15px;
}

.roman-form input[type="number"] {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 15px auto 8px;
  padding: 12px 14px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  color: #0A0A0A;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 6px;
}

.roman-form input[type="number"]:focus {
  outline: 2px solid #2474b8;
  outline-offset: 1px;
}

.roman-form .resultado {
  width: 100%;
  max-width: 400px;
  min-height: 44px;
  margin: 0 auto 18px;
  padding: 10px 14px;
  overflow-wrap: anywhere;
  background: #edf5fc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #172033;
  font-size: 1rem;
}

.roman-form .fecha-resultante {
  font-weight: 700;
  text-align: center;
  font-size: 1.15rem;
  background: #e3f0fc;
  border-color: #2474b8;
}

.roman-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.roman-buttons .roman-button {
  padding: 12px 25px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: #2474b8;
  border: 1px solid #185b94;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.roman-buttons .roman-button:hover {
  background: #185b94;
}

@media (max-width: 480px) {
  .roman-buttons {
    flex-direction: column;
  }

  .roman-buttons .roman-button {
    width: 100%;
  }
}

/* Piercing al azar */
.piercing-azar {
  text-align: center;
}

.piercing-azar header h1 {
  color: #172033;
  margin-top: 0;
  margin-bottom: 10px;
}

.piercing-azar header p {
  margin-top: 0;
  margin-bottom: 30px;
}

.piercing-azar .seccion {
  margin-bottom: 30px;
}

.piercing-azar .seccion h2 {
  color: #172033;
  margin-bottom: 10px;
}

.piercing-azar .seccion > p {
  margin-bottom: 20px;
}

.piercing-azar hr {
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 30px 0;
}

.piercing-azar .inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: 20px auto;
}

.piercing-azar .inputs input {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  color: #0A0A0A;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.piercing-azar .inputs input:focus {
  outline: 2px solid #2474b8;
  outline-offset: 1px;
}

.piercing-azar button {
  padding: 12px 25px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: #2474b8;
  border: 1px solid #185b94;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.piercing-azar button:hover {
  background: #185b94;
}

.piercing-azar .botones-opciones {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.piercing-azar .resultado {
  width: 100%;
  max-width: 500px;
  min-height: 44px;
  margin: 20px auto 0;
  padding: 10px 14px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  background: #edf5fc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #172033;
  font-size: 1.1rem;
  font-weight: 600;
}

.piercing-azar footer {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #cccccc;
  color: #555555;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .piercing-azar .botones-opciones {
    flex-direction: column;
  }

  .piercing-azar .botones-opciones button,
  .piercing-azar > .seccion > button {
    width: 100%;
  }
}

/* Selector Calidad - Barato - Disponible */
.selector-calidad {
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.selector-calidad h1 {
  color: #172033;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 5px;
}

.selector-calidad h2 {
  color: #172033;
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.selector-calidad .option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 15px 20px;
  margin: 10px 0;
  border: 1px solid #cccccc;
  border-radius: 50px;
  width: 100%;
  box-sizing: border-box;
}

.selector-calidad .label {
  font-size: 1.2rem;
  color: #333333;
}

.selector-calidad input[type="checkbox"] {
  width: 50px;
  height: 26px;
  appearance: none;
  background: #e53935;
  outline: none;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  margin: 0;
}

.selector-calidad input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.selector-calidad input[type="checkbox"]:checked {
  background: #4caf50;
}

.selector-calidad input[type="checkbox"]:checked::before {
  transform: translateX(24px);
}

.selector-calidad .mensaje {
  margin-top: 25px;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.2em;
  text-align: center;
  font-size: 1.1rem;
  color: #333333;
  font-style: italic;
}

@media (max-width: 480px) {
  .selector-calidad h1 {
    font-size: 1.6rem;
  }

  .selector-calidad .option {
    padding: 12px 16px;
  }

  .selector-calidad .label {
    font-size: 1rem;
  }

  .selector-calidad input[type="checkbox"] {
    width: 45px;
    height: 24px;
  }

  .selector-calidad input[type="checkbox"]::before {
    width: 20px;
    height: 20px;
  }

  .selector-calidad input[type="checkbox"]:checked::before {
    transform: translateX(21px);
  }

  .selector-calidad .mensaje {
    font-size: 1rem;
  }
}

/* Precios de perforaciones */
.pagina-precios {
  color: #0A0A0A;
}

.precios-header {
  text-align: center;
  padding: 0.5rem 0;
}

.precios-header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.precios-header h2 {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  color: #172033;
}

.precios-info {
  text-align: center;
  padding: 0.5rem 1rem;
}

.precios-info p {
  margin: 0;
}

.precios-buscador {
  text-align: center;
  margin: 1.5rem 0;
}

.precios-buscador input {
  width: 80%;
  max-width: 400px;
  padding: 0.5rem;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #cccccc;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  color: #0A0A0A;
  background: #ffffff;
}

.precios-buscador input:focus {
  outline: 2px solid #2474b8;
  outline-offset: 1px;
}

.pagina-precios .contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.5rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pagina-precios .tarjeta {
  background-color: #f5faff;
  width: 300px;
  padding: 0.5rem;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #cccccc;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pagina-precios .tarjeta:nth-child(even) {
  background-color: #eaf4fc;
}

.pagina-precios .tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pagina-precios .tarjeta h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #172033;
}

.pagina-precios .precio {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0A0A0A;
  margin-top: 0.5rem;
}

.pagina-precios .descripcion {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.precios-contacto {
  text-align: center;
  padding: 0.5rem 1rem;
}

.precios-contacto h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #172033;
}

.precios-contacto p {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: #0A0A0A;
}

.precios-redes {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.precios-redes img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pagina-precios footer {
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #444444;
}

@media (max-width: 600px) {
  .pagina-precios .tarjeta {
    width: 90%;
  }
}

/* Preview de fuentes */

.preview-fuentes {
  width: 100%;
}

.preview-fuentes h1 {
  margin: 0 0 30px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #172033;
}

.preview-fuentes form {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.preview-fuentes input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', Arial, sans-serif;
  background: #ffffff;
  color: #0A0A0A;
}

.preview-fuentes input[type="text"]:focus {
  outline: 2px solid #2474b8;
  outline-offset: 1px;
}

.preview-fuentes button {
  padding: 12px 25px;
  border: 1px solid #185b94;
  border-radius: 5px;
  background: #2474b8;
  color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', Arial, sans-serif;
  transition: background-color 0.2s ease;
}

.preview-fuentes button:hover {
  background: #185b94;
}

.preview-fuentes .fuente {
  background: #edf5fc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.preview-fuentes .nombre-fuente {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #185b94;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
}

.preview-fuentes .preview {
  font-size: 48px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  color: #172033;
}

@media (max-width: 768px) {
  .preview-fuentes h1 {
    font-size: 26px;
  }

  .preview-fuentes form {
    flex-direction: column;
  }

  .preview-fuentes input[type="text"] {
    width: 100%;
    min-width: 0;
  }

  .preview-fuentes button {
    width: 100%;
  }

  .preview-fuentes .preview {
    font-size: 34px;
  }
}
