/* === Variables de Color === */
:root {
  --primary-color: #d4af37;
  --border-color: #000000;
  --light-text: #fff;
  --dark-text: #121212;
  --grey-text: #ccc;
  --input-bg: #2e2e2e;
  --error-red: #ff6b6b;
  --warning-yellow: #ffcc00;
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #1DAE50;
}

/* === Estilos Generales === */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: black;
  color: var(--primary-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* === Utilidades Flex === */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px; /* Espacio entre elementos flex */
}

.flex-wrap {
  display: flex;
  justify-content: space-around; /* Mejor distribución */
  align-items: center;
  gap: 30px; /* Más espacio */
  flex-wrap: wrap;
}

/* === Cabecera === */
.site-header {
  background-color: var(--dark-bg);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: bold;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 1px;
  margin: 0;
}

.logo-img {
  height: clamp(45px, 10vw, 60px);
  width: auto;
  transition: transform 0.3s ease-in-out;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* === Botones === */
.btn {
  background-color: var(--primary-color);
  color: var(--dark-text);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  font-family: inherit;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn:hover,
.btn:focus {
  background-color: #b08a2e; /* Dorado más oscuro */
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  outline: none;
}

/* Botón específico de WhatsApp */
.whatsapp-btn-style {
  background-color: var(--whatsapp-green);
  color: white;
}

.whatsapp-btn-style:hover,
.whatsapp-btn-style:focus {
  background-color: var(--whatsapp-green-hover);
}

/* Botón Sobre Nosotros separado */
.about-btn-style {
  display: block;
  margin: 40px auto;
  text-align: center;
}

/* === Banner === */
.banner {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  filter: brightness(0.7);
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.banner .text {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.banner h2 {
  font-size: clamp(24px, 6vw, 40px);
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
  animation: fadeInUp 1s ease forwards;
}

/* === Secciones Demo === */
.demo-section {
  background: var(--secondary-color);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}
.demo-section:last-of-type {
  border-bottom: none;
}

.demo-img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.demo-img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.demo-text {
  max-width: 450px;
  text-align: center;
}
@media (min-width: 768px) {
  .demo-text {
    text-align: left;
  }
}

.demo-text h2 {
  font-size: clamp(20px, 4vw, 26px);
  color: var(--primary-color);
  margin-bottom: 15px;
}
.demo-text p {
  color: var(--grey-text);
  margin-bottom: 20px;
}

/* === Modal (Estilos base) === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.911);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #111111;
  margin: auto;
  padding: 30px;
  border: 2px solid #f1c40fd0;
  width: 90%;
  max-width: 600px;
  color: white;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
  position: relative;
}

.modal-content .close {
  color: #fd0000;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 39px;
  cursor: pointer;
}

/* Estilo del textarea en el modal */
.modal-content textarea {
  width: 100%;
  min-height: 100px;
  background-color: #00000085;
  color: #fff;
  border: 1px solid #f1c40f;
  padding: 10px;
  border-radius: 8px;
  resize: vertical;
}

/* Estilo de los botones dentro del modal */
.modal-content .btn {
  background-color: #f1c40f;
  color: #000;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.modal-content .btn:hover {
  background-color: #d4ac0d;
}

/* Botón Enviar en el Modal con estilo Premium */
.modal-content button[type="submit"] {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #b38e22 0%, #f1c40f 70%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid #f1c40f;
  padding: 14px 28px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.6),
    0 4px 12px rgba(0,0,0,0.4);
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}
.modal-content button[type="submit"]::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -45%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.4);
  transform: rotate(25deg);
  transition: all 0.7s ease;
}
.modal-content button[type="submit"]:hover {
  background: linear-gradient(145deg, #f1c40f 0%, #b38e22 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.7),
    0 6px 18px rgba(0,0,0,0.5);
}
.modal-content button[type="submit"]:hover::before {
  top: -20%;
  left: 120%;
  transition: all 0.7s ease;
}
.modal-content button[type="submit"]:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 3px 8px rgba(0,0,0,0.3);
  transition: transform 0.1s, box-shadow 0.1s;
}

/* === Formulario dentro del Modal === */
#personaliza-form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Espacio entre elementos del form */
  margin-bottom: 20px; /* Espacio antes del resultado */
}

