/* styles.css — Identidad AFSI: blanco y rojo */

:root {
  --rojo: #d52b2b;
  --rojo-osc: #a81f1f;
  --blanco: #ffffff;
  --tinta: #1a1a1a;
  --gris: #6b6b6b;
  --bg-alt: #f7f7f7;
  --borde: #ececec;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tinta);
  background: var(--blanco);
  line-height: 1.6;
}

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

/* --- Navbar --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  background: var(--blanco);
  border-bottom: 3px solid var(--rojo);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--tinta); }
.nav__logo { width: 40px; height: 40px; object-fit: contain; }
.nav__title { font-weight: 800; font-size: 1.3rem; letter-spacing: 1px; color: var(--rojo); }
.nav__links { display: flex; gap: 1.5rem; }
.nav__links a {
  text-decoration: none;
  color: var(--tinta);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--rojo); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--rojo), var(--rojo-osc));
  color: var(--blanco);
  text-align: center;
  padding: 4rem 1.5rem;
}
.hero__content { max-width: 720px; margin: 0 auto; }
.hero__logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  background: var(--blanco);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.15; margin-bottom: 0.75rem; }
.hero p { font-size: 1.1rem; opacity: 0.95; margin-bottom: 1.5rem; }
.btn {
  display: inline-block;
  background: var(--blanco);
  color: var(--rojo);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }

/* --- Secciones --- */
.section { padding: 3.5rem 1.5rem; }
.section--alt { background: var(--bg-alt); }
.container { max-width: 1080px; margin: 0 auto; }
.section__title {
  text-align: center;
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: var(--rojo);
  border-radius: 2px;
}
.section__subtitle { text-align: center; color: var(--gris); margin-bottom: 2.5rem; }

/* --- Grilla de equipos --- */
.teams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}
.team {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.team:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(213, 43, 43, 0.12);
  border-color: var(--rojo);
}
.team img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}
.team h3 { font-size: 0.95rem; color: var(--tinta); }

/* --- Placeholder --- */
.placeholder {
  text-align: center;
  color: var(--gris);
  background: var(--blanco);
  border: 2px dashed var(--borde);
  border-radius: 14px;
  padding: 3rem 1.5rem;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--tinta);
  color: var(--blanco);
}
.footer__logo { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 0.75rem; }
.footer p { font-size: 0.9rem; opacity: 0.85; }

/* --- Responsive --- */
@media (max-width: 560px) {
  .nav__links { gap: 1rem; }
  .nav__links a { font-size: 0.85rem; }
}
