:root {
  --bg-dark: #070b19;
  --bg-light: #ffffff;
  --bg-soft: linear-gradient(to bottom, #fcfdfe, #f3f7fd);
  --primary: #0052ff;
  --primary-hover: #0041cc;
  --primary-gradient: linear-gradient(135deg, #0052ff, #00d8ff);
  --primary-hover-gradient: linear-gradient(135deg, #0041cc, #00bce0);
  --accent: #00d8ff;
  --text-dark: #0f172a;
  --text-medium: #334155;
  --text-light: #64748b;
  --border-color: rgba(0, 82, 255, 0.08);
  --border-glow: rgba(0, 216, 255, 0.4);
  --card-shadow: 0 10px 30px rgba(0, 82, 255, 0.04);
  --card-shadow-hover: 0 20px 40px rgba(0, 82, 255, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-medium);
  background: var(--bg-light);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s ease;
  border-bottom: 1px solid var(--border-color);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 30px rgba(0, 82, 255, 0.06);
  border-bottom: 1px solid rgba(0, 82, 255, 0.12);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

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

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

nav a:not(.btn-platform):hover {
  color: var(--primary);
}

/* Button Platform (Header) */
.btn-platform {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  border-radius: 30px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  box-shadow: 0 4px 10px rgba(0, 82, 255, 0.05);
}

.btn-platform:hover {
  background: var(--primary-gradient);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.25);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: .5rem;
  transition: color 0.3s ease;
}

.menu-toggle:hover {
  color: var(--primary);
}

@media(max-width:992px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    gap: 0.5rem;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 0.85rem;
    width: 100%;
    border-radius: 8px;
  }
  
  nav ul li a:not(.btn-platform):hover {
    background: #f3f7fd;
    color: var(--primary);
  }

  .btn-platform {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }
  
  nav {
    position: relative;
  }
}

/* Typography */
h1, h2, h3 {
  font-family: 'Outfit', -apple-system, sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.5px;
}

section {
  padding: 5.5rem 0;
  min-height: 60vh;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  margin-bottom: 1.25rem;
  line-height: 1.15;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  margin-bottom: 1.75rem;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Hero Section */
.hero {
  color: #fff;
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero:after {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: url(/fondo.webp) center/cover no-repeat;
  z-index: 0;
  animation: heroZoom 20s ease-in-out infinite;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 11, 25, 0.88), rgba(7, 11, 25, 0.75));
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--primary-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  margin: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.3);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 82, 255, 0.45);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}

/* Qué es Section */
#que-es ul {
  margin-top: 1.5rem;
}

ul {
  list-style: none;
}

section ul li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  font-size: 1.05rem;
  color: var(--text-medium);
}

section ul li:before {
  content: "";
  position: absolute;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(0, 82, 255, 0.4);
}

#que-es img {
  border-radius: 20px !important;
  box-shadow: var(--card-shadow-hover) !important;
  border: 1px solid rgba(0, 82, 255, 0.05);
}

/* Alertas Section */
#alertas {
  background: var(--bg-soft) !important;
}

.alert-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

@media(max-width: 768px) {
  .alert-list {
    grid-template-columns: 1fr;
  }
}

.alert-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.5rem 1.5rem 4.75rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid var(--border-color);
}

.alert-item:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px) translateX(4px);
  border-color: rgba(0, 82, 255, 0.15);
}

.alert-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(0, 82, 255, 0.06);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.alert-item:hover .alert-icon {
  background: var(--primary-gradient);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.alert-item-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.alert-item-desc {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
}

.alert-image-card img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.alert-image-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.alert-image-card:hover img {
  transform: scale(1.05);
}

.alert-image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(7, 11, 25, 0.9), rgba(7, 11, 25, 0.4), transparent);
  color: #fff;
  padding: 2rem 1.5rem 1.25rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  backdrop-filter: blur(2px);
}

/* Cobertura Section */
.metric {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 20px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid rgba(0, 82, 255, 0.1);
  transition: transform 0.4s ease;
}

.metric:hover {
  transform: translateY(-5px);
}

.metric:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 253, 0.98));
  border-radius: 20px;
  z-index: 0;
}

.metric > * {
  position: relative;
  z-index: 1;
}

