@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  color: #1a1a1a;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* HEADER BASE */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  height: 80px;
  margin-top: 5px;
}

/* MENU DESKTOP */
.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: #0b1c2d;
  font-weight: 600;
  padding: 5px 0;
}

/* Franja sutil activa */
.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background: linear-gradient(135deg,#0d4d7f,#0bb3c8);
  transition: width .3s ease;
  border-radius: 2px;
}

.menu a.active::after,
.menu a:hover::after {
  width: 100%;
}

/* BOTÓN CONTACTO */
.menu .btn {
  padding: 10px 22px;
  border-radius: 30px;
  background: linear-gradient(135deg,#0d4d7f,#0bb3c8);
  color: #fff;
}

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: #0b1c2d;
  border-radius: 2px;
  transition: all .3s;
}

/* MOBILE */
@media (max-width: 900px) {

  .menu-toggle {
    display: flex;
  }

  .menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height .4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }

  .menu a {
    padding: 18px;
    width: 100%;
    text-align: center;
  }

  .menu.open {
    max-height: 400px;
  }

  .menu a::after {
    bottom: 10px;
  }
}

/*-------HERO SECTION ---------*/
/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 100vh;
  background: url('../img/hero.webp') center / cover no-repeat fixed;
  display: flex;
  align-items: center;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 28, 45, 0.85),
    rgba(11, 28, 45, 0.55)
  );
}

/* Contenido */
.hero-content {
  position: relative;
  max-width: 650px;
  color: #ffffff;
  z-index: 1;
}

/* =========================
   TEXTO
========================= */

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 22px;
  font-family: "Montserrat", sans-serif;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp .8s ease-out forwards;
  text-transform: uppercase;
}

.hero-title .accent {
  color: #0bb3c8;
}

/* Texto secundario */
.hero p {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0;

  animation: heroFadeUp .8s ease-out forwards;
  animation-delay: .25s;

  margin-bottom: 35px;
}

/* =========================
   BOTÓN
========================= */

.hero-btn {
  display: inline-block;
  padding: 15px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 40px;
  background: linear-gradient(135deg, #0bb3c8, #0d4d7f);
  color: #fff;
  text-decoration: none;

  opacity: 0;
  animation: heroFadeUp .8s ease-out forwards;
  animation-delay: .45s;

  transition: transform .3s ease, box-shadow .3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(11,179,200,.35);
}

/* =========================
   ANIMACIÓN
========================= */

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

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .hero {
    background-attachment: scroll;
    padding-top: 100px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.05rem;
  }
}

@media (max-width: 500px) {
  .hero-content {
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }
}



/*--- SERVICIOS SECTION ---*/

/* =========================
   SERVICIOS – SECCIÓN
========================= */

.services {
  background: #ffffff;
  padding: 120px 0;
}

/* Aire entre secciones */
.services + .section {
  margin-top: 80px;
}

/* =========================
   TÍTULOS
========================= */

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0b1c2d;
  margin-bottom: 15px;
}

.section-subtitle {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4a5a6a;
  margin-bottom: 70px;
}

/* =========================
   GRID
========================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

/* =========================
   CARD
========================= */

.service-card {
  background: #ffffff;
  border: 1px solid #e6ebf0;
  border-radius: 14px;
  padding: 45px 35px;

  transition: 
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;

  /* Animación entrada */
  opacity: 0;
  transform: translateY(30px);
}

/* Estado visible (se activa con JS o IntersectionObserver) */
.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover elegante */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(11,28,45,.08);
  border-color: #0bb3c8;
}

/* =========================
   ICONO
========================= */

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 25px;
}

.service-icon img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   TEXTO CARD
========================= */

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0b1c2d;
  margin-bottom: 12px;
}

.service-card p {
  font-size: .95rem;
  line-height: 1.55;
  color: #5b6b7b;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .services {
    padding: 90px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    margin-bottom: 50px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 40px 30px;
  }
}


