/* style.css - VAFERGER: Versión Integrada y Profesional */

: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 --- */
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; 
}

.brand img { 
  height: 60px; 
  transition: transform 0.3s; 
}
.brand img:hover { transform: scale(1.03); }

.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; 
}

.nav-links a:hover, .nav-links a.active { 
  color: var(--primary); 
  font-weight: 700; 
}

.menu-toggle { 
  display: none; 
  background: none; 
  border: none; 
  font-size: 24px; 
  color: var(--primary); 
  cursor: pointer; 
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: 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: 0 auto 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, background 0.3s; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
  border: none; 
}

.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); color: white; }

/* Botón especial WhatsApp */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  background-color: #25D366;
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* --- Secciones y Grid --- */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h3 { color: var(--primary-dark); font-size: 2rem; }

.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; 
}
.card:hover { transform: translateY(-5px); border-color: var(--primary); }
.card img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }
.small { font-size: 0.9rem; color: var(--text-light); }

/* --- Formulario de Contacto --- */
label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.85rem; color: var(--text-main); }

input, textarea { 
  width: 100%; 
  padding: 12px; 
  margin-bottom: 20px; 
  border-radius: 8px; 
  border: 1px solid #d1d5db; 
  font-family: inherit; 
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus { 
  outline: none; 
  border-color: var(--primary); 
  box-shadow: 0 0 0 3px rgba(14, 122, 184, 0.1);
}

/* --- Footer y Redes --- */
footer { 
  background: var(--text-main); 
  color: var(--white); 
  padding: 40px 24px; 
  text-align: center; 
  margin-top: auto; 
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

.social-links a {
  color: var(--white);
  font-size: 24px;
  transition: transform 0.3s, color 0.3s;
}

.social-links a:hover { transform: translateY(-3px); }
.social-links .fa-facebook:hover { color: #1877F2; }
.social-links .fa-instagram:hover { color: #E4405F; }
.social-links .fa-tiktok:hover { color: #00f2ea; }

footer .small { color: #9ca3af; }

/* --- Responsive --- */
@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: 20px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
  }
  .nav-links.active { display: flex; }
  .hero h1 { font-size: 2rem; }
  .social-links { gap: 15px; }
}