/* ═══════════════════════════════════════════════════════
   Ferretería Huesca – Hoja de estilos principal
   ═══════════════════════════════════════════════════════ */

/* ── RESET & VARIABLES ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Paleta de colores – modifica aquí para cambiar el tema */
  --steel:   #1a1a2e;   /* Fondo oscuro principal          */
  --iron:    #16213e;   /* Fondo hero                      */
  --rust:    #c0392b;   /* Color de acento (rojo ladrillo) */
  --amber:   #e67e22;   /* Color secundario (naranja)      */
  --gold:    #f1c40f;   /* Dorado (uso puntual)            */
  --cream:   #fdf6ec;   /* Fondo página                    */
  --warm:    #f5e6d0;   /* Fondo tarjetas servicios        */
  --text:    #2c2c2c;   /* Texto principal                 */
  --muted:   #6b6b6b;   /* Texto secundario                */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ── HEADER ───────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--steel);
  border-bottom: 3px solid var(--rust);
}

nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 68px;
}

.logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}

.logo-icon { width: 42px; height: 42px; }

.logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  color: #fff; line-height: 1.1;
  letter-spacing: .04em;
}

.logo-text span { color: var(--amber); }

nav ul {
  list-style: none;
  display: flex; gap: 2.2rem; align-items: center;
}

nav ul a {
  font-family: 'Oswald', sans-serif;
  font-size: .95rem; font-weight: 400; letter-spacing: .08em;
  text-transform: uppercase;
  color: #ccc; text-decoration: none;
  transition: color .2s;
}

nav ul a:hover { color: var(--amber); }

.nav-cta {
  background: var(--rust);
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: 3px;
  transition: background .2s !important;
}

.nav-cta:hover { background: #a93226 !important; }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  background: var(--iron);
  display: flex; align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(192,57,43,.18) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 28px,
      rgba(255,255,255,.025) 28px,
      rgba(255,255,255,.025) 29px
    );
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 5rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700; line-height: 1.05;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--rust);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.08rem; line-height: 1.7;
  color: #b0b8c8; max-width: 480px;
}

.hero-btns {
  margin-top: 2.4rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
}

/* ── BOTONES ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--rust); color: #fff;
  font-family: 'Oswald', sans-serif; font-size: 1rem; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none;
  padding: .85rem 2rem; border-radius: 3px;
  transition: background .2s, transform .15s;
}

.btn-primary:hover { background: #a93226; transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid rgba(255,255,255,.35); color: #fff;
  font-family: 'Oswald', sans-serif; font-size: 1rem; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none;
  padding: .8rem 1.8rem; border-radius: 3px;
  transition: border-color .2s, color .2s;
}

.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

/* ── HERO BADGE ───────────────────────────────────────── */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}

.hero-badge {
  width: 320px; height: 320px;
  background: conic-gradient(from 200deg, var(--rust), var(--amber), var(--rust));
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 0 80px rgba(192,57,43,.4);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 80px rgba(192,57,43,.4); }
  50%      { box-shadow: 0 0 120px rgba(192,57,43,.65); }
}

.hero-badge-text {
  font-family: 'Oswald', sans-serif;
  color: #fff; text-align: center; line-height: 1.15;
}

.hero-badge-text .big   { font-size: 3.8rem; font-weight: 700; display: block; }
.hero-badge-text .small { font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }

/* ── SECCIONES GENÉRICAS ──────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }

.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: .75rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--rust); margin-bottom: .6rem;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 600;
  color: var(--steel); line-height: 1.1;
  margin-bottom: 3rem;
}

/* ── CATEGORÍAS ───────────────────────────────────────── */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cat-card {
  background: #fff;
  border-radius: 6px;
  padding: 2rem;
  border-top: 4px solid transparent;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  cursor: default;
}

.cat-card:hover { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.cat-card.rust  { border-color: var(--rust); }
.cat-card.amber { border-color: var(--amber); }
.cat-card.steel { border-color: var(--steel); }

.cat-icon { font-size: 2.6rem; margin-bottom: 1rem; }

.cat-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem; font-weight: 600;
  color: var(--steel); margin-bottom: .6rem;
}

.cat-card p { font-size: .93rem; color: var(--muted); line-height: 1.6; }

.cat-list {
  margin-top: 1rem; padding-left: 1rem;
  list-style: disc; color: var(--muted); font-size: .88rem; line-height: 1.8;
}

/* ── STRIP BANNER ─────────────────────────────────────── */
.strip {
  background: var(--rust);
  padding: 3.5rem 2rem;
  text-align: center;
}

.strip h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700;
  color: #fff; margin-bottom: .5rem;
}

.strip p {
  color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 1.8rem;
}

.strip .btn-white {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--rust);
  font-family: 'Oswald', sans-serif; font-size: 1rem; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none;
  padding: .85rem 2rem; border-radius: 3px;
  transition: opacity .2s;
}

.strip .btn-white:hover { opacity: .9; }

/* ── SERVICIOS ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.srv {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.4rem; background: var(--warm);
  border-radius: 6px;
}

.srv-icon { font-size: 2rem; flex-shrink: 0; }

.srv h4 {
  font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 600;
  color: var(--steel); margin-bottom: .3rem;
}

.srv p { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* ── CONTACTO ─────────────────────────────────────────── */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}

.contact-info h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem; font-weight: 600; color: var(--steel);
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex; gap: 1rem; margin-bottom: 1.4rem;
}

.info-item .ico { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }

.info-item strong {
  font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600;
  color: var(--steel); display: block; margin-bottom: .25rem;
}

.info-item p, .info-item a {
  font-size: .93rem; color: var(--muted); text-decoration: none; line-height: 1.55;
}

.info-item a:hover { color: var(--rust); }

/* ── REDES SOCIALES ───────────────────────────────────── */
.social-links { margin-top: .4rem; display: flex; flex-wrap: wrap; gap: .6rem; }

.social-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 4px;
  font-family: 'Oswald', sans-serif; font-size: .9rem; letter-spacing: .05em;
  text-decoration: none; transition: opacity .2s, transform .15s;
}

.social-btn:hover { opacity: .88; transform: translateY(-2px); color: inherit !important; }

.social-btn.facebook { background: #1877f2; color: #fff !important; }

/* ── HORARIO ──────────────────────────────────────────── */
.horario-table {
  width: 100%; border-collapse: collapse;
  margin-top: .5rem; font-size: .9rem;
}

.horario-table td { padding: .3rem 0; color: var(--muted); }
.horario-table td:first-child { color: var(--text); font-weight: 600; width: 140px; }

/* ── MAPA ─────────────────────────────────────────────── */
.map-frame {
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  aspect-ratio: 4/3;
}

.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--steel);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 2rem;
  font-size: .85rem;
}

footer strong { color: rgba(255,255,255,.85); }

/* ── DIVIDER ──────────────────────────────────────────── */
.divider {
  height: 3px;
  background: linear-gradient(90deg, var(--rust), var(--amber), var(--rust));
}

/* ── ANIMACIONES DE ENTRADA ───────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  animation: fadeUp .65s ease forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }
.delay-4 { animation-delay: .6s; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  nav ul { display: none; }

  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }

  .hero h1 { font-size: 2.5rem; }
}


