* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #ffffff;
  color: #1f2933;
}

/* =========================
   CONTAINER
========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =========================
   HEADER / NAV
========================= */
.header {
  background: #061f3a;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 58px;
}

.logo span {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 600;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
}

.nav a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  margin-left: 26px;
  font-weight: 500;
  padding: 6px 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* ACTIVO – SOLO PÁGINA ACTUAL */
.nav a.active {
  font-weight: 600;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  background: #ffffff;
  border-radius: 2px;
}

/* BOTÓN CONTACTO */
.nav a.nav-btn {
  background: #0f5cc0;
  padding: 6px 15px;
  border-radius: 8px;
  font-weight: 600;
}

/* CONTACTO: NUNCA SUBRAYAR */
.nav a.nav-btn::after {
  display: none !important;
}

/* SIN SUBRAYADO POR HOVER */
.header .nav a,
.header .nav a:hover,
.header .nav a:focus,
.header .nav a:active {
  text-decoration: none;
}

/* ANIMACIONES HEADER */
.header .nav a:not(.nav-btn):hover {
  transform: translateY(-2px);
}

.header .nav a.nav-btn:hover {
  background: #0d52ad;
  transform: translateY(-2px);
}

/* =========================
   HERO
========================= */
.hero {
  background: linear-gradient(135deg, #0f5cc0, #2c7be5);
  color: #ffffff;
  padding: 70px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 35px;
}

/* HERO BADGE */
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

/* HERO ACTIONS */
.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
  background: #ffffff;
  color: #0f5cc0;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary {
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* =========================
   SERVICES
========================= */
.services {
  background: #f5f7fa;
  padding: 90px 0;
}

.services h2 {
  text-align: center;
  color: #061f3a;
  margin-bottom: 60px;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: #ffffff;
  padding: 34px 30px;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: #0f5cc0;
}

.service-icon {
  font-size: 1.5rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* SERVICES CTA */
.services-cta {
  margin-top: 60px;
  text-align: center;
}

.services-cta p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #061f3a;
}

/* CTA SERVICIOS – BOTÓN */
.services-cta .btn-primary {
  background: #0f5cc0;
  color: #ffffff;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.services-cta .btn-primary:hover {
  background: #0d52ad;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 92, 192, 0.35);
}

.services-cta .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(15, 92, 192, 0.25);
}

/* =========================
   WHY US
========================= */
.why-us {
  padding: 90px 0;
}

.why-us h2 {
  text-align: center;
  color: #061f3a;
  margin-bottom: 60px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.why-card {
  background: #f5f7fa;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.why-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #0f5cc0;
}

.why-icon {
  font-size: 1.5rem;
}

/* =========================
   CONTACT
========================= */
.contact {
  background: #061f3a;
  color: #ffffff;
  padding: 20px 0 5px;
  text-align: center;
}

.contact p {
  margin: 15px 0 35px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.contact-hours {
  margin: 20px 0 35px;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

.contact-note {
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #041527;
  color: #ffffff;
  text-align: center;
  padding: 18px;
  font-size: 0.9rem;
}

/* =========================
   MOBILE MENU
========================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    background: #061f3a;
    width: 100%;
    padding: 15px 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .nav a {
    margin: 12px 0;
    text-align: center;
  }

  .nav.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .services {
    padding: 70px 0;
  }

  .services-cta {
    margin-top: 40px;
  }
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #041527;
  color: #ffffff;
  padding-top: 40px;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 25px;
}

.footer-brand p {
  margin-top: 10px;
  line-height: 1.5;
  opacity: 0.9;
}

.footer-contact p {
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 15px 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* FOOTER MOBILE */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
}

/* ICONOS FOOTER */
.footer-contact i {
  margin-right: 8px;
  color: #ffffff;
  opacity: 0.9;
}

/* WHATSAPP FOOTER */
.footer-whatsapp {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.footer-whatsapp:hover {
  text-decoration: underline;
}

/* EMAIL FOOTER */
.footer-email {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.footer-email:hover {
  text-decoration: underline;
}

/* ICONOS EN BOTONES DE CONTACTO */
.contact-buttons i {
  margin-right: 8px;
  font-size: 1.1rem;
  vertical-align: middle;
}

/* BOTONES CONTACTO – TAMAÑO REDUCIDO */
.contact-buttons a {
  padding: 10px 18px;     /* más chicos */
  font-size: 0.9rem;
}

/* =========================
   BOTÓN WHATSAPP (CONTACTO)
========================= */
.contact-buttons .btn-whatsapp {
  background-color: #25D366 !important; /* verde oficial */
  color: #ffffff !important;
  border: none;
}

.contact-buttons .btn-whatsapp i {
  color: #ffffff !important; /* ícono blanco */
}

/* Hover WhatsApp */
.contact-buttons .btn-whatsapp:hover {
  background-color: #1ebe5d !important;
}

@media (max-width: 768px) {
  .hero-actions .btn-primary {
    padding: 16px 28px;
    font-size: 1rem;
  }
}

/* =========================
   MICRO-MEJORAS UX MOBILE
========================= */
@media (max-width: 768px) {

  /* CTA principal más visible */
  .hero-actions .btn-primary {
    padding: 16px 28px;
    font-size: 1rem;
  }

  /* Mejor espaciado vertical */
  .hero {
    padding: 60px 0;
  }

  .services {
    padding: 70px 0;
  }

  .why-us {
    padding: 70px 0;
  }

  /* Feedback táctil en cards */
  .service-card {
    transition: transform 0.2s ease;
  }

  .service-card:active {
    transform: scale(0.98);
  }

  /* Botones de contacto optimizados para mobile */
  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons a {
    width: 100%;
    justify-content: center;
  }
}

/* BOTÓN WHATSAPP GLOBAL */
.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
}

.btn-whatsapp i {
  color: #ffffff;
  margin-right: 8px;
}

/* =========================
   OVERLAY NAVIDEÑO
========================= */
#navidad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.navidad-box {
  position: relative;
  max-width: 800px;        /* tamaño máximo desktop */
  width: 90%;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navidad-box img {
  max-width: 100%;
  max-height: 90vh;        /* nunca supera la pantalla */
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .navidad-box {
    max-width: 95%;
  }
}

/* BOTÓN CERRAR */
.navidad-close {
  position: absolute;
  top: -14px;
  right: -14px;
  background: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

/* =========================
   HERO IMAGE
========================= */
.hero-image {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 720px;      /* tamaño elegante en desktop */
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* HERO IMAGE MOBILE */
@media (max-width: 768px) {
  .hero-image {
    margin-top: 30px;
  }

  .hero-image img {
    max-width: 100%;
  }
}

/* =========================
   IMÁGENES EN SERVICIOS
========================= */
.service-img {
  width: 100%;
  height: 170px;           /* ALTURA FIJA PARA TODAS */
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
  display: block;
}

/* Placeholder invisible cuando no hay imagen */
.service-card:not(:has(img))::before {
  content: "";
  display: block;
  height: 170px;           /* MISMA ALTURA */
  margin-bottom: 18px;
}

/* Mobile */
@media (max-width: 768px) {
  .service-img,
  .service-card:not(:has(img))::before {
    height: 160px;
  }
}

/* =========================
   IMÁGENES SERVICIOS HOME
========================= */
.service-img-home {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}
