﻿/* --- ESTILOS GENERALES (Mantenemos su identidad) --- */
:root {
  --primary-blue: #044bab;
  --primary-dark: #022a61;
  --accent-yellow: #f3d136;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --bg-light: #f8f9fa;
  --success: #10b981;
  --danger: #ef4444;
}

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

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

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 5px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* NAVBAR MOVIDO A CSS/NAVBAR.CSS */

/* HERO SECTION MEJORADO */
.hero {
  min-height: 100vh;
  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: 0 5%;
  position: relative;
  overflow: hidden;
}

.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.25;
  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;
}

.btn-cta {
  padding: 1.3rem 4rem;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--accent-yellow) 0%, #e0c02b 100%);
  color: var(--primary-dark);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 35px rgba(243, 209, 54, 0.4);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.6s;
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
  width: 300px;
  height: 300px;
}

.btn-cta:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 45px rgba(243, 209, 54, 0.6),
    0 0 20px rgba(243, 209, 54, 0.4);
}

.btn-cta:active {
  transform: translateY(-5px) scale(1.02);
}

/* --- ANALIZADOR INTELIGENTE (ESTILOS MEJORADOS) --- */
.analyzer-section {
  position: relative;
  margin-top: -80px;
  z-index: 20;
  padding: 0 5% 4rem;
}

.scanner-box {
  background: var(--white);
  border-radius: 30px;
  padding: 3.5rem;
  box-shadow: 0 25px 70px -10px rgba(4, 75, 171, 0.2);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.scanner-box:hover {
  box-shadow: 0 30px 80px -10px rgba(4, 75, 171, 0.25);
  transform: translateY(-5px);
}

.scanner-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--accent-yellow),
    var(--primary-blue)
  );
  background-size: 200% auto;
  animation: gradientSlide 3s linear infinite;
}

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

.drop-zone {
  border: 3px dashed #cbd5e1;
  border-radius: 24px;
  padding: 50px 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8fafc;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.drop-zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(4, 75, 171, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.drop-zone:hover::before {
  left: 100%;
}

.drop-zone:hover {
  border-color: var(--primary-blue);
  background: #eff6ff;
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(4, 75, 171, 0.1);
}

.drop-zone.dragover {
  border-color: var(--success);
  background: #dcfce7;
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
}

.scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 20;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.scan-line {
  width: 80%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--success), transparent);
  box-shadow: 0 0 25px var(--success);
  margin-bottom: 20px;
  animation: scanMove 1.5s infinite alternate;
  border-radius: 10px;
}

@keyframes scanMove {
  from {
    width: 20%;
    opacity: 0.5;
  }

  to {
    width: 90%;
    opacity: 1;
  }
}

