/*
 * Estilos principales para la landing page de BCP Papelería.
 * Diseñado para ser limpio, moderno y profesional con un toque
 * cálido mediante el uso de colores y animaciones suaves.
 */

/* Variables de color y tipografía */
:root {
  --primary: #2c3e50; /* tono oscuro para textos y barra */
  --accent: #f5a623; /* color de acento cálido */
  --light-accent: #e89b21; /* variación más oscura del acento para hover */
  --bg-color: #ffffff;
  --secondary-bg: #f7f7f7;
  --text-color: #333333;
  --font-family: 'Poppins', sans-serif;
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

header .logo span {
  color: var(--accent);
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

header nav ul li a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: var(--accent);
}

/* Enlace activo en el menú */
header nav ul li a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 35px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--light-accent);
}

/* Sections generic */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary);
  position: relative;
}

/* Products Section */
.products {
  background-color: var(--bg-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: #ffffff;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.product-card i {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.product-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.product-card p {
  font-size: 0.95rem;
  color: var(--text-color);
}

/* About Section */
.about {
  background-color: var(--secondary-bg);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 350px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-color);
}

.about-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
  background-color: var(--bg-color);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.contact-form {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: var(--font-family);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  width: fit-content;
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--light-accent);
}

.contact-info {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  color: var(--primary);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: var(--accent);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  header .logo {
    font-size: 1.5rem;
  }
  header nav ul {
    gap: 15px;
  }
}