/* ==========================================
   1. VARIABLES Y ESTILOS GLOBALES
   ========================================== */
:root {
  --primary: #FF6B35;
  --secondary: #2D2D2D;
  --light: #F5F5F5;
  --dark: #333333;
  --gray: #777777;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ==========================================
   2. COMPONENTES COMUNES
   ========================================== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: #e55a2b;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--primary);
}

.section-title p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================
   3. HEADER Y NAVEGACIÓN
   ========================================== */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.logo-img {
  height: 52px;
  margin-right: 10px;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

header nav ul li a {
  display: block;
  padding: 8px 14px;
  font-weight: 500;
  color: #222;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

header nav ul li a:hover {
  background: rgba(0,0,0,0.05);
  color: var(--primary);
}

.has-submenu { position: relative; }
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  display: none;
  z-index: 9999;
}

.submenu li a { padding: 12px 20px; white-space: nowrap; }
.has-submenu:hover > .submenu { display: block; }

.mobile-menu-btn {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* ==========================================
   4. HERO Y SLIDER
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slider .slide.active { opacity: 1; }

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  width: 100%;
}

.hero h1, .hero p { color: white; }

.slide-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  max-width: 500px;
  z-index: 2;
}

.slide-content h2 { font-size: 3rem; margin-bottom: 15px; }
.slide-content p { font-size: 1.2rem; margin-bottom: 25px; }
.slide-content.center { left: 50%; transform: translate(-50%, -50%); text-align: center; }
.slide-content.left { left: 10%; text-align: left; }
.slide-content.right { right: 10%; text-align: right; }

/* ==========================================
   5. SECCIONES DE SERVICIOS (PC FIX)
   ========================================== */
.service-hero {
  padding: 160px 0 120px;
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

/* CORRECCIÓN: Cambiado de block a grid para mostrar columnas */
.service-hero-grid, .service-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.service-hero-text h1 { font-size: 3rem; margin-bottom: 20px; color: var(--secondary); }
.service-hero-text p { font-size: 1.15rem; color: #555; margin-bottom: 30px; line-height: 1.7; }

.service-hero-media img, .service-media img {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.service-section { padding: 60px 0; background-color: #ffffff; }

.service-text h2 { font-size: 2.2rem; margin-bottom: 25px; color: var(--secondary); }
.service-list { list-style: none; padding: 0; margin-bottom: 25px; }
.service-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: #444;
}
.service-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Efecto Espejo (Imagen Izquierda, Texto Derecha) */
.service-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}
.service-grid.reverse .service-text { order: 2; }
.service-grid.reverse .service-media { order: 1; }

/* ==========================================
   6. PLANES DE HOSTING
   ========================================== */
.plans-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.plan {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  transition: transform 0.3s ease;
}

.plan:hover { transform: translateY(-10px); }
.plan.featured { border-top: 5px solid var(--primary); }
.plan-icon { font-size: 40px; color: var(--primary); margin-bottom: 20px; }
.plan h3 { font-size: 1.5rem; margin-bottom: 15px; }
.plan-price { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--gray); }
.plan-features { margin: 25px 0; }
.plan-features li { padding: 8px 0; border-bottom: 1px solid #eee; }

/* ==========================================
   7. SERVICIOS ADICIONALES Y CARDS
   ========================================== */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service:hover { transform: translateY(-10px); }
.service-img { height: 200px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
.service-img img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px 10px 0 0; }
.service-content { padding: 25px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transform-origin: top;
  transition: transform 0.5s ease, box-shadow 0.5s;
}

.service-card:hover { transform: rotateX(15deg); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.service-card i { font-size: 40px; color: var(--primary); margin-bottom: 20px; }

/* ==========================================
   8. FOOTER Y WHATSAPP
   ========================================== */
footer {
  background: var(--secondary);
  color: white;
  padding: 50px 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.whatsapp-float {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 60px; height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
  z-index: 100;
  transition: all 0.3s ease;
}

.whatsapp-float:hover { transform: scale(1.1); background: #128C7E; }

#vanta-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

/* ==========================================
   9. RESPONSIVE (MÓVIL)
   ========================================== */
@media (max-width: 992px) {
  .mobile-menu-btn { display: block; }

  header nav {
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
  }

  header nav.active { display: block; opacity: 1; transform: translateY(0); }
  header nav ul { flex-direction: column; gap: 18px; padding: 24px 0; }
  
  .has-submenu.open > .submenu { display: block; position: static; box-shadow: none; }

  /* Grid a una columna en móviles */
  .service-hero-grid, .service-grid, .service-grid.reverse {
    display: block;
    text-align: center;
  }

  .service-grid.reverse .service-text, .service-grid.reverse .service-media {
    order: initial;
  }

  .service-media { margin-top: 30px; }
  .service-hero-text h1 { font-size: 2.2rem; }
  .service-list li { text-align: left; }

  .slide-content {
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 20px;
    width: 100%;
  }
}
/* ==========================================
   6. SECCIÓN FINAL CTA (SOLUCIÓN IMAGEN) - NUEVA SECCIÓN
   ========================================== */
.service-cta {
  padding: 100px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 50%, #ffffff 100%);
}

.service-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-cta h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: var(--secondary);
}

.service-cta p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 35px;
  max-width: 800px;
}