.scan-result {
  display: none;
  margin-top: 30px;
  text-align: left;
  animation: fadeUp 0.5s forwards;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 auto 20px;
  color: var(--text-dark);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.score-circle:hover {
  transform: scale(1.1) rotate(5deg);
}

.score-label {
  position: absolute;
  bottom: 25px;
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.check-item {
  padding: 15px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: all 0.3s ease;
  transform: translateX(-10px);
  opacity: 0;
  animation: slideInRight 0.4s forwards;
}

.check-item:nth-child(1) {
  animation-delay: 0.1s;
}

.check-item:nth-child(2) {
  animation-delay: 0.2s;
}

.check-item:nth-child(3) {
  animation-delay: 0.3s;
}

.check-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.check-item:hover {
  transform: translateX(5px);
}

.check-item.good {
  background: linear-gradient(135deg, #dcfce7 0%, #a7f3d0 100%);
  color: #166534;
}

.check-item.bad {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

.check-item.warn {
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
  color: #854d0e;
}

/* SERVICIOS CON EFECTOS 3D */
.services-section {
  padding: 4rem 5% 12rem;
  background-color: var(--bg-light);
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 4rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
  animation: fadeInUp 0.8s ease;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
  margin: 20px auto 0;
  border-radius: 10px;
  box-shadow: 0 0 15px var(--accent-yellow);
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 30px;
  text-align: left;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.reveal {
  animation: cardReveal3D 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardReveal3D {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.02);
  box-shadow: 0 30px 60px rgba(4, 75, 171, 0.2), 0 15px 25px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
  transform: scaleX(1);
}

.card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s;
}

.card:hover::after {
  animation: shine 1.5s ease-in-out;
}

@keyframes shine {
  0% {
    top: -50%;
    right: -50%;
  }

  100% {
    top: 150%;
    right: 150%;
  }
}

.card i {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(4, 75, 171, 0.1),
    rgba(4, 75, 171, 0.05)
  );
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover i {
  background: var(--primary-blue);
  color: var(--white);
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 10px 25px rgba(4, 75, 171, 0.3);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  transition: color 0.3s;
}

.card:hover h3 {
  color: var(--primary-blue);
}

.card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: auto;
  padding-top: 20px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--accent-yellow)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent-yellow);
  color: var(--primary-dark);
  padding: 10px 25px;
  font-size: 0.85rem;
  font-weight: 800;
  border-bottom-left-radius: 20px;
  box-shadow: 0 5px 15px rgba(243, 209, 54, 0.4);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.badge.new {
  background: var(--success);
  color: white;
}

.btn-card {
  margin-top: 15px;
  display: block;
  text-align: center;
  padding: 1.1rem;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-blue);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-card:hover::before {
  left: 0;
}

.btn-card:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(4, 75, 171, 0.3);
}

/* --- ESTILOS TESTIMONIOS MEJORADOS --- */
.testimonials-section {
  padding: 8rem 5% 6rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  color: var(--white);
  text-align: center;
  margin-top: 0;
  position: relative;
  clip-path: polygon(0 50px, 100% 0, 100% 100%, 0% 100%);
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(243, 209, 54, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  position: relative;
  z-index: 1;
}

.review-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2.5rem;
  border-radius: 25px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.review-card:hover {
  transform: translateY(-10px) scale(1.03);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.review-stars {
  color: var(--accent-yellow);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.review-stars i {
  animation: starTwinkle 2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.1s);
}

.review-stars i:nth-child(1) {
  --i: 1;
}

.review-stars i:nth-child(2) {
  --i: 2;
}

.review-stars i:nth-child(3) {
  --i: 3;
}

.review-stars i:nth-child(4) {
  --i: 4;
}

.review-stars i:nth-child(5) {
  --i: 5;
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

.review-text {
  font-style: italic;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.review-author {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* FOOTER MEJORADO */
footer {
  background: linear-gradient(to bottom, var(--primary-dark), #001a40);
  color: var(--white);
  padding: 5rem 5% 2rem;
  text-align: center;
  clip-path: polygon(0 50px, 100% 0, 100% 100%, 0% 100%);
  margin-top: -100px;
  padding-top: 10rem;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
}

.footer-col h4 {
  color: var(--accent-yellow);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-yellow);
  border-radius: 5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.footer-col ul li:hover {
  transform: translateX(5px);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-col a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  transition: width 0.3s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col a:hover::before {
  width: 100%;
}

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

.footer-logo:hover {
  transform: scale(1.1) rotate(5deg);
  filter: brightness(0) invert(1) opacity(1)
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

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

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

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

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--white);
  cursor: pointer;
  margin-right: 20px;
  z-index: 1002;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* NOTIFICACIONES */
.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
}

.toast {
  background: rgba(4, 75, 171, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1.2rem 2rem;
  border-radius: 15px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateX(150%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 5px solid var(--accent-yellow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast.show {
  transform: translateX(0);
}

.toast i {
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    background: rgba(4, 75, 171, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .card {
    transform: none !important;
  }

  .card:hover {
    transform: translateY(-10px) !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .scanner-box {
    padding: 2.5rem 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .testimonials-section {
    padding: 6rem 5% 4rem;
  }

  .review-card {
    padding: 2rem;
  }

  .footer-content {
    gap: 2rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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