/* =============================================
   PROYDES — Equipamiento Gastronómico
   Rediseño moderno 2024
   ============================================= */

:root {
  --orange:      #EF7D03;
  --orange-dark: #c96800;
  --dark:        #1a1a1a;
  --mid:         #2d2d2d;
  --gray:        #555555;
  --light-gray:  #f0f0f0;
  --white:       #ffffff;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --nav-height:  70px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }

/* ── Animaciones de entrada ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(.22,.68,0,1.2), transform 0.65s cubic-bezier(.22,.68,0,1.2);
}
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal].visible {
  opacity: 1;
  transform: none;
}
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }
[data-delay="7"] { transition-delay: 0.56s; }
[data-delay="8"] { transition-delay: 0.64s; }

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 46px;
  width: auto;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-links .btn-nav {
  background: var(--orange);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-links .btn-nav:hover { background: var(--orange-dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--dark);
  cursor: pointer;
  line-height: 1;
}

/* ── Hero ── */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: var(--dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/proydes equipamiento.png');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); opacity: 1; }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 760px;
  animation: heroFadeIn 1.1s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-brand {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--orange); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ── */
.section { padding: 90px 24px; }
.section-gray { background: var(--light-gray); }
.section-dark { background: var(--mid); color: var(--white); }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--orange);
  margin-top: 12px;
  border-radius: 2px;
}
.section-dark .section-title::after { background: var(--orange); }
.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 52px;
  max-width: 560px;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* ── Empresa ── */
.empresa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.empresa-text p {
  color: var(--gray);
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.8;
}
.empresa-highlights {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-left: 4px solid var(--orange);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.highlight-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  min-width: 80px;
}
.highlight-label {
  font-size: 0.95rem;
  color: var(--gray);
  font-weight: 500;
}

/* ── Productos ── */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.producto-card {
  display: block;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.producto-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.producto-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.14); }
.producto-card:hover::after { transform: scaleX(1); }
.producto-img {
  height: 180px;
  overflow: hidden;
  background: var(--dark);
}
.producto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.producto-card:hover .producto-img img { transform: scale(1.06); }
.producto-info {
  padding: 20px;
}
.producto-cat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 6px;
}
.producto-nombre {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.producto-desc {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ── Proyectos ── */
.proyectos-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.proyectos-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.proyectos-img img { width: 100%; height: 320px; object-fit: cover; }
.proyectos-text { }
.proyectos-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.proyectos-text li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.6;
}
.proyectos-text li::before {
  content: '';
  min-width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 7px;
}

/* ── Ubicación ── */
.ubicacion-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ubicacion-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.ubicacion-img img { width: 100%; height: auto; }
.ubicacion-data { display: flex; flex-direction: column; gap: 24px; }
.ubicacion-item h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 6px;
}
.ubicacion-item p { color: var(--gray); font-size: 0.98rem; }

/* ── Contacto ── */
.contacto-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.contacto-item h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 8px;
}
.contacto-item p, .contacto-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.98rem;
  line-height: 1.7;
}
.contacto-item a:hover { color: var(--orange); }

/* ── Footer ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.85rem;
}
footer .footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--white); padding: 20px 24px 28px; gap: 18px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--dark) !important; }
  .nav-toggle { display: block; }

  .empresa-grid,
  .proyectos-content,
  .ubicacion-content { grid-template-columns: 1fr; gap: 36px; }
  .proyectos-content { }
  .proyectos-img { order: -1; }

  .section { padding: 60px 20px; }
  .productos-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .productos-grid { grid-template-columns: 1fr 1fr; }
}

/* ══ PÁGINAS DE CATEGORÍA ══════════════════════════════════ */

.page-hero {
  padding-top: var(--nav-height);
  height: 320px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.30;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 40px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--orange); }
.page-cat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 8px;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-hero h1 span { color: var(--orange); }

.cat-intro {
  padding: 56px 24px 0;
}
.cat-intro p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 680px;
}

.items-section { padding: 40px 24px 80px; }
.items-section .section-title { margin-bottom: 8px; }
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.item-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-left: 3px solid transparent;
  border-radius: 8px;
  padding: 20px 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.item-card:hover {
  border-left-color: var(--orange);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.item-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.item-desc {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.5;
}

.page-cta {
  background: var(--orange);
  padding: 56px 24px;
  text-align: center;
}
.page-cta h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.page-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 28px;
}
.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--orange);
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}
.btn-white:hover { background: rgba(255,255,255,0.90); transform: translateY(-2px); }

@media (max-width: 768px) {
  .page-hero { height: 260px; }
  .items-grid { grid-template-columns: 1fr 1fr; }
  .cat-intro { padding-top: 40px; }
}
@media (max-width: 480px) {
  .items-grid { grid-template-columns: 1fr; }
}
