/* === ESTILOS GENERALES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root {
  --azul-principal: #1FADDB;
  --azul-oscuro: #0b2b3d;
  --amarillo: #F2B705;
  --verde-whatsapp: #25D366;
  --blanco: #ffffff;
  --gris-fondo: #f8fafc;
  --gris-borde: #e2e8f0;
  --texto-oscuro: #1e293b;
  --sombra-suave: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
  --sombra-media: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.02);
  --sombra-fuerte: 0 25px 50px -12px rgba(0,0,0,0.25);
  --border-radius: 32px;
}

body {
  background-color: var(--blanco);
  color: var(--texto-oscuro);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 2rem;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--amarillo);
  border-radius: 4px;
  animation: subrayado 1.5s ease-in-out infinite alternate;
}

@keyframes subrayado {
  from { width: 80px; opacity: 0.7; }
  to { width: 120px; opacity: 1; }
}

@media (max-width: 768px) { h2 { font-size: 2rem; } }

/* === ANIMACIONES GLOBALES === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Aplicar animaciones a secciones */
section {
  animation: fadeInUp 1s ease-out;
}

.hero-grid > div:first-child {
  animation: fadeInLeft 1s ease-out;
}

.hero-grid > div:last-child {
  animation: fadeInRight 1.2s ease-out;
}

/* === HEADER === */
.site-header {
  background-color: var(--azul-oscuro);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sombra-media);
  animation: fadeInUp 0.8s ease-out;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s;
}

.logo-area:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 2.2rem;
  background-color: var(--amarillo);
  color: var(--azul-oscuro);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.logo-text {
  font-weight: 700;
  font-size: 1.4rem;
  color: white;
}

.logo-text span {
  color: var(--amarillo);
}

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amarillo);
  transition: width 0.3s;
}

.nav-menu a:hover:after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--amarillo);
  transform: translateY(-2px);
}

.btn-ws-header {
  background-color: var(--verde-whatsapp);
  color: white;
  padding: 10px 24px;
  border-radius: 60px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--sombra-suave);
  transition: all 0.3s;
  text-decoration: none;
  animation: pulse 2s ease-in-out infinite;
}

.btn-ws-header:hover {
  background-color: #20bd5a;
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--sombra-fuerte);
}

/* === HERO SECTION === */
.hero-section {
  padding: 60px 0 80px;
  background: linear-gradient(145deg, #ffffff 0%, #e6f3fa 100%);
  position: relative;
  overflow: hidden;
}

.hero-section:before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(31,173,219,0.1) 0%, transparent 70%);
  animation: rotate 60s linear infinite;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--azul-oscuro);
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--azul-principal);
  position: relative;
  display: inline-block;
}

.hero-title span:after {
  content: '⚡';
  position: absolute;
  top: -20px;
  right: -30px;
  font-size: 2rem;
  animation: pulse 1s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #334155;
  margin-bottom: 32px;
  max-width: 600px;
  animation: fadeInUp 1.2s ease-out;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 40px 0 32px;
}

.btn-llamar, .btn-whatsapp {
  padding: 18px 36px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--sombra-media);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-llamar:before, .btn-whatsapp: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-llamar:hover:before, .btn-whatsapp:hover:before {
  width: 300px;
  height: 300px;
}

.btn-llamar {
  background-color: var(--amarillo);
  color: #0f172a;
}

.btn-llamar:hover {
  background-color: #e0a505;
  transform: scale(1.02) translateY(-2px);
  box-shadow: var(--sombra-fuerte);
}

.btn-whatsapp {
  background-color: var(--verde-whatsapp);
  color: white;
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  transform: scale(1.02) translateY(-2px);
  box-shadow: var(--sombra-fuerte);
}

.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  background: white;
  padding: 8px 20px;
  border-radius: 60px;
  font-weight: 500;
  box-shadow: var(--sombra-suave);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--gris-borde);
  transition: all 0.3s;
  animation: fadeInUp 1s ease-out backwards;
}

.badge:nth-child(1) { animation-delay: 0.2s; }
.badge:nth-child(2) { animation-delay: 0.4s; }
.badge:nth-child(3) { animation-delay: 0.6s; }
.badge:nth-child(4) { animation-delay: 0.8s; }

.badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--sombra-media);
  border-color: var(--azul-principal);
}

