/* ===== RESET Y VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #28478d;
  --primary-dark: #1a2f5f;
  --primary-light: #3a5ba8;
  --accent-color: #ff6b35;
  --bg-dark: #0b0b0b;
  --bg-darker: #000000;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #333333;
  --gradient-hero: linear-gradient(135deg, rgba(40, 71, 141, 0.9) 0%, rgba(11, 11, 11, 0.95) 100%);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(40, 71, 141, 0.3);
}

/* ===== ESTILOS GENERALES ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-light);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

.header-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: var(--shadow-glow);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(40, 71, 141, 0.5);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(40, 71, 141, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-img {
  position: absolute;
  top:0;

  max-width: 1200px;
  height: stretch;
}

.hero-content {
  border-radius: 50px;
  position: relative;
  background-color: rgba(0, 0, 0, 0.2);
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInDown 1s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--primary-light);
  font-weight: 700;
  margin-bottom: 15px;
  animation: slideInUp 1s ease-out 0.2s both;
  
}

.hero-description {
      font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  animation: slideInUp 1s ease-out 0.4s both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BOTONES CTA ===== */
.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--text-primary);
  padding: 16px 40px;
  margin-top: 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  animation: slideInUp 1s ease-out 0.6s both;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta:hover::before {
  left: 100%;
}

.cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 40px rgba(40, 71, 141, 0.6);
}

.cta-large {
  padding: 20px 50px;
  font-size: 1.2rem;
}

.cta-container {
  text-align: center;
  margin-top: 40px;
}

/* ===== SECCIONES ===== */
.section {
  overflow: hidden;
  z-index: 1;
  background: var(--bg-dark);
}

.section-arriba {
  position: relative;
  font-weight: 700;
}

#beneficios > .cards {
  grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
}

.section-dark {
  background: var(--bg-darker);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-cta-final {
  position: relative;
  background: linear-gradient(135deg, var(--bg-darker) 0%, #1a1a2e 100%);
  text-align: center;
  padding: 100px 20px;
}

.section-img {
  position: absolute;
  top:0;
  left: 0;
  max-width: 1200px;
    height: stretch;
}

/* ===== TARJETAS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 16px;
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.4s;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
  border-color: var(--primary-color);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: grayscale(50%);
  transition: all 0.3s;
}

.card:hover .card-icon {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== TARJETAS DE PLANES ===== */
.card-plan {
  text-align: center;
  position: relative;
}

.card-featured {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 30px rgba(40, 71, 141, 0.3);
}

.featured-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: linear-gradient(135deg, var(--accent-color), #ff8c5a);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* ===== TESTIMONIOS ===== */
.testimonials {
  max-width: 900px;
  margin: 50px auto 0;
  display: grid;
  gap: 30px;
}

.testimonial {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 16px;
  border-left: 4px solid var(--primary-color);
  position: relative;
  transition: all 0.3s;
}

.testimonial:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-card);
}

.testimonial-quote {
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
  line-height: 0;
  margin-bottom: 20px;
}

.testimonial p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-style: italic;
}

.testimonial strong {
  color: var(--primary-light);
}

/* ===== MAPA ===== */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: 40px;
}

.map {
  width: 100%;
  height: 450px;
  border: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-darker);
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-light);
}

.footer p {
  color: var(--text-secondary);
  max-width: 800px;
  margin: 20px auto;
  line-height: 1.8;
}

.footer strong {
  color: var(--text-primary);
}

.footer-copy {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

/* ===== BOTÓN WHATSAPP ===== */
.whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s;
}

.whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .nav-menu {
    display: none;
  }
  
  section {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
    .hero {
    height: 70vh;
  }
  .hero-title {
    font-size: 2rem;
  }
  
  .cta {
    padding: 14px 30px;
    font-size: 1rem;
  }
  .header-cta {
  padding: 8px 11px;
  }
  .header-container {
    padding: 10px;
  }
  .hero-title .section-title {
    line-height: 35px;
  }
  .hero-content, .hero-description, .hero-subtitle {
    padding: 0;
    margin: 0;
  }

  .section {
    padding-bottom: 20px;
  }

  .section-cta-final {
    padding: 30px 20px;
  }

  .card {
    padding: 20px;
  }

  .cta-container {
    margin: 0;
  }
  .card-icon{
    margin: 0;
  }
  .featured-badge {
    top: -2px;
  }
}


/* REDES SOCIALES */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 40px;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.social-link svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.social-link:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(40, 71, 141, 0.4);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover {
  color: white;
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* Colores específicos para cada red social */
.social-link:nth-child(1):hover {
  border-color: #1877f2;
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.social-link:nth-child(1):hover::before {
  background: #1877f2;
}

.social-link:nth-child(2):hover {
  border-color: #e4405f;
  box-shadow: 0 8px 20px rgba(228, 64, 95, 0.4);
}

.social-link:nth-child(2):hover::before {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link:nth-child(3):hover {
  border-color: #000000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.social-link:nth-child(3):hover::before {
  background: #000000;
}

.social-link:nth-child(4):hover {
  border-color: #25D366;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.social-link:nth-child(4):hover::before {
  background: #25D366;
}