* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  /* --- Paleta extraída del logo --- */
  --navy: #0f2a4a;         /* azul marino principal */
  --navy-dark: #0a1a2f;    /* azul más oscuro para footer */
  --navy-light: #1e4269;   /* azul hover */
  --gold: #f5b301;         /* dorado del logo */
  --gold-light: #ffc107;   /* dorado más claro para hover */
  --gold-soft: #fff8e1;    /* dorado muy claro para fondos */
  --red: #d62828;          /* rojo del acento */
  --light: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --gray: #64748b;
}

body {
  background: #fff;
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { text-decoration: none; color: inherit; }

/* --- Header --- */
.header-top {
  background: var(--navy-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.6rem 0;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-main {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(15, 42, 74, 0.08);
}

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

.logo img {
  height: 130px;
  width: auto;
  display: block;
  transition: transform 0.2s;
}

.logo img:hover { transform: scale(1.03); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s;
}

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

.btn-pos {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  font-weight: 700 !important;
  transition: all 0.2s !important;
  box-shadow: 0 3px 10px rgba(245, 179, 1, 0.3);
}

.btn-pos:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(245, 179, 1, 0.45);
}

/* --- Hero --- */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--gold-soft) 0%, #f0f9ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 0.95rem 1.9rem;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.2s;
  display: inline-block;
  border: 2px solid var(--navy);
}

.btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  padding: 0.95rem 1.9rem;
  border-radius: 8px;
  font-weight: 700;
  border: 2px solid var(--navy);
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  max-height: 420px;
  filter: drop-shadow(0 20px 40px rgba(15, 42, 74, 0.2));
}

/* --- Trust bar --- */
.trust-bar {
  background: var(--navy);
  color: #fff;
  padding: 1.8rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 800;
}

.trust-item span {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* --- Catálogo --- */
.catalog {
  padding: 4.5rem 0;
  background: var(--light);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2.5rem;
  margin-top: 1rem;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.25s;
  border-top: 4px solid var(--gold);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 42, 74, 0.12);
  border-top-color: var(--navy);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-weight: 700;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- About --- */
.about {
  padding: 4.5rem 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 1rem;
  font-weight: 800;
}

.about-text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin-top: 0.8rem;
  border-radius: 2px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 1rem;
  margin-top: 1.2rem;
}

.about-features {
  list-style: none;
  margin-top: 1.5rem;
}

.about-features li {
  padding: 0.5rem 0;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
}

.image-placeholder {
  background: linear-gradient(135deg, var(--gold-soft), #e0e7ff);
  border-radius: 16px;
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 0.9rem;
  gap: 0.5rem;
  border: 2px dashed var(--gold);
}

.image-placeholder span { font-size: 3.5rem; }

/* --- CTA Portal --- */
.cta-portal {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: #fff;
}

.cta-content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 0.8rem auto 1.5rem;
  border-radius: 2px;
}

.cta-content p {
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.cta-portal .btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-size: 1.05rem;
  padding: 1.1rem 2.5rem;
}

.cta-portal .btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.cta-note {
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
  margin-top: 1rem !important;
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1e293b;
}

.footer-col h3,
.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col h3 {
  color: var(--gold);
  font-size: 1.15rem;
}

.footer-col p,
.footer-col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #94a3b8;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}



/* --- Responsive --- */
@media (max-width: 900px) {
  .header-flex { flex-direction: column; gap: 1rem; }
  .logo img { height: 65px; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .hero-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero h1 { font-size: 1.9rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .header-top .container { flex-direction: column; text-align: center; }
  .hero-image img { max-height: 300px; }
}

/* --- Botón flotante WhatsApp (píldora con texto) --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: all 0.25s;
  animation: whatsapp-pulse 2.5s infinite;
  white-space: nowrap;
}

.whatsapp-float:hover {
  background: #20ba5a;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.7);
  color: #fff;
}

.whatsapp-float svg {
  flex-shrink: 0;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5),
                0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5),
                0 0 0 14px rgba(37, 211, 102, 0);
  }
}

/* En móviles: solo el icono circular para no tapar contenido */
@media (max-width: 600px) {
  .whatsapp-float {
    padding: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}