/* ==============================
   VARIABLES Y RESET (PALETA DE IMPACTO)
   ============================== */
:root {
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;

  /* Paleta Inyectada */
  --color-1: #f2466d; /* Fucsia vibrante (CTA Principal) */
  --color-2: #191a38; /* Azul marino oscuro (Fondo Principal) */
  --color-3: #e0e0e6; /* Gris claro/blanco (Texto General) */
  --color-4: #48203f; /* Ciruela oscuro (Fondo Secundario) */
  --color-5: #762f4f; /* Magenta apagado (Bordes/Hover) */
  --color-6: #d34c72; /* Rosa suave (Acentos) */
  --color-7: #a43e64; /* Rosa oscuro (Acentos secundarios) */

  --color-bg: var(--color-2);
  --color-bg-alt: var(--color-4);
  --color-text: var(--color-3);
  --color-heading: #ffffff;
  --color-primary: var(--color-1);
  --color-secondary: #a8a8b8; /* Gris azulado para subtítulos */
  
  /* Elementos UI */
  --card-bg: rgba(224, 224, 230, 0.03);
  --card-border: rgba(118, 47, 79, 0.5);

  --fs-body: 1rem;
  --fs-h1: 2.5rem;
  --fs-h2: 2rem;
  --fs-h3: 1.25rem;
  --fs-subheading: 1.125rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Efecto Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tipografía */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  margin-top: 0;
}

h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }

/* Botones de Impacto */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn.primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(242, 70, 109, 0.3);
}
.btn.primary:hover {
  background: var(--color-6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 70, 109, 0.5);
}
.btn-large {
  width: 100%;
  font-size: 1.125rem;
  padding: 1.2rem;
}
.small-text {
  display: block;
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin-top: 0.5rem;
}

/* Grillas Responsivas */
.grid-2, .grid-4 {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==============================
   HEADER
   ============================== */
.header {
  background: rgba(25, 26, 56, 0.95); 
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-5);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header .logo {
  display: flex;
  align-items: center;
}
.header img {
  height: 40px;
  margin-right: 10px;
}
.text_logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--color-heading);
  letter-spacing: 1px;
}
.logo span {
  color: var(--color-primary);
}
.navbar ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.navbar a:hover {
  color: var(--color-primary);
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
  padding: 5rem 0;
  background: radial-gradient(circle at top center, var(--color-4), var(--color-2) 70%);
  text-align: center;
}
.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-subtitle {
  font-size: var(--fs-subheading);
  color: var(--color-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}
.diagram-box {
  background: rgba(25, 26, 56, 0.5);
  border: 1px dashed var(--color-1);
  padding: 1.5rem;
  border-radius: 8px;
  display: inline-block;
  margin: 2.5rem auto;
  font-weight: 600;
  color: var(--color-3);
  box-shadow: 0 0 20px rgba(242, 70, 109, 0.1);
  letter-spacing: 1px;
}
.trust-text {
  font-size: 0.95rem;
  color: var(--color-secondary);
  max-width: 500px;
  margin: 1.5rem auto 0;
  text-align: left;
}
.trust-text i { color: var(--color-1); margin-right: 8px; }
.trust-text p { margin: 0.5rem 0; }

/* ==============================
   SECCIONES GENÉRICAS
   ============================== */
.section-pad { padding: 5rem 0; }
.bg-alt { background-color: var(--color-bg); }
.text-center { text-align: center; }
.section-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ==============================
   TARJETAS
   ============================== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-1);
}
.card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--color-1);
  text-shadow: 0 0 15px rgba(242, 70, 109, 0.4);
}
.card i {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-1);
  text-shadow: 0 0 15px rgba(242, 70, 109, 0.4);
}
.paso-num {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-7);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.check-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.check-list li {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.02);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--color-1);
}
.check-list li i {
  color: var(--color-1);
  margin-top: 0.25rem;
}

/* ==============================
   FORMULARIO 
   ============================== */
.form-wrapper {
  background: var(--color-2);
  border: 1px solid var(--color-5);
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  text-align: left;
  position: relative;
}
.form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-1), var(--color-6));
  border-radius: 16px 16px 0 0;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--color-3);
}
.form-control {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-5);
  background: rgba(224, 224, 230, 0.05);
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
}
.form-control::placeholder {
  color: var(--color-secondary);
  opacity: 0.7;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-1);
  background: rgba(224, 224, 230, 0.1);
}
select.form-control option {
  background: var(--color-2);
  color: var(--color-text);
}
.options-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.options-group label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  color: var(--color-secondary);
  transition: color 0.3s;
}
.options-group label:hover {
  color: var(--color-3);
}
input[type="radio"], input[type="checkbox"] {
  accent-color: var(--color-1);
  width: 18px;
  height: 18px;
}

/* ==============================
   MODAL
   ============================== */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  inset: 0;  
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 2rem;
  overflow-y: auto;
}
.modal-content {
  background-color: var(--color-2);
  padding: 2rem;
  border: 1px solid var(--color-5);
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  color: var(--color-text);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-1);
}
.modal-body {
  line-height: 1.6;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ==============================
   CREDIBILIDAD Y FAQ
   ============================== */
.tags {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.tag {
  display: flex;
  align-items: center;
  background: rgba(118, 47, 79, 0.3);
  border: 1px solid var(--color-5);
  color: var(--color-3);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.tag svg, .tag i {
  width: 16px;
  height: 16px;
  color: var(--color-6);
  margin-right: 8px;
}
.faq-item {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem 2rem;
  border-radius: 8px;
}
.faq-item h4 {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-3);
}
.faq-item p { 
  margin: 0; 
  color: var(--color-secondary);
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--color-2);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-5);
  color: var(--color-secondary);
}
.ft-container {
  display: flex;
  flex-direction: column; 
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}
.logo-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.logo-brand span {
  color: var(--color-primary);
}

.footer img {
  height: 35px;
  width: auto;
}
.logo-footer p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.8;
}
.footer-links {
  display: flex;
  flex-direction: column; 
  gap: 1rem;
}
.footer-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--color-1);
}
.footer-copy p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

/* ==============================
   MEDIA QUERIES
   ============================== */
@media (min-width: 768px) {
  :root {
    --fs-h1: 3.5rem;
    --fs-h2: 2.5rem;
  }
  .ft-container {
    flex-direction: row; 
    justify-content: space-between; 
    align-items: flex-start;
    text-align: left;
  }
  .logo-brand {
    justify-content: flex-start;
  }
  .footer-copy {
    align-self: flex-start; 
  }
  .trust-text { 
    text-align: center; 
  }
}
@media (max-width: 767px) {
  .navbar ul { display: none; }
  .form-wrapper { padding: 2rem 1.25rem; }
  .hero { padding: 3rem 0; }
}
