﻿/* --- VARIABLES --- */
:root {
  --primary-blue: #044bab;
  --primary-dark: #022a61;
  --accent-yellow: #f3d136;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --glass-border: rgba(255, 255, 255, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* --- NAVBAR ESTILOS MOVIDOS A CSS/NAVBAR.CSS --- */
/* Manteniendo solo estilos específicos de la página no relacionados con navbar */
/* (Se removieron reglas duplicadas de navbar para limpieza, pero se mantienen las variables y otros estilos específicos) */

/* --- HERO SECTION (Ajustado para no tocar el slider) --- */
.hero {
  min-height: 60vh;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-dark) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 150px 5% 0; /* Espacio para navbar fijo */
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 86, 179, 0.8) 0%,
    transparent 70%
  );
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(243, 209, 54, 0.2) 0%,
    transparent 70%
  );
  bottom: 10%;
  right: -5%;
  animation: float 10s ease-in-out infinite reverse;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(5deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }
}

.hero-content {
  z-index: 10;
  max-width: 900px;
  position: relative;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.2s;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #ffffff 50%,
    var(--accent-yellow) 75%,
    #ffffff 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s forwards 0.2s, shimmer 3s linear infinite;
  letter-spacing: -1px;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.4s;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --- SLIDER "SCANNER" (Separado totalmente) --- */
.comparison-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 100px;
  /* Margen positivo arriba (50px) para separarlo */
  padding: 20px;
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.comparison-container {
  position: relative;
  width: 100%;
  height: 550px;
  background: #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  cursor: col-resize;
}

.img-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.layer-after {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  width: 50%;
  z-index: 2;
  border-right: 3px solid var(--accent-yellow);
}

.layer-before {
  background: #cbd5e1;
  width: 100%;
  z-index: 1;
}

/* Mockup styles removed as they are replaced by images */

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: var(--accent-yellow);
  border: 4px solid var(--white);
  border-radius: 50%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 0 4px rgba(243, 209, 54, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.badge-float {
  position: absolute;
  top: 30px;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.badge-before {
  left: 30px;
  background: #fff;
  color: var(--text-light);
}

.badge-after {
  right: 30px;
  background: var(--primary-blue);
  color: var(--white);
}

/* --- CONTACT SECTION --- */
.contact-section {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.info-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-desc {
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-card {
  background: var(--white);
  padding: 25px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: 0.3s;
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -5px rgba(4, 75, 171, 0.1);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: #e6effa;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.card-text h4 {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2px;
}

.card-text p {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.form-panel {
  background: var(--white);
  padding: 3rem;
  border-radius: 30px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--white);
  position: relative;
  overflow: hidden;
}

.form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-field {
  width: 100%;
  padding: 15px 20px;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-dark);
  transition: 0.3s;
  outline: none;
}

.input-field:focus {
  background: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(4, 75, 171, 0.1);
}

.input-label {
  position: absolute;
  left: 20px;
  top: 15px;
  color: #9ca3af;
  pointer-events: none;
  transition: 0.3s;
}

.input-field:focus ~ .input-label,
.input-field:not(:placeholder-shown) ~ .input-label {
  top: -10px;
  left: 15px;
  font-size: 0.8rem;
  color: var(--primary-blue);
  background: var(--white);
  padding: 0 5px;
  font-weight: 600;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

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

/* --- FOOTER --- */
footer {
  background: linear-gradient(
    to bottom,
    var(--primary-blue),
    var(--primary-dark)
  );
  color: var(--white);
  padding: 4rem 5% 2rem;
  text-align: center;
  margin-top: auto;
}

.copyright {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Animación Logo Footer --- */
.footer-logo {
  height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.8);
  transition: all 0.4s ease;
  animation: float-logo 6s ease-in-out infinite;
}

.footer-logo:hover {
  transform: scale(1.05);
  filter: brightness(0) invert(1) opacity(1)
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes float-logo {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  margin-right: 20px;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  /* Estilos de navbar movidos a css/navbar.css */

  .contact-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .comparison-container {
    height: 350px;
  }

  /* Estilos de navbar nav y logo-img movidos a css/navbar.css */
}

@media (max-width: 480px) {
  .hero-section {
    padding: 120px 5% 80px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .comparison-wrapper {
    margin: 30px auto 60px;
    padding: 15px;
  }

  .comparison-container {
    height: 250px;
  }

  .mockup-content {
    padding: 20px;
  }

  .info-title {
    font-size: 2rem;
  }

  .form-panel {
    padding: 2rem;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
