body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f9fb;
  color: #24292f;
}

header,
.headernoheader {
  background: linear-gradient(90deg, #2b5876 0%, #4e4376 100%);
  color: #fff;
  padding: 32px 5vw;
  box-shadow: 0 2px 16px 0 rgba(44,62,80,.09);
  text-align: center;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.headernoheader {
  filter: brightness(1.2);
  background: linear-gradient(90deg, #232526 0%, #485563 100%);
}

h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: 1px;
}

main {
  padding: 32px 5vw 16px 5vw;
}

section {
  margin-bottom: 30px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(44,62,80,.06);
  padding: 24px 20px;
  transition: box-shadow 0.25s;
}

section:hover {
  box-shadow: 0 6px 28px 0 rgba(44,62,80,.11);
}

h2 {
  color: #355c7d;
  margin-top: 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

p,
.parrafoprincipal,
.parrafo-precio {
  color: #4d5974;
  font-size: 1.06rem;
  margin: 10px 0;
  line-height: 1.55;
}

.parrafoprincipal {
  font-weight: 600;
  color: #24292f;
}

.parrafo-precio {
  text-align: center;
  color: #547980;
}

.iconowhatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg,#43e97b 0%,#38f9d7 100%);
  border-radius: 50%;
  box-shadow: 0 4px 16px 0 rgba(44,62,80,.15);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  transition: box-shadow .2s, transform .2s;
}

.iconowhatsapp:hover {
  box-shadow: 0 8px 28px 0 rgba(44,62,80,.21);
  transform: scale(1.08);
}

.iconowhatsapp img {
  width: 38px;
  height: 38px;
  transition: width .2s, height .2s;
}

.iconowhatsapp img:hover {
  width: 46px;
  height: 46px;
}

/* FOOTER */
footer {
  background: linear-gradient(90deg,#232526 0%,#485563 100%);
  padding: 22px 0 9px 0;
  text-align: center;
  font-size: 1rem;
  color: #fff;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: 28px;
}

footer a {
  font-size: 0.97rem;
  color: #c6e2ff;
  text-decoration: underline;
  margin: 0 6px;
  transition: color .18s;
}
footer a:hover {
  color: #f9e79f;
}
footer p {
  font-size: 0.88rem;
  color: #eee;
  margin: 6px 0 0 0;
  padding: 0 8px;
}

/* Tablas responsive y estilizadas */
.contenedor-tablas {
  padding: 8px 0;
  text-align: center; 
  overflow-x: auto;
}

/* Mejorar la tabla para mobile */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 7px rgba(44,62,80,.06);
  margin-bottom: 22px;
  font-size: 0.98rem;
}

th, td {
  text-align: center;
  padding: 8px 6px;
}

th {
  background: linear-gradient(90deg,#43e97b 0%,#38f9d7 100%);
  color: #fff;
  font-weight: 600;
  border: none;
}

td {
  border: none;
  border-bottom: 1px solid #e9ecef;
}
tr:last-child td {
  border-bottom: none;
}
tr:nth-child(even) td {
  background: #f6fbf9;
}

/* Ventana de detalles */
.detalles {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #2c3e50;
  border: 1px solid #e9ecef;
  padding: 20px 20px 16px 20px;
  box-shadow: 0 10px 40px 0 rgba(44,62,80,.21);
  z-index: 9999;
  border-radius: 20px;
  font-size: 1rem;
  max-width: 95vw;
  width: 410px;
  animation: pop 0.19s cubic-bezier(.7,0,.84,1.13);
}

@keyframes pop {
  0% { transform: scale(.8) translate(-50%, -50%); opacity: 0; }
  100% { transform: scale(1) translate(-50%, -50%); opacity: 1; }
}

.cerrar-button,
.toggle-button {
  background: linear-gradient(90deg,#f7971e 0%,#ffd200 100%);
  color: #232526;
  padding: 6px 20px;
  margin-top: 12px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 7px 0 rgba(44,62,80,.09);
  transition: background .19s, color .19s;
}

.cerrar-button:hover,
.toggle-button:hover {
  background: linear-gradient(90deg,#ee0979 0%,#ff6a00 100%);
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  main { padding: 20px 3vw; }
  section { padding: 16px 7px; }
}

@media (max-width: 600px) {
  header, .headernoheader {
    padding: 20px 2vw;
    font-size: 0.96rem;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
  footer {
    padding: 16px 0 5px 0;
    font-size: 0.98rem;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }
  h1 {
    font-size: 1.4rem;
  }
  section {
    padding: 12px 5px;
    font-size: 1rem;
  }
  .detalles {
    width: 98vw;
    font-size: 0.99rem;
    padding: 12px 7px 12px 7px;
  }
  .contenedor-tablas { padding: 2px 0; }
  table { font-size: 0.95rem; }
}

