/* =========================
   RESET / BASE SENCILLA
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #0b1120;
}

img {
  max-width: 100%;
  display: block;
}

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

.hero {
  background: linear-gradient(to right, #0f172a, #1f2937);
  color: #ffffff;
  padding: 20px 0 40px;
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.brand-text h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 1px;
}

.brand-text p {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}

/* Menú escritorio */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #e5e7eb;
}

.nav a:hover {
  color: #facc15;
}

/* Botón hamburguesa (oculto en escritorio) */
.btn-menu {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  color: #ffffff;
  padding: 6px 10px;
}

/* Hero grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 26px;
}

.hero-copy h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero-copy p {
  font-size: 15px;
  max-width: 540px;
}

.hero-img {
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* Botones principales */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-red {
  background-color: #dc2626;
  color: #ffffff;
}

.btn-yellow {
  background-color: #facc15;
  color: #0f172a;
}

.btn-red:hover {
  background-color: #b91c1c;
}

.btn-yellow:hover {
  background-color: #eab308;
}

.icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Secciones */
.section {
  padding: 50px 0;
  background-color: #f9fafb;
}

.section.alt {
  background-color: #e5e7eb;
}

.title {
  font-size: 22px;
  margin-bottom: 10px;
}

.lead {
  font-size: 15px;
}

/* Grid genérico */
.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Tarjetas */
.card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.ring-yellow {
  border: 2px solid #facc15;
}

.ring-red {
  border: 2px solid #dc2626;
}

/* Contacto */
.section.contact {
  background: #0f172a;
  color: #e5e7eb;
}

.section.contact .title.light {
  color: #facc15;
}

.section.contact .panel {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  padding: 18px;
}

.section.contact .logo-small {
  width: 80px;
  margin-top: 12px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 18px 10px;
  font-size: 13px;
  background-color: #020617;
  color: #9ca3af;
}

/* Botón flotante WhatsApp */
.whatsapp-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 2000;
}

/* =========================
   MENÚ HEADER BASE
   ========================= */

/* (ya definido arriba .header, .nav, .btn-menu, .hero…) */

.nav-mobile {
  display: none;
}

/* =========================
   RESPONSIVE / MÓVIL
   ========================= */

@media (max-width: 768px) {

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

  .hero-copy h2 {
    font-size: 24px;
  }

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

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

  /* Ocultar menú escritorio en móvil */
  .nav {
    display: none;
  }

  /* Mostrar botón hamburguesa */
  .btn-menu {
    display: inline-flex;
  }

  /* Menú móvil desplegable */
  .nav-mobile {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: #020617;
    padding: 15px 20px 25px;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-radius: 0 0 14px 14px;

    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s ease-in-out;
  }

  .nav-mobile a {
    display: block;
    color: #e5e7eb;
    text-decoration: none;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  }

  .nav-mobile a:last-child {
    border-bottom: none;
  }

  .nav-mobile.open {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
  }
}