.metric h3 {
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--text-dark);
}

.metric-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.5rem 0;
  letter-spacing: -1px;
}

.coverage-subtitle {
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-family: 'Outfit', sans-serif;
}

.coverage-map {
  margin: 4rem auto 0;
  max-width: 800px;
  display: flex;
  justify-content: center;
  position: relative;
}

.coverage-map:before {
  content: "";
  position: absolute;
  width: 90%;
  height: 90%;
  background: rgba(0, 82, 255, 0.1);
  filter: blur(50px);
  z-index: 0;
  border-radius: 50%;
  bottom: -10px;
}

.coverage-map img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.coverage-map:hover img {
  transform: scale(1.02);
}

/* Reportes Section */
#reportes {
  background: var(--bg-soft) !important;
}

.reports-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.reports-list ul {
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.reports-list ul li {
  padding: 0.75rem 0 0.75rem 2rem;
}

.reports-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
  position: relative;
}

.reports-images img {
  max-width: 420px;
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid var(--border-color);
  transition: transform 0.4s ease;
}

.reports-images img:hover {
  transform: translateY(-5px);
}

/* Cuidamos Section */
.care-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.care-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.care-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 25, 0.85), rgba(7, 11, 25, 0.3), transparent);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.care-card:hover:before {
  background: linear-gradient(to top, rgba(7, 11, 25, 0.95), rgba(7, 11, 25, 0.4), transparent);
}

.care-card-label {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  padding: 2.25rem;
  text-align: center;
  width: 100%;
  letter-spacing: -0.5px;
}

/* Features Section */
#features {
  background: var(--bg-soft) !important;
}

#features ul {
  background: #fff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

#features ul li {
  padding: 0.85rem 0 0.85rem 2.2rem;
}

/* Contacto Section */
form {
  max-width: 550px;
  margin: 3rem auto 0;
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

form input, form textarea {
  width: 100%;
  padding: 1.1rem;
  margin: 0.6rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
  color: var(--text-dark);
}

form input:focus, form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.1);
  background: #fff;
  outline: none;
}

form button {
  width: 100%;
  padding: 1.1rem;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 82, 255, 0.3);
}

form button:hover {
  box-shadow: 0 8px 25px rgba(0, 82, 255, 0.45);
  transform: translateY(-2px);
}

form button:active {
  transform: translateY(0);
}

/* Footer */
footer {
  background: #fff;
  color: var(--text-medium);
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-color);
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
  align-items: start;
}

footer img {
  max-width: 160px;
  margin: 0 auto 1.5rem;
}

footer .footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
}

footer .footer-section h3 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--primary);
  font-weight: 700;
}

footer .footer-section p {
  margin: 0;
  padding: 0;
}

footer .footer-section p, footer .footer-section a {
  color: var(--text-light);
  text-decoration: none;
  line-height: 1.8;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

footer .footer-section a:hover {
  color: var(--primary);
}

footer .footer-copyright {
  grid-column: 1 / -1;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
}

@media(max-width:768px) {
  footer .container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  footer .footer-section {
    align-items: center;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 35px;
  right: 35px;
  width: 70px;
  height: 70px;
  min-width: 70px;
  min-height: 70px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 2.2s ease-in-out infinite;
  overflow: hidden;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
    transform: scale(1.03);
  }
}

@media(max-width:768px) {
  .whatsapp-float {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    bottom: 25px;
    right: 25px;
  }
  .whatsapp-float img {
    width: 32px;
    height: 32px;
  }
}

/* Fade Up Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* FAQ Section */
#faq {
  background: var(--bg-soft);
}
.aeo-faq-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
}
.aeo-faq-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3.5rem;
  font-size: 1.1rem;
}
.aeo-faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.aeo-faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: all 0.4s ease;
}
.aeo-faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(0, 82, 255, 0.15);
}
.aeo-faq-question {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
}
.aeo-faq-short {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.aeo-faq-short strong {
  color: var(--primary);
  font-weight: 700;
}
.aeo-faq-extended {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.aeo-faq-link-wrapper {
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}
.aeo-faq-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.aeo-faq-link:hover {
  color: var(--primary-hover);
}
