:root {
  --bg: #fafafa;
  --text: #222;
  --accent: #2563eb; /* Azul principal */
  --card-bg: #fff;
  --border: #eee;
  --shadow: rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  position: relative;
}

/* Fondo sutil de libros */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.10;
  z-index: -2;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent);
}

main {
  margin-top: 80px;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 700;
  font-size: 2rem;
  color: #111;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f9f9ff 0%, #f0f7ff 100%);
  padding: 6rem 1.5rem;
  text-align: center;
  border-radius: 0 0 24px 24px;
  margin-top: -80px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 800;
  background: linear-gradient(90deg, #222, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 1.2rem;
}

.price {
  font-size: 1.2rem;
  margin: 0.8rem 0;
  font-weight: 600;
}

.delivery {
  color: #1d4ed8;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Botones CTA */
.cta-button,
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cta-button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Centrar botones */
#how .cta-button,
#contact .cta-button {
  display: block;
  margin: 1.5rem auto 0;
  width: fit-content;
  text-align: center;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 6px 20px var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 1rem;
  color: #111;
}

/* Portfolio */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: opacity 0.3s;
}

.gallery img:hover {
  opacity: 0.9;
}

/* Steps */
.steps {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  padding-left: 1.5rem;
  font-size: 1.2rem;
  counter-reset: step;
}

.steps li {
  margin-bottom: 1.2rem;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -2rem;
  background: var(--accent);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}

/* Contact */
.contact-number {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #777;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  nav {
    gap: 1rem;
  }
  .steps {
    font-size: 1rem;
  }
}

/* ==================== BANNER DE DESCUENTO 10% ==================== */
.discount-banner {
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 3px solid #f59e0b;
  text-align: center;
}

.discount-banner h3 {
  font-size: 1.8rem;
  color: #92400e;
  margin-bottom: 1rem;
}

.discount-text {
  font-size: 2rem;
  font-weight: 800;
  color: #dc2626;
  margin: 1rem 0;
}

.original-price {
  font-size: 1.3rem;
  color: #78716c;
  margin: 0.5rem 0;
}

.original-price s {
  color: #a8a29e;
}

.discounted-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #166534;
  margin: 1rem 0;
}

.discount-note {
  font-size: 1.1rem;
  color: #78716c;
  margin: 1.5rem 0 2rem;
  font-weight: 500;
}

.discount-tag {
  background: #dc2626;
  color: white;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-weight: bold;
  margin-left: 0.8rem;
}

@media (max-width: 600px) {
  .discount-banner {
    padding: 2rem 1.5rem;
  }
  .discount-text {
    font-size: 1.7rem;
  }
  .discounted-price {
    font-size: 1.9rem;
  }
}

.hero-logo {
  width: 250px;
  height: auto;
  margin-bottom: 1.2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
