/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  color: #1a1a1a;
}

/* CONTENEDOR */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ========================= */
/* NAVBAR */
/* ========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 74, 100, 0.3);
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.navbar.scrolled {
  background: rgba(15, 74, 100, 0.9);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo {
  height: 80px;
  display: block;
  object-fit: contain;
  transition: 0.3s;
}

/* Logo blanco al hacer scroll */
.navbar.scrolled .logo {
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .logo {
    height: 55px;
  }
}

/* MENÚ */
.menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

.menu a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.menu a:hover {
  opacity: 0.7;
}

/* ========================= */
/* HERO (NUEVO) */
/* ========================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;

  background: url("images/cabecera.png") center/cover no-repeat;
}

/* Overlay para contraste */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 74, 100, 0.85) 25%,
    rgba(15, 74, 100, 0.5) 60%,
    rgba(15, 74, 100, 0.2) 100%
  );
}

/* Contenido encima */
.hero-content {
  position: relative;
  z-index: 2;
}

/* TEXTO */
.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* BOTONES */
.buttons {
  display: flex;
  gap: 15px;
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {
  .hero {
    text-align: center;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================= */
/* BOTONES */
/* ========================= */
.btn {
  background: #3C8BB9;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #0F4A64;
}

.btn.outline {
  background: transparent;
  border: 2px solid white;
}

.btn.small {
  padding: 8px 16px;
}

/* ========================= */
/* SECCIONES */
/* ========================= */
.features,
.services {
  padding: 80px 20px;
  text-align: center;
}

.features h2,
.services h2 {
  margin-bottom: 40px;
}

/* GRID */
.grid {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

/* CARDS */
.card {
  background: #f8f9fb;
  padding: 30px;
  border-radius: 12px;
  width: 280px;
  transition: 0.3s;
  border: 1px solid #e6eef3;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* SERVICES */
.service {
  background: white;
}

/* ========================= */
/* CTA */
/* ========================= */
.cta {
  background: #0F4A64;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.cta p {
  margin: 15px 0 25px;
}

/* ========================= */
/* FOOTER */
/* ========================= */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 20px;
}
.card h3 {
  color: #0F4A64;
  margin-bottom: 10px;
}
/* FOOTER */
/* FOOTER CON COLOR DE MARCA */
.footer {
  background: #0F4A64; /* 👈 tu azul oscuro */
  color: white;
  padding: 40px 20px 20px;
}

/* GRID PRINCIPAL */
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* IZQUIERDA */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-left a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-left a:hover {
  color: white;
}

/* DERECHA */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

/* BOTÓN WHATSAPP */
.whatsapp-btn {
  background: #25D366;
  color: white;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
}

/* REDES */
.socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.socials a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.socials a:hover {
  color: white;
}

/* PARTE INFERIOR */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    gap: 30px;
  }

  .footer-right {
    align-items: flex-start;
  }

  .socials {
    text-align: left;
  }
}
/* REDES */
.socials a {
  color: #dbe7ee;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.socials a i {
  font-size: 1.1rem;
}

.socials a:hover {
  color: white;
  transform: translateX(3px);
}
.cta .btn {
  background: #25D366;
}

.cta .btn:hover {
  background: #1ebe5d;
}
.socials {
  display: flex;
  gap: 10px;
}

/* CÍRCULOS */
.socials a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

/* ICONO */
.socials i {
  font-size: 16px;
}

/* HOVER PRO */
.socials a:hover {
  transform: translateY(-3px);
  background: white;
  color: #0F4A64;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 👈 TODO A LA DERECHA */
  text-align: right;
  gap: 12px;
}

/* TEXTO */
.footer-title {
  font-size: 1.3rem;
}

.footer-text {
  font-size: 0.95rem;
  color: #dbe7ee;
  max-width: 260px;
}
.socials {
  display: flex;
  flex-direction: row; /* 👈 CLAVE */
  gap: 12px;
}