.hero-image-wrapper {
  background: linear-gradient(145deg, #ffeec2, #ffe6b3);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--sombra-media);
  border: 4px solid white;
  text-align: center;
  transition: all 0.3s;
  animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: var(--sombra-fuerte);
}

.hero-image-wrapper img {
  width: 100%;
  max-width: 550px;
  border-radius: 24px;
  box-shadow: var(--sombra-suave);
  transition: all 0.3s;
}

.hero-image-wrapper img:hover {
  transform: scale(1.02);
}

/* === SECCIÓN PROBLEMAS === */
.section-problemas {
  padding: 80px 0;
  background-color: var(--gris-fondo);
  position: relative;
}

.problemas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.problema-card {
  background: white;
  border-radius: 80px;
  padding: 24px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: var(--sombra-suave);
  transition: all 0.3s;
  border: 1px solid var(--gris-borde);
  animation: fadeInUp 1s ease-out backwards;
  cursor: pointer;
}

.problema-card:nth-child(1) { animation-delay: 0.1s; }
.problema-card:nth-child(2) { animation-delay: 0.2s; }
.problema-card:nth-child(3) { animation-delay: 0.3s; }
.problema-card:nth-child(4) { animation-delay: 0.4s; }
.problema-card:nth-child(5) { animation-delay: 0.5s; }
.problema-card:nth-child(6) { animation-delay: 0.6s; }

.problema-card span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
  transition: transform 0.3s;
}

.problema-card:hover {
  box-shadow: var(--sombra-media);
  transform: translateY(-8px) scale(1.02);
  border-color: var(--azul-principal);
}

.problema-card:hover span {
  transform: scale(1.2);
}

/* === SERVICIOS === */
.section-servicios {
  padding: 80px 0;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.servicio-card {
  background: white;
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--sombra-suave);
  border: 1px solid var(--gris-borde);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 1s ease-out backwards;
  position: relative;
  overflow: hidden;
}

.servicio-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(31,173,219,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.servicio-card:hover:before {
  opacity: 1;
}

.servicio-card:nth-child(1) { animation-delay: 0.1s; }
.servicio-card:nth-child(2) { animation-delay: 0.2s; }
.servicio-card:nth-child(3) { animation-delay: 0.3s; }
.servicio-card:nth-child(4) { animation-delay: 0.4s; }

.servicio-card:hover {
  box-shadow: var(--sombra-fuerte);
  transform: translateY(-10px) scale(1.02);
}

.servicio-icon {
  font-size: 3.2rem;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.servicio-card:hover .servicio-icon {
  transform: scale(1.1) rotate(5deg);
}

.servicio-card h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--azul-oscuro);
  transition: color 0.3s;
}

.servicio-card:hover h3 {
  color: var(--azul-principal);
}

.servicio-card p {
  color: #475569;
  margin-bottom: 16px;
}

.servicio-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.servicio-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: transform 0.3s;
}

.servicio-features li:hover {
  transform: translateX(5px);
}

.servicio-features li::before {
  content: "✔";
  color: var(--azul-principal);
  font-weight: 700;
  transition: transform 0.3s;
}

.servicio-features li:hover::before {
  transform: scale(1.2);
}

.servicio-imagen {
  width: 100%;
  border-radius: 24px;
  margin: 16px 0 8px;
  border: 2px solid var(--gris-borde);
  transition: all 0.3s;
}

.servicio-imagen:hover {
  transform: scale(1.02);
  box-shadow: var(--sombra-media);
  border-color: var(--azul-principal);
}

.servicio-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--azul-principal);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  align-self: flex-start;
}

.servicio-link:hover {
  border-bottom-color: var(--azul-principal);
  transform: translateX(5px);
}

.servicio-note {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 24px;
  border-top: 1px dashed var(--gris-borde);
  padding-top: 16px;
}

/* === CÓMO FUNCIONA === */
.section-proceso {
  padding: 80px 0;
  background-color: var(--gris-fondo);
  position: relative;
  overflow: hidden;
}

.section-proceso:before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(242,183,5,0.05) 0%, transparent 70%);
  animation: rotate 40s linear infinite;
}

.pasos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .pasos-grid { grid-template-columns: repeat(2, 1fr); }
}

.paso-card {
  background: white;
  border-radius: 32px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--sombra-suave);
  transition: all 0.3s;
  animation: fadeInUp 1s ease-out backwards;
  cursor: pointer;
}

.paso-card:nth-child(1) { animation-delay: 0.1s; }
.paso-card:nth-child(2) { animation-delay: 0.2s; }
.paso-card:nth-child(3) { animation-delay: 0.3s; }
.paso-card:nth-child(4) { animation-delay: 0.4s; }

