/* style.css - VAFERGER Final Optimizado */
:root {
  --primary: rgb(14, 122, 184); /* Azul VAFERGER */
  --primary-dark: #0b5f83;
  --secondary: #f3f4f6; /* Fondo gris claro */
  --text-main: #1f2937; /* Texto oscuro */
  --text-light: #6b7280; /* Texto gris */
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Base y Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
  font-family: 'Poppins', sans-serif; 
  color: var(--text-main); 
  background: var(--secondary); 
  line-height: 1.6; 
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Contenedor principal */
.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 30px 24px; 
}
main {
  flex-grow: 1; 
}

/* --- Header y Navegación (Optimización PC) --- */
header { 
  background: var(--white); 
  box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
  position: sticky; 
  top: 0; 
  z-index: 1000; 
}

.navbar { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 15px 24px; 
  max-width: 1200px; 
  margin: 0 auto; 
}

.brand img { 
  height: 60px; /* Tamaño del logo en PC */
  transition: transform 0.3s; 
}
.brand img:hover { transform: scale(1.03); }
.brand a { display: flex; align-items: center; text-decoration: none; }

.nav-links { 
  display: flex; 
  gap: 25px; 
  list-style: none; 
}

.nav-links a { 
  text-decoration: none; 
  color: var(--text-main); 
  font-weight: 500; 
  transition: color 0.3s; 
  padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active { 
  color: var(--primary); 
  font-weight: 700; 
}

/* Botón Menú Móvil (Oculto en PC) */
.menu-toggle { 
  display: none; 
  background: none; 
  border: none; 
  font-size: 24px; 
  color: var(--primary); 
  cursor: pointer; 
}

/* --- Hero Section (Portada) --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 { font-size: 2.8rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.1rem; opacity: 0.95; max-width: 700px; margin-bottom: 30px; }

/* Botones */
.btn { 
  display: inline-block; 
  background: var(--white); 
  color: var(--primary); 
  padding: 12px 30px; 
  border-radius: 50px; 
  font-weight: 700; 
  text-decoration: none; 
  transition: transform 0.3s, box-shadow 0.3s; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
  border: none; 
  cursor: pointer; 
}
.btn:hover { transform: translateY(-3px); background: #f0f9ff; box-shadow: 0 8px 15px rgba(0,0,0,0.15); }
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-dark); }

/* Secciones y Títulos */
.section-title { 
  text-align: center; 
  margin-bottom: 50px; 
}
.section-title h3 { 
  color: var(--primary-dark); 
  font-size: 2rem; 
  margin-bottom: 10px; 
}

/* --- Sistema de Tarjetas (Grid para PC y Móvil) --- */
.grid-system {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card { 
  background: var(--white); 
  border-radius: 12px; 
  padding: 25px; 
  box-shadow: var(--shadow); 
  transition: transform 0.3s; 
  border: 1px solid #e5e7eb; 
  overflow: hidden; 
}
.card:hover { 
  transform: translateY(-5px); 
  border-color: var(--primary); 
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card img { 
  width: 100%; 
  height: 200px; 
  object-fit: cover; 
  border-radius: 8px; 
  margin-bottom: 15px; 
}

.card h4 { 
  color: var(--primary-dark); 
  margin-bottom: 10px; 
  font-size: 1.25rem; 
}
.small { font-size: 0.9rem; color: var(--text-light); }


/* Forms */
input, textarea { 
  width: 100%; 
  padding: 12px; 
  margin-top: 8px; 
  margin-bottom: 20px; 
  border-radius: 8px; 
  border: 1px solid #d1d5db; 
  font-family: inherit; 
}
input:focus, textarea:focus { 
  outline: none; 
  border-color: var(--primary); 
  box-shadow: 0 0 0 2px rgba(14, 122, 184, 0.2);
}


/* --- Footer --- */
footer { 
  background: var(--text-main); 
  color: var(--white); 
  padding: 40px 24px; 
  text-align: center; 
  margin-top: auto; 
}
footer .small { color: #9ca3af; }


/* --- Responsive (Menú móvil) --- */
@media (max-width: 768px) {
  .menu-toggle { display: block; } 
  
  .nav-links { 
    display: none; 
    position: absolute; 
    top: 90px; 
    left: 0; 
    width: 100%; 
    background: var(--white); 
    flex-direction: column; 
    padding: 10px 20px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
  }
  
  .nav-links.active { display: flex; }
  
  .nav-links a { 
    padding: 10px 0; 
    border-bottom: 1px solid #eee; 
    color: var(--text-main);
  }
  
  .hero h1 { font-size: 2rem; }
  .brand img { height: 50px; } 
}