/* ==========================================
   HOJA DE ESTILOS - LANDING PAGE (home.css)
   ========================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #38bdf8;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #ffffff;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* HEADER / NAVBAR */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-container span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

/* BOTÓN HAMBURGUESA */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  position: relative;
  z-index: 1100;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  border-radius: 3px;
  background: var(--dark);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.hamburger-icon {
  top: 19px;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

.hamburger-btn.active .hamburger-icon {
  background: transparent;
}

.hamburger-btn.active .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--primary);
}

.hamburger-btn.active .hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--primary);
}

.btn-nav-login {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.btn-nav-login:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* HERO SECTION */
.hero {
  padding: 140px 5% 80px 5%;
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 90vh;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dbeafe;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary-hero {
  background: var(--primary);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: background 0.2s, transform 0.2s;
}

.btn-primary-hero:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary-hero {
  background: white;
  color: var(--dark);
  border: 1px solid var(--border);
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary-hero:hover {
  background: var(--light);
  border-color: var(--gray);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-banner {
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.hero-img-banner:hover {
  transform: scale(1.02);
}

.hero-card-mockup {
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 450px;
}

/* SECTIONS GENERALES */
section {
  padding: 90px 5%;
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--gray);
}

/* CARACTERÍSTICAS / MÓDULOS */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 35px 30px;
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  background: white;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #dbeafe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ROLES / PERFILES */
.roles-section {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.role-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.role-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
}

.role-box h3 span {
  color: var(--primary);
}

.role-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.role-box li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gray);
}

.role-box li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
}

/* BENEFICIOS / VENTAJAS */
.benefits-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.benefits-text {
  flex: 1;
  min-width: 300px;
  max-width: 800px;
  margin: 0 auto;
}

.benefits-text h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  text-align: center;
}

.benefit-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  background: var(--light);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.benefit-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark);
}

.benefit-item p {
  font-size: 0.95rem;
  color: var(--gray);
}

/* CTA FINAL */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
  border-radius: 24px;
  margin: 0 5% 80px 5%;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.btn-cta {
  background: var(--primary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: background 0.2s, transform 0.2s;
}

.btn-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  padding: 40px 5%;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
}

footer img {
  height: 35px;
  width: auto;
  margin-bottom: 15px;
  display: inline-block;
}

footer p {
  margin: 5px 0;
}

footer a {
  color: var(--primary);
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding-top: 120px;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero h1 {
    font-size: 2.3rem;
  }

  /* Muestra el botón hamburguesa y oculta la navegación horizontal */
  .hamburger-btn {
    display: block;
  }

  nav {
    position: static;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    padding: 100px 30px 40px 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1050;
  }

  nav ul.nav-open {
    transform: translateX(0);
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  nav ul li a {
    display: block;
    padding: 16px 0;
    font-size: 1.05rem;
  }

  nav ul li:last-child {
    border-bottom: none;
    margin-top: 12px;
  }

  .btn-nav-login {
    display: inline-block;
    text-align: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 6%;
  }
  .hero {
    padding: 110px 6% 60px 6%;
  }
  .hero-img-banner {
    max-width: 180px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .cta-banner {
    margin: 0 6% 60px 6%;
    padding: 60px 20px;
  }
  .cta-banner h2 {
    font-size: 1.8rem;
  }
}

/* Fondo oscuro (overlay) tras el menú móvil abierto */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.nav-open {
  display: block;
  opacity: 1;
}

body.no-scroll {
  overflow: hidden;
}

/* ==========================================
   ESTILOS MEJORADOS DEL FOOTER
   ========================================== */

footer {
  background: #0f172a; /* Fondo oscuro elegante acorde al branding */
  color: #94a3b8;
  padding: 50px 5% 30px 5%;
  border-top: 1px solid #1e293b;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
  filter: brightness(0) invert(1); /* Vuelve el logo blanco si es necesario o remueve esta línea si tu logo ya tiene color */
}

.footer-brand p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

/* Redes Sociales */
.footer-social {
  display: flex;
  gap: 16px;
  margin: 5px 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Créditos */
.footer-credits {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 6px;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-logo-krysweb {
  height: 28px; 
  width: auto;
  object-fit: contain;
  margin-bottom: 2px;
  filter: brightness(0) invert(1); 
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-logo-krysweb:hover {
  opacity: 1;
}

.footer-credits strong {
  color: #cbd5e1;
}

.footer-credits a {
  color: #38bdf8;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-credits a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Responsivo para pantallas grandes (opcional layout en fila) */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  
  .footer-brand {
    text-align: left;
  }
  
.footer-credits {
    align-items: flex-start; 
    text-align: left;
  }
}

/* ==========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================== */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease-in-out;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
    font-size: 28px;
  }
}

/* ==========================================
   ESTILOS DEL FOOTER Y COLUMNA DE CONTACTO
   ========================================== */

footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 5% 40px 5%;
  border-top: 1px solid #1e293b;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  align-items: flex-start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

/* Redes Sociales */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Lista de Contacto */
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-contact-list li i {
  color: var(--accent);
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

.footer-contact-list a {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-contact-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Créditos */
.footer-credits {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo-krysweb {
  height: 28px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-logo-krysweb:hover {
  opacity: 1;
}

.footer-credits strong {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-credits a {
  color: #38bdf8;
  font-weight: 500;
  transition: color 0.2s;
  margin-top: 2px;
}

.footer-credits a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* ==========================================
   ESTILOS DE LA SECCIÓN PLANES
   ========================================== */

.plans-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.plan-card {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 40px 35px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  background: white;
  border-color: var(--primary);
}

.plan-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary);
}

/* Estilo del precio idéntico al título (h3) */
.plan-card .plan-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.plan-card .plan-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
}

.plan-card p {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.5;
}

.plan-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.plan-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gray);
}

.plan-card li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
}