#personaliza-form label {
  text-align: left;
  font-weight: bold;
  margin-bottom: -5px;
  color: var(--primary-color);
  font-size: 0.95rem;
}

#personaliza-form input,
#personaliza-form select,
#personaliza-form textarea {
  width: 100%;
  padding: 12px; /* Más padding */
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background-color: #0a0a0ace;
  color: var(--light-text);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#personaliza-form input:focus,
#personaliza-form select:focus,
#personaliza-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

#personaliza-form textarea {
  min-height: 120px;
  resize: vertical;
}

#personaliza-form select {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23d4af37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%000%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 12px top 50%;
  background-size: .7em auto;
  padding-right: 40px; /* Más espacio para flecha */
}

/* Quitar flecha en Firefox */
@-moz-document url-prefix() {
  #personaliza-form select {
    padding-right: 12px;
  }
}

#personaliza-form button[type="submit"] {
  margin-top: 15px;
}

/* === Contenedor del Resultado === */
#resultado {
  background-color: #050505bb;
  color: var(--light-text);
  padding: 20px;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 20px;
  text-align: left;
  border: 1px solid #444;
  min-height: 50px;
  transition: background-color 0.3s;
}

#resultado h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
}

#resultado p { /* Estilo para mensajes de carga/error */
  margin: 0;
  line-height: 1.5;
  color: var(--warning-yellow);
}

#resultado pre { /* Estilo para la letra generada */
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  color: var(--light-text);
}

#resultado p[style*="color: #ff6b6b;"] { /* Estilo específico para errores */
  color: var(--error-red);
  font-weight: bold;
}

/* === Tarjetas de Paquetes === */
.paquete {
  background-color: #000000;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 2px 8px rgba(238, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paquete:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6), 0 0 30px rgba(199, 2, 2, 0.4);
}

/* === Sección de Paquetes y Precios === */
.paquetes-section {
  padding: 60px 0;
  background-color: #000000;
  color: var(--primary-color);
  text-align: center;
}

.paquetes-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.paquetes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.paquete h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.paquete p {
  color: #ccc;
  font-size: 0.95rem;
}

.paquete strong {
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* === Sección ¿Cómo Funciona? === */
.funciona-section {
  background-color: #0b0b0b;
  padding: 60px 25px;
  border-radius: 14px;
  color: var(--light-text);
  text-align: center;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.12);
  margin-top: 40px;
}

.funciona-section h2 {
  font-size: 2.4em;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
}

.funciona-lista {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: auto;
}

.funciona-lista li {
  background: linear-gradient(to right, #1b1b1b, #131313);
  border-left: 4px solid var(--primary-color);
  border-radius: 10px;
  margin: 18px 0;
  padding: 18px 20px;
  font-size: 1.1em;
  text-align: left;
  transition: all 0.3s ease;
  color: #c8bfae;
  box-shadow: inset 0 0 0 transparent, 0 2px 6px rgba(0,0,0,0.4);
}

.funciona-lista li:hover {
  transform: scale(1.015);
  background: #000000;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.funciona-lista strong {
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 10px;
}

/* Botón copiar (en secciones genéricas) */
.copy-btn {
  margin-left: 10px;
  padding: 5px 12px;
  background: linear-gradient(145deg, #d4af37, #ba960c);
  border: none;
  border-radius: 6px;
  color: #121212;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: background 0.3s ease, transform 0.2s;
}

.copy-btn:hover {
  background: linear-gradient(145deg, #f7cd4d, #b89500);
  transform: translateY(-2px);
}

/* === Sección de Contacto === */
.contacto-section {
  background-color: #000000;
  padding: 60px 20px;
  color: #eee;
  text-align: center;
}

.contacto-section h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* === Formulario de Contacto === */
.form-contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  background-color: #181818;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
  gap: 20px;
}

.form-contacto input,
.form-contacto textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: #000000;
  color: var(--light-text);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.form-contacto input:focus,
.form-contacto textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4), inset 0 0 5px rgba(212, 175, 55, 0.3);
  transform: scale(1.01);
  outline: none;
}

