/* --- Modern, Warm & Professional | base -----------------------------------
   Reset, variables de diseño, tipografía del body, utilidades compartidas
   por TODAS las páginas y títulos de sección.

   Se carga siempre, antes que header.css / footer.css / catalog.css y de los
   CSS de cada página. Las variables de :root son el contrato visual del sitio:
   ninguna otra hoja redefine la paleta.
   ------------------------------------------------------------------------ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e74c3c;
  --primary-light: #ff6b53;
  --primary-dark: #c0392b;
  --accent: #f39c12;
  --warm-bg-1: #fff8f5;
  --warm-bg-2: #fdf5f2;
  --warm-bg-3: #fdf9f7;
  --dark-text: #2c3e50;
  --light-text: #7f8c8d;
  --white: #ffffff;
  --shadow: 0 6px 20px rgba(231, 76, 60, 0.12);
  --shadow-deep: 0 10px 30px rgba(231, 76, 60, 0.2);
  --radius: 18px;
  --border-light: #ddd;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: var(--dark-text);
  background-color: var(--warm-bg-1);
  overflow-x: hidden;
}

/* Layout container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ================= SKIP NAV ================= */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-nav:focus {
  top: 0;
}

/* ================= GENERAL SECTIONS ================= */
section {
  scroll-margin-top: 80px;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin: 2.5rem auto 2.5rem;
  color: var(--dark-text);
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 2px;
}

/* Etiqueta accesible para inputs que ya muestran su placeholder. */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2.1rem;
  }
}
