/* aurėk – estilos compartidos (cacheable) */
@font-face {
  font-family: 'Poppins';
  src: url('../tipografia/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../tipografia/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../tipografia/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../tipografia/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --magenta: #c41e5a;
  --magenta-hover: #a01948;
  --oscuro: #1a1a1a;
  --blanco: #ffffff;
  --gris-footer: #1e1e1e;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--oscuro);
  overflow-x: hidden;
  padding-top: 96px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--magenta);
}
.logo { display: block; }
.logo img {
  height: 80px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
nav a {
  text-decoration: none;
  color: var(--blanco);
  font-weight: 600;
  font-size: 0.95rem;
}
nav a:hover { color: var(--blanco); }

.btn-contacto {
  background: var(--blanco);
  color: var(--magenta) !important;
  padding: 0.65rem 1.6rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn-contacto:hover {
  background: #f7f7f7;
}

/* Enlace activo = misma apariencia que Contacto */
nav a.activo {
  background: var(--blanco);
  color: var(--magenta) !important;
  padding: 0.65rem 1.6rem;
  border-radius: 4px;
  transition: background 0.2s;
}
nav a.activo:hover {
  background: #f7f7f7;
  color: var(--magenta) !important;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--blanco);
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.menu-toggle span::before,
.menu-toggle span::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
header.menu-abierto .menu-toggle span { background: transparent; }
header.menu-abierto .menu-toggle span::before { top: 0; transform: rotate(45deg); }
header.menu-abierto .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

.nav-logo { display: none; }

footer {
  background: var(--gris-footer);
  color: var(--blanco);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-info { font-size: 0.9rem; line-height: 1.5; }
.footer-info .empresa { font-weight: 700; margin-bottom: 0.35rem; }
.footer-info .contacto-linea { font-size: 0.85rem; color: rgba(255,255,255,0.9); }
.footer-info .contacto-linea span { margin: 0 0.5rem; opacity: 0.7; }
.footer-legal { font-size: 0.78rem; color: rgba(255,255,255,0.9); text-align: right; }
.footer-legal a { color: rgba(255,255,255,0.95); text-decoration: none; }

.btn-ver {
  display: inline-block;
  background: var(--oscuro);
  color: var(--blanco);
  padding: 0.35rem 1.4rem;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-ver:hover { background: #333; }

@media (max-width: 900px) {
  header { padding: 1rem 1.5rem; }
  nav { gap: 1rem; }
}
@media (max-width: 768px) {
  header { padding: 0.85rem 1.25rem; flex-wrap: wrap; }
  .menu-toggle { display: flex; order: 2; }
  nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
  }
  header.menu-abierto nav { display: flex; }
  nav a {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
  }
  nav a:last-child { border-bottom: none; }
  .btn-contacto { margin: 0.5rem 1rem 0; text-align: center; }
}
@media (max-width: 600px) {
  footer { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}