.form-contacto textarea {
  resize: vertical;
  min-height: 140px;
}

.form-contacto button {
  background: linear-gradient(145deg, #000000, #ff0000);
  color: #fff;
  font-weight: bold;
  padding: 14px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-contacto button:hover {
  background: linear-gradient(145deg, #e90000b6, #000000);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

/* Toast flotante al copiar */
.toast-copy {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: #121212;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}

.toast-copy.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* ============================================================== */
/* === Sección “Métodos de Pago” (integrada y adaptada) === */
.metodos-pago-box {
  background-color: #111;
  padding: 32px;
  border-radius: 14px;
  margin-top: 40px;
  color: #eee;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.metodos-pago-box h3 {
  font-size: 1.9rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.metodos-pago-box img {
  height: 34px;
  vertical-align: middle;
}

.metodos-pago-box .logo-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--light-text);
}

.metodos-pago {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  margin-top: 30px;
  color: white;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.metodos-pago h3 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 10px;
}

.metodo {
  margin-bottom: 25px;
  padding: 15px 20px;
  background-color: #2a2a2a;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.metodo strong {
  color: var(--primary-color);
}

.metodo span,
.metodo li {
  color: #eee;
}

.copy-btn {
  margin-left: 10px;
  background-color: var(--primary-color);
  color: #121212;
  padding: 5px 10px;
  font-size: 0.9rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.copy-btn:hover {
  background-color: #b28d1a;
  color: white;
  transform: translateY(-1px);
}

.link-paypal {
  display: inline-block;
  background-color: #0070ba;
  color: white;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.link-paypal:hover {
  background-color: #005c9e;
  transform: translateY(-1px);
}

.metodo-logo {
  max-width: 180px;
  height: auto;
  margin: 0 auto 15px auto;
  display: block;
}

/* ============================================================== */
/* === Sección de Contacto con Animación === */
.contacto-box {
  background: linear-gradient(to bottom right, #0d0d0d, #1a1a1a);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 50px 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: fadeSlideUp 0.9s ease forwards;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.4s ease;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contacto-box::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contacto-box h2 {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 18px;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 1;
  text-align: center;
}

.contacto-box h2::before {
  content: "\f2b6";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary-color);
  margin-right: 12px;
  font-size: 1.4rem;
}

.contacto-box h2:hover {
  color: #fff;
  transform: scale(1.05);
}

.contacto-box p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 30px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  z-index: 1;
  text-align: center;
}

.contacto-box p:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Redes Sociales dentro de Contacto */
.redes-sociales {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.redes-sociales a {
  font-size: 2.4rem;
  padding: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #111;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.redes-sociales a[title="WhatsApp"] {
  color: #25D366;
}

.redes-sociales a[title="Facebook"] {
  color: #3b5998;
}

.redes-sociales a[title="YouTube"] {
  color: #FF0000;
}

.redes-sociales a[title="Correo Electrónico"] {
  color: #ffffff;
}

.redes-sociales a:hover {
  transform: scale(1.15);
  background-color: #1d1d1d;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
  opacity: 0.95;
}

/* ============================================================== */
/* === Footer === */
.footer {
  background-color: var(--dark-bg);
  padding: 40px 20px;
  border-top: 3px solid var(--primary-color);
  margin-top: 40px;
}

.footer-content {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.footer h2 {
  font-size: clamp(20px, 4vw, 24px);
  color: var(--primary-color);
  margin-bottom: 10px;
}

.footer p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: var(--grey-text);
}

.footer ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  gap: 20px;
  margin: 15px 0;
}

.footer ul li a {
  color: var(--grey-text);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

.social-icons a {
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #b38e22;
  transform: scale(1.15);
}

/* ============================================================== */
/* === Animaciones === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================== */
/* === Media Queries para Responsividad (globales) === */
@media (max-width: 768px) {
  .site-header .container.flex-between {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .site-header .social-icons {
    order: 2;
    margin-top: 10px;
  }
  #openCustomizeHeader {
    order: 3;
    margin-top: 10px;
  }
  .demo-content.flex-wrap {
    flex-direction: column;
    text-align: center;
  }
  .footer ul {
    flex-direction: column;
    gap: 10px;
  }
  .modal-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  #personaliza-form input,
  #personaliza-form select,
  #personaliza-form textarea {
    padding: 10px;
    font-size: 0.9rem;
  }
  #resultado {
    font-size: 0.9rem;
    padding: 15px;
  }
  .social-icons a {
    font-size: 1.3rem;
  }
  .footer p {
    font-size: 0.8rem;
  }
}

/* ============================================================== */
/* === Carrusel dinámico para entradas === */
.blog-section {
  padding: 2rem 1rem;
  background-color: #121212;
  border-top: 1px solid #333;
}
.blog-section h2 {
  text-align: center;
  color: #d4af37;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.blog-scroll-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 10px;
}
.blog-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0.8rem;
  padding: 0.8rem 0;
  margin: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.blog-list::-webkit-scrollbar { display: none; }

/* Tamaño ajustado de las tarjetas de entrada */
.blog-card {
  flex: 0 0 auto;
  width: 200px;
  background: #1e1e1e;
  color: white;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}
.blog-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}
.blog-content {
  padding: 0.6rem;
}
.blog-content h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: #f1c40f;
}
.blog-content .blog-date {
  font-size: 0.7rem;
  color: #999;
  margin-bottom: 0.3rem;
}
.blog-content p {
  font-size: 0.75rem;
  margin-bottom: 0.6rem;
}

/* Flechas de navegación */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: var(--primary-color);
  color: var(--dark-text);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: background-color 0.3s, transform 0.2s;
}
.scroll-btn:hover {
  background-color: #b08a2e;
  transform: translateY(-50%) scale(1.1);
}
.left-btn  { left:  2px; }
.right-btn { right: 2px; }

/* ============================================================== */
/* ======== RESPONSIVE • SECCIÓN ¿CÓMO FUNCIONA? ======== */

/* Tablets y portátiles pequeños */
@media (max-width: 992px) {
  .funciona-section {
    padding: 50px 20px;
  }
  .funciona-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
  }
  .funciona-lista li {
    font-size: 1rem;
    padding: 16px 18px;
  }
}

/* Celulares grandes / phablets */
@media (max-width: 768px) {
  .funciona-section {
    padding: 40px 15px;
  }
  .funciona-lista {
    max-width: 100%;
  }
  .funciona-lista li {
    font-size: 0.95rem;
    line-height: 1.45;
    padding: 14px 16px;
  }
}

/* Celulares angostos (≤ 480 px) */
@media (max-width: 480px) {
  .funciona-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .funciona-lista li {
    font-size: 0.9rem;
    padding: 12px 14px;
    border-left-width: 3px;
  }
}
/* ===== FIX POSICIÓN CTA EN HEADER ===== */

/* Escritorio (≥ 992 px): botón a la derecha */
@media (min-width: 992px) {
  #openCustomizeHeader {        /* usa el ID real de tu botón si es distinto */
    margin-left: auto;          /* lo empuja al extremo derecho */
    white-space: nowrap;        /* evita que el texto se parta */
  }
}

/* Móvil y tablets (≤ 768 px): botón centrado */
@media (max-width: 768px) {
  #openCustomizeHeader {
    align-self: center;         /* lo centra dentro del header apilado */
    margin: 10px auto 0;        /* margen arriba y centrado horizontal */
  }
}




/* ============================================================== */
/* === Fin de style.css === */