/* --EMPRESA SECTION -- */
/* =========================
   NOSOTROS – SECCIÓN
========================= */

.nosotros {
  background: #0b1c2d;
  color: #ffffff;
  padding: 120px 0;
}

/* =========================
   HEADER
========================= */

.nosotros .section-header {
  max-width: 720px;
  margin-bottom: 80px;
}

.nosotros h2 {
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 15px;
}

.nosotros .section-header p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
}

/* =========================
   LAYOUT
========================= */

.nosotros .split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 70px;
  align-items: flex-start;
}

/* =========================
   TEXTO
========================= */

.empresa-texto p {
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin-bottom: 22px;
    font-family: "Montserrat", sans-serif;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.empresa-texto p.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   STATS
========================= */

.stats {
  display: grid;
  gap: 25px;
  margin-top: -85px;
}

.stats div {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 30px;

  opacity: 0;
  transform: translateY(25px);
  transition: opacity .6s ease, transform .6s ease;
}

.stats div.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stats strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.stats span {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .nosotros {
    padding: 90px 0;
  }

  .nosotros .split {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .nosotros h2 {
    font-size: 2rem;
  }
}

/* =========================
   CONTACTO – SECCIÓN
========================= */

.contacto {
  background: #f7f9fc;
  padding: 120px 0;
  color: #0b1c2d;
}

/* =========================
   HEADER
========================= */

.contacto .section-header {
  max-width: 720px;
  margin-bottom: 80px;
}

.contacto .section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 15px;
}

.contacto .section-header p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #5a6b7b;
}

/* =========================
   GRID
========================= */

.contacto-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: stretch;
}

/* =========================
   MAPA
========================= */

.contacto-mapa {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e1e6eb;
}

.contacto-mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: none;
}

/* =========================
   INFO
========================= */

.contacto-info {
  background: #ffffff;
  border: 1px solid #e6ebf0;
  border-radius: 18px;
  padding: 45px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Texto guía */
.canales-title {
  font-size: .95rem;
  color: #5a6b7b;
  margin-bottom: 30px;
}

/* =========================
   CANALES
========================= */

.canales-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.canal {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #e1e6eb;

  text-decoration: none;
  color: #0b1c2d;
  font-size: .95rem;
  font-weight: 500;

  transition:
    background .3s ease,
    transform .3s ease,
    border-color .3s ease;
}

.canal img {
  width: 22px;
}

/* Hover profesional */
.canal:hover {
  background: #0bb3c8;
  color: #ffffff;
  border-color: #0bb3c8;
  transform: translateY(-2px);
}

.canal:hover img {
  filter: brightness(0) invert(1);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .contacto {
    padding: 90px 0;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contacto-mapa iframe {
    min-height: 320px;
  }
}

@media (max-width: 500px) {
  .contacto-info {
    padding: 35px;
  }
}



/* =========================
   FOOTER
========================= */

.footer {
  position: relative;
  background: #0b1c2d;
  color: #ffffff;
  padding: 40px 0 30px;
}

/* =========================
   CONTENIDO
========================= */

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-copy {
  font-size: .85rem;
  opacity: .8;
}

/* =========================
   CRÉDITO
========================= */

.footer-credit {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: .85rem;
  color: #ffffff;
  text-decoration: none;
  opacity: .85;

  transition: opacity .3s ease, transform .3s ease;
}

.footer-credit img {
  height: 22px;
}

/* Hover fino */
.footer-credit:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* =========================
   BOTÓN TO TOP
========================= */

.to-top {
  position: absolute;
  right: 25px;
  top: -18px;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  border: none;
  background: #0bb3c8;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;

  box-shadow: 0 8px 20px rgba(11, 179, 200, 0.35);
  transition: transform .3s ease, background .3s ease;
}

.to-top:hover {
  background: #099aad;
  transform: translateY(-3px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .to-top {
    right: 50%;
    transform: translateX(50%);
  }
}
