:root {
  --primary: #0052cc;
  --primary-dark: #003f99;

  /* Alias para compatibilidad con tu HTML inline */
  --primary-color: var(--primary);
  --primary-dark-color: var(--primary-dark);

  --bg: #f6f7fb;
  --text: #1f2933;
  --muted: #6c7a89;
  --white: #ffffff;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 200px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Utilidades generales */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.section-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.navbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Toggle mobile */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 4rem 1.5rem 3rem;
  background: url("https://images.pexels.com/photos/37347/office-service-business-work-37347.jpeg?auto=compress&cs=tinysrgb&w=1600")
    center/cover no-repeat fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(5, 20, 70, 0.95),
    rgba(0, 82, 204, 0.7)
  );
}

/* Hero slider */
.hero-slider {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-slide {
  display: none;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-slide.active {
  display: block;
}

.hero-slide h1 {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}

.hero-slide p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Hero dots */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 1;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.hero-dots button.active {
  background: #ffffff;
  transform: scale(1.2);
}

/* Features */
.features {
  padding: 3rem 0;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.11);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* Servicios */
.pools {
  padding: 3rem 0;
}

.pools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.pool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.pool-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder-image {
  background: linear-gradient(135deg, #0b1536, #0052cc);
  color: var(--white);
}

.pool-card h3 {
  margin: 0.9rem 1rem 0.25rem;
}

.pool-card p {
  margin: 0 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cómo trabajamos */
.how {
  padding: 3rem 0;
}

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

.how-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* CTA contacto */
.cta {
  padding: 3rem 0 4rem;
}

.cta-inner {
  background: var(--white);
  border-radius: 26px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 999px;
  border: 1px solid #dde2ee;
  padding: 0.6rem 0.9rem;
  font: inherit;
}

.contact-form textarea {
  border-radius: 18px;
  resize: vertical;
}

/* Footer */
.footer {
  background: #050b1c;
  color: #d1d5e5;
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* WhatsApp floating */
.whatsapp-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

/* Badge utilitaria */
.badge {
  display:inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: #f1f5f9;
  border: 1px solid rgba(0,0,0,0.06);
}

/* ===================== HOME FEATURED (premium) ===================== */
.home-featured {
  padding: 2.5rem 0 1rem;
}

.home-featured-header {
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.home-featured-title {
  margin: 0;
  font-size: 2rem;
}

.home-featured-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-featured-cta {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
  color: var(--primary);
}

.home-featured-cta:hover {
  transform: translateY(-1px);
}

.home-featured-card {
  background: var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  border: 1px solid rgba(0,0,0,0.06);
}

.home-featured-media {
  display:block;
  min-height: 320px;
  text-decoration: none;
}

.home-featured-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: #eef2ff;
  background-size: cover;
  background-position: center;
}

.home-featured-body {
  padding: 1.5rem 1.5rem 1.25rem;
  display:flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-featured-badges {
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.home-featured-h3 {
  margin: 0.25rem 0 0;
  font-size: 1.55rem;
  line-height: 1.25;
}

.home-featured-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.home-featured-actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.home-featured-readmore {
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

/* Animaciones básicas */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 960px) {
  .features-grid,
  .pools-grid,
  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .home-featured-card {
    grid-template-columns: 1fr;
  }

  .home-featured-media,
  .home-featured-img {
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  .navbar-inner {
    padding-inline: 1rem;
  }

  .nav-links {
    position: absolute;
    inset: 56px 1rem auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 0.75rem 1rem;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero {
    min-height: 70vh;
  }

  .pools-grid,
  .features-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }
}
