/* shared.css */
:root {
  --primary: #0a2540;    /* azul oscuro */
  --accent:  #17A2B8;    /* verde-teal para acentos */
  --text:    #07121f;    /* texto oscuro en fondos claros */
  --bg:      #07121f;    /* fondo principal */
  --card:    #11233b;    /* fondo de tarjetas */
  --radius:  12px;       /* radio de bordes */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: #f5f5f5;         /* texto principal en fondos oscuros */
  padding-top: 70px;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* HEADER */
header.logo {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: #ffffff;    /* fondo blanco */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
}
header.logo img {
  max-width: 280px;
  height: auto;
}
header.logo nav {
  display: flex;
  gap: 1.5rem;
}
header.logo nav a {
  color: var(--primary);  /* enlaces oscuros */
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.2s;
}
header.logo nav a:hover {
  opacity: 0.8;
}

/* CONTENEDOR PRINCIPAL */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* GRID: 3 columnas desktop, 2 tablet, 1 móvil; filas de altura uniforme */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .grid-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-container { grid-template-columns: 1fr; }
}

/* TARJETAS */
section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
section:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* LAYOUT INTERNO */
.section-flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.section-flex .image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 1rem;
}
.section-flex .content {
  padding: 1.5rem;
  flex: 1;
}

/* TIPOGRAFÍA */
h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 1rem;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* SECCIÓN DE MARCAS */
.brands {
  width: 100%;
  background: #ffffff;    /* fondo blanco */
  padding: 0.5rem;
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.brands img {
  max-height: 40px;
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.3s;
}
.brands img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* CTA FLOTANTE */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* FOOTER */
footer.contact {
  width: 100%;
  background: var(--primary);
  text-align: center;
  padding: 2rem 0;
  border-radius: var(--radius);
  margin-top: 2rem;
}
footer.contact p {
  color: #ffffff;        /* texto blanco para mejor contraste */
  font-size: 0.9rem;
}