.paso-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--sombra-fuerte);
}

.paso-numero {
  background-color: var(--azul-principal);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  transition: all 0.3s;
}

.paso-card:hover .paso-numero {
  transform: scale(1.1);
  background-color: var(--amarillo);
  color: var(--azul-oscuro);
}

/* === BENEFICIOS === */
.section-beneficios {
  padding: 80px 0;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.beneficio-item {
  background: white;
  padding: 16px 24px;
  border-radius: 60px;
  box-shadow: var(--sombra-suave);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--gris-borde);
  transition: all 0.3s;
  animation: fadeInUp 1s ease-out backwards;
  cursor: pointer;
}

.beneficio-item:nth-child(1) { animation-delay: 0.1s; }
.beneficio-item:nth-child(2) { animation-delay: 0.2s; }
.beneficio-item:nth-child(3) { animation-delay: 0.3s; }
.beneficio-item:nth-child(4) { animation-delay: 0.4s; }
.beneficio-item:nth-child(5) { animation-delay: 0.5s; }
.beneficio-item:nth-child(6) { animation-delay: 0.6s; }

.beneficio-item:hover {
  transform: translateX(8px) scale(1.02);
  box-shadow: var(--sombra-media);
  border-color: var(--azul-principal);
  background: linear-gradient(90deg, white, #f0f9ff);
}

/* === TESTIMONIOS === */
.section-testimonios {
  padding: 80px 0;
  background-color: var(--gris-fondo);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonio-card {
  background: white;
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--sombra-suave);
  transition: all 0.3s;
  animation: fadeInUp 1s ease-out backwards;
}

.testimonio-card:nth-child(1) { animation-delay: 0.1s; }
.testimonio-card:nth-child(2) { animation-delay: 0.2s; }
.testimonio-card:nth-child(3) { animation-delay: 0.3s; }

.testimonio-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--sombra-fuerte);
}

.stars {
  color: var(--amarillo);
  font-size: 1.5rem;
  letter-spacing: 4px;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.testimonio-card:hover .stars {
  transform: scale(1.1);
  letter-spacing: 6px;
}

/* === COBERTURA === */
.section-cobertura {
  padding: 80px 0;
}

.cobertura-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tag {
  background: white;
  padding: 12px 32px;
  border-radius: 60px;
  box-shadow: var(--sombra-suave);
  font-weight: 500;
  border: 1px solid var(--gris-borde);
  transition: all 0.3s;
  animation: fadeInUp 1s ease-out backwards;
  cursor: pointer;
}

.tag:nth-child(1) { animation-delay: 0.1s; }
.tag:nth-child(2) { animation-delay: 0.2s; }
.tag:nth-child(3) { animation-delay: 0.3s; }
.tag:nth-child(4) { animation-delay: 0.4s; }
.tag:nth-child(5) { animation-delay: 0.5s; }
.tag:nth-child(6) { animation-delay: 0.6s; }
.tag:nth-child(7) { animation-delay: 0.7s; }
.tag:nth-child(8) { animation-delay: 0.8s; }
.tag:nth-child(9) { animation-delay: 0.9s; }

.tag:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--sombra-media);
  border-color: var(--azul-principal);
  background: var(--azul-principal);
  color: white;
}

/* === CTA FINAL === */
.cta-final {
  background-color: var(--azul-principal);
  padding: 80px 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final:before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

.cta-final h2 {
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

.cta-final h2:after {
  background: white;
}

/* === FOOTER === */
.site-footer {
  background-color: var(--azul-oscuro);
  color: #ddd;
  padding: 60px 0 30px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-grid h4:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--amarillo);
  transition: width 0.3s;
}

.footer-grid h4:hover:after {
  width: 100%;
}

.footer-grid p {
  margin-bottom: 10px;
  line-height: 1.6;
  transition: transform 0.3s;
}

.footer-grid p:hover {
  transform: translateX(5px);
}

.footer-grid a {
  color: var(--amarillo);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.footer-grid a:hover {
  color: white;
  transform: translateX(5px);
  text-decoration: underline;
}

.contacto-info {
  margin-top: 16px;
}

.contacto-info p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #2d4b5e;
  color: #aaa;
  font-size: 0.9rem;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--verde-whatsapp);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 9999;
  text-decoration: none;
  transition: all 0.3s;
  animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.15) rotate(5deg);
  background-color: #20bd5a;
  box-shadow: 0 15px 35px rgba(37,211,102,0.4);
}