/* ===== VARIABLES GLOBALES ===== */
:root {
  --bg-dark: #242424;
  --gold: #D4AF37;
  --text-light: #f5f5f5;
  --bg-gray: #282828;
  --radius: 10px;
  --shadow: 0 4px 12px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

/* ===== RESET Y ESTILOS BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background: var(--bg-gray);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

html, body {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Fondo animado */
.particles-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: #121212;
}

.particle {
  position: absolute;
  background: #D4AF37;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  transition: transform 0.3s ease-out, opacity 0.4s ease;
}

/* Tamaños aleatorios para partículas */
.particle.small {
  width: 2px;
  height: 2px;
}
.particle.medium {
  width: 3px;
  height: 3px;
}
.particle.large {
  width: 4px;
  height: 4px;
  opacity: 0.8;
}

/* Sección Hero con título */
.hero-section {
  width: 100%;
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(to right, #121212, #1a1a1a, #121212);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, 
    rgba(212, 175, 55, 0.1) 0%, 
    transparent 70%);
  z-index: 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #f5f5f5;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.brand-gold {
  color: #D4AF37;
  background: linear-gradient(to right, #D4AF37, #f5d742, #D4AF37);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: shine 3s ease-in-out infinite alternate;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Animación brillo */
@keyframes shine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.main-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
  padding: -2px 0;
}

.main-container {
  flex: 1;
  width: 100%;
  padding-bottom: 60px;
}

.main-footer {
  margin-top: 60px; /* o más si lo necesitas */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 100px;
  width: auto;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

/* Modal Ampliación Plazo */
.ampliacion-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.ampliacion-modal.active {
  display: flex;
}

.ampliacion-content {
  background: var(--bg-dark);
  padding: 30px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 450px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  text-align: center;
}

.ampliacion-content h3 {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.ampliacion-content p {
  margin-bottom: 25px;
  color: var(--text-light);
  line-height: 1.5;
}

.ampliacion-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ampliacion-continuar,
.ampliacion-whatsapp {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.ampliacion-continuar {
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
}

.ampliacion-continuar:hover {
  background: #c9a227;
  transform: translateY(-2px);
}

.ampliacion-whatsapp {
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ampliacion-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

.ampliacion-whatsapp img {
  width: 20px;
  height: 20px;
}

@media (max-width: 480px) {
  .ampliacion-content {
    padding: 20px 15px;
  }
  
  .ampliacion-buttons {
    flex-direction: column;
  }
}

/* Menú Desktop */
.desktop-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-item a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-item a:hover::after {
  width: 100%;
}

/* Menú Mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.toggle-bar {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-light);
  margin: 5px 0;
  transition: var(--transition);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background: var(--bg-dark);
  padding: 80px 20px;
  transition: right 0.3s ease-out;
  z-index: 1000;
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-list a {
  color: var(--text-light);
  text-decoration: none;
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid #333;
  font-size: 1.1rem;
}

/* Estados activos */
.mobile-nav.active {
  right: 0;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .toggle-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-container {
  width: 120%;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Control Global */
.control-global {
  width: 65%;
  background: var(--bg-dark);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 20px auto;
}

.input-group {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.input-group span {
  margin-right: 10px;
  color: var(--gold);
}

input[type="number"],
input[type="range"] {
  width: 100%;
  padding: 10px;
  background: #333;
  border: 1px solid #444;
  border-radius: var(--radius);
  color: var(--text-light);
}

input[type="range"] {
  height: 6px;
  margin-top: 10px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
}

/* Calculadoras */

/* Estilos para el tooltip */
.info-trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  color: var(--gold); /* Texto negro para contraste */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  z-index: 2;
  border: none; /* Elimina cualquier borde */
  padding: 0; /* Elimina padding interno */
  margin: 0; /* Elimina márgenes */
  cursor: pointer;
  line-height: 1;
  box-shadow: none; /* Elimina sombras */
  transition: transform 0.2s ease;
}

.info-trigger:hover {
  background: #c9a227;
  transform: scale(1.1);
}

.info-tooltip {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  min-width: 250px;
  background: var(--gold);
  color: white;
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(10px);
  z-index: 10;
}

.info-trigger:hover .info-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
  transition-delay: 0.5s; /* Retardo para que aparezca */
}

.info-tooltip h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 5px;
}

.info-tooltip ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-tooltip li {
  margin-bottom: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.info-tooltip strong {
  font-weight: 600;
}

/* Asegura que la calculadora tenga posición relativa */
.calculadora {
  position: relative;
  /* ... otros estilos existentes ... */
}
.calculadoras-grid {
  width: 100%;
  max-width: 1000px; /* Aumentamos el ancho máximo */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas de igual tamaño */
  gap: 20px;
  margin: 20px auto;
  padding: 0 20px; /* Padding para no pegarse a los bordes */
  box-sizing: border-box;
}

.calculadora {
  background: var(--bg-dark);
  padding: 25px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--gold);
}

.tasa {
  color: var(--gold);
  font-weight: bold;
}

.resultado h4 {
  color: var(--gold);
  font-size: 1.5rem;
  margin: 10px 0;
}

.btn-pedir {
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  transition: var(--transition);
}

.btn-pedir:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Sección Nosotros */
.about-section {
  width: 75%;
  background: var(--bg-dark);
  padding: 30px;
  border-radius: var(--radius);
  margin: 30px auto;
  box-shadow: var(--shadow);
}

.about-section h2 {
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.about-section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 15px auto 0;
}

.about-highlight {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--gold);
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.value-card {
  background: #1e1e1e;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 10px;
}

/* FAQ Section */
.faq-section {
  width: 75%;
  background: var(--bg-dark);
  padding: 30px;
  border-radius: var(--radius);
  margin: 30px auto;
  box-shadow: var(--shadow);
}

.faq-slider {
  position: relative;
  min-height: 200px;
}

.faq-item {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(30px);
  transition: var(--transition);
  background: #1e1e1e;
  padding: 20px;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

.faq-item.active {
  opacity: 1;
  transform: translateX(0);
}

.faq-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.faq-controls button {
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  padding: 8px 15px;
  border-radius: var(--radius);
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.faq-controls button:hover {
  opacity: 0.9;
}

/* ===== BOTÓN WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
  width: 40px;
  height: 40px;
  background: var(--gold) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/></svg>') no-repeat center;
  background-size: 24px;
  border-radius: 50%;
}

/* Efecto de pulso */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.whatsapp-float:hover .whatsapp-icon {
  animation: pulse 1.5s infinite;
}

/* ===== FORMULARIO ===== */
.form-section {
  width: 100%;
  padding: 60px 20px;
  background: var(--bg-dark);
  position: relative;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: #1e1e1e;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.form-container h2 {
  color: var(--gold);
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.form-container.modal-view {
  background: #1e1e1e;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-top: 4px solid var(--gold);
}

/* Barra de scroll personalizada */
.form-container.modal-view::-webkit-scrollbar {
width: 8px;
}

.form-container.modal-view::-webkit-scrollbar-track {
background: #333;
border-radius: 10px;
}

.form-container.modal-view::-webkit-scrollbar-thumb {
background: var(--gold);
border-radius: 10px;
}

/* Estructura del paso 2 en modal */
.modal-paso2 {
display: none;
}

.modal-paso2.active {
display: block;
animation: fadeIn 0.5s ease;
}

/* Botón cerrar para el modal */
.modal-close {
position: absolute;
top: 15px;
right: 15px;
background: none;
border: none;
color: var(--text-light);
font-size: 24px;
cursor: pointer;
transition: var(--transition);
}

.modal-close:hover {
color: var(--gold);
}

.form-paso {
  display: none;
  width: 100%;
}

.form-paso.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-light);
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  background: #333;
  border: 1px solid #444;
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.form-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  align-items: center;
}

.form-promo {
  flex: 1;
  padding: 30px;
  background: rgba(212, 175, 55, 0.05);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}

.form-promo h2 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 25px;
  line-height: 1.3;
}

.promo-features {
  list-style: none;
  margin: 25px 0;
}

.promo-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.promo-features li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--gold);
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
  mask-repeat: no-repeat;
  mask-position: center;
}

.promo-testimonial {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius);
  position: relative;
  margin-top: 30px;
}

.promo-testimonial:before {
  content: "";
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.1;
  font-family: serif;
}

.testimonial-author {
  text-align: right;
  font-style: italic;
  color: var(--gold);
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .form-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  
  .form-promo {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .form-container {
    width: 100%;
  }
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin: 25px 0;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.link {
  color: var(--gold);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn-next,
.btn-prev,
.btn-submit {
  padding: 12px 25px;
  border-radius: var(--radius);
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.btn-next,
.btn-submit {
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
}

.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.btn-prev {
  background: transparent;
  color: var(--text-light);
  border: 1px solid #444;
}

.btn-prev:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.form-container,
form,
.form-paso {
  position: relative;
  z-index: 110;
}

.form-paso {
  position: relative; /* Añade esto */
  z-index: 1; /* Y esto */
}

/* Modal backdrop */

success-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.success-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
}
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
}

.form-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  border-top: 4px solid var(--gold);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

/* Mejor scroll para el modal */
.modal-scrollable {
max-height: 70vh;
overflow-y: auto;
padding-right: 15px;
}

/* Barra de scroll personalizada */
.modal-scrollable::-webkit-scrollbar {
width: 8px;
}

.modal-scrollable::-webkit-scrollbar-track {
background: #333;
border-radius: 10px;
}

.modal-scrollable::-webkit-scrollbar-thumb {
background: var(--gold);
border-radius: 10px;
}

.modal-scrollable::-webkit-scrollbar-thumb:hover {
background: #c9a227;
}

/* Ajustes para los botones en móvil */
@media (max-width: 768px) {
.form-container.modal-view {
    width: 95%;
    padding: 20px;
}

.form-buttons {
    flex-direction: column;
    gap: 10px;
}

.btn-next, .btn-prev, .btn-submit {
    width: 100%;
}
}

/* Mensaje de éxito */
.mensaje-exito {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  z-index: 1001;
  text-align: center;
}

.exito-icon {
  width: 60px;
  height: 60px;
  background: var(--gold);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.mensaje-exito h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.mensaje-exito p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.btn-cerrar {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 25px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-cerrar:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Modal de confirmación */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.confirm-modal.active {
  opacity: 1;
  visibility: visible;
}

.confirm-content {
  background: #1e1e1e;
  padding: 30px;
  border-radius: var(--radius);
  max-width: 400px;
  width: 90%;
  text-align: center;
  border-top: 4px solid var(--gold);
}

.confirm-content h3 {
  color: var(--gold);
  margin-bottom: 15px;
}

.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.confirm-cancel,
.confirm-accept {
  padding: 10px 25px;
  border-radius: var(--radius);
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.confirm-cancel {
  background: transparent;
  color: var(--text-light);
  border: 1px solid #444;
}

.confirm-cancel:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.confirm-accept {
  background: #e74c3c;
  color: white;
  border: none;
}

.confirm-accept:hover {
  background: #c0392b;
  transform: translateY(-2px);
}


/* ===== FOOTER ===== */
.main-footer {
  background: #121212;
  color: var(--text-light);
  padding: 60px 20px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  margin-bottom: 30px;
}

.footer-title {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--gold);
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-list a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-list a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-icon {
  color: var(--gold);
  width: 20px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #1e1e1e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  transform: translateY(-3px);
  background: var(--gold);
}

.social-icon img {
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.social-icon:hover img {
  filter: brightness(0) invert(0);
}

.footer-app {
  margin-top: 25px;
}

.footer-app p {
  margin-bottom: 10px;
  color: #aaa;
}

.app-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-badge img {
  height: 40px;
  width: auto;
  border-radius: 5px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-logo img {
  opacity: 0.7;
  transition: var(--transition);
}

.footer-logo:hover img {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .app-badges {
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .form-container {
    padding: 30px 20px;
  }
  
  .form-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-next,
  .btn-prev,
  .btn-submit {
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-icon {
    width: 32px;
    height: 32px;
    background-size: 20px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-container {
    padding: 0 10px;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .logo img {
    height: 60px;
  }
  
  .main-container,
  .control-global,
  .calculadoras-grid,
  .about-section,
  .faq-section {
    width: 95%;
    padding: 20px;
  }
  
  .calculadoras-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-item {
    padding: 15px;
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .logo img {
    height: 70px;
  }
  
  .faq-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .faq-controls button {
    width: 100%;
  }
  
  #faq-counter {
    order: -1;
    margin-bottom: 10px;
  }
}

/* Estilo para el botón Cerrar */
.ampliacion-cerrar {
  background: var(--bg-dark);
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 10px;
}

.ampliacion-cerrar:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

/* Estilos para los detalles de pago */
.detalle-pago {
  margin-bottom: 15px;
  width: 100%;
}

.item-pago {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.item-pago span {
  color: #aaa;
}

.item-pago strong {
  color: var(--text-light);
  font-weight: 500;
}

.total-pagar {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid var(--gold);
  text-align: center;
}

.total-pagar p {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.9rem;
}

.total-pagar h4 {
  margin: 0;
  font-size: 1.5rem;
}

/* Estilos para los detalles de pago */
.detalle-pago {
  margin-bottom: 15px;
  width: 100%;
}

.item-pago {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.item-pago span {
  color: #aaa;
}

.item-pago strong {
  color: var(--text-light);
  font-weight: 500;
}

.total-pagar {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid var(--gold);
  text-align: center;
}

.total-pagar p {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.9rem;
}

.total-pagar h4 {
  margin: 0;
  font-size: 1.5rem;
}

.tasa {
  color: var(--gold);
  font-size: 0.9em;
  font-weight: normal;
}