/* VARIABLES */
:root {
  --azul-oscuro: #0B2545;
  --azul-acento: #1B98E0;
  --gris-fondo: #F5F5F5;
  --naranja: #F29F05;
  --texto: #222222;
}

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

body {
  font-family: 'Roboto', sans-serif;
  color: var(--texto);
  background-color: white;
  line-height: 1.6;
}

/* HEADER */
header {
  background: linear-gradient(135deg, var(--azul-oscuro), #061324);
  color: white;
  padding: 1rem 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-img {
  height: 55px;
  width: auto;
}

/* NAV ESCRITORIO */
.nav-desktop a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--naranja);
}

/* HAMBURGUESA */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  transition: 0.3s;
}

/* ANIMACIÓN HAMBURGUESA */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* NAV MÓVIL */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--azul-oscuro);
  padding: 1rem;
  position: absolute;
  top: 70px;
  right: 0;
  width: 60%;
  border-radius: 0 0 0 10px;
}

.nav-mobile a {
  color: white;
  padding: 0.8rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.nav-mobile.active {
  display: flex;
}

/* HERO */
.hero {
  padding: 4rem 8%;
  background: linear-gradient(135deg, #0B2545 0%, #0B2545 55%, #1B98E0 100%);
  color: white;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  background-color: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* BOTONES */
.btn {
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary {
  background: var(--naranja);
  color: #1b1b1b;
}

.btn-primary:hover {
  background: #ffb53a;
}

.btn-outline {
  border: 1px solid white;
  color: white;
}

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

/* HERO SIDE */
.hero-side {
  background-color: rgba(6,19,36,0.7);
  padding: 1.5rem;
  border-radius: 1rem;
}

/* SECCIONES */
.section {
  padding: 3.5rem 8%;
}

.section-alt {
  background: var(--gris-fondo);
}

.section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--azul-oscuro);
}

.section-subtitle {
  color: #555;
  margin-bottom: 2rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.about-card {
  background: white;
  padding: 1.4rem;
  border-radius: 0.9rem;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

/* SERVICIOS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: white;
  padding: 1.4rem;
  border-radius: 0.9rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

/* CONTACTO */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

/* FOOTER */
footer {
  background: #061324;
  color: #d0d0d0;
  text-align: center;
  padding: 1.5rem;
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.2s ease;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 6%;
  }

  .section {
    padding: 3rem 6%;
  }

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