/* Los títulos, la llamada a la acción y los controles se superponen al banner. */
.banner-slider { position: relative; background: #111827; isolation: isolate; }
.slider-stage { position: relative; height: clamp(490px, 42vw, 660px); overflow: hidden; background: #111827; touch-action: pan-y pinch-zoom; }
.slider-stage::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, #0c1425ed 0%, #0c1425b8 38%, #0c142526 75%), linear-gradient(0deg, #0c1425aa, transparent 45%); }
.banner-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 850ms cubic-bezier(.22,.61,.36,1), visibility 850ms; }
.banner-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.banner-slide a { display: block; width: 100%; height: 100%; }
.banner-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; }
.banner-slide a:focus-visible { outline-offset: -5px; }
.slider-toolbar { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding: 45px 0 95px; pointer-events: none; }
.slider-caption { max-width: 610px; min-width: 0; }
.slider-caption .eyebrow { display: inline-block; color: #fff; border-left: 3px solid #ec3030; padding-left: 12px; }
.slider-caption h2 { color: #fff; font-size: clamp(34px, 3.9vw, 56px); letter-spacing: -1.6px; line-height: 1.14; margin: 19px 0; text-shadow: 0 2px 18px #0003; }
.slider-caption p { max-width: 460px; font-size: 14px; line-height: 1.7; color: #edf0f7; margin: 0; }
.slider-toolbar > .button { pointer-events: auto; min-height: 49px; padding: 16px 27px; border-radius: 6px; background: #d10000; box-shadow: 0 8px 24px #0003; }
.slider-controls { position: absolute; bottom: 26px; right: 0; display: flex; align-items: center; gap: 3px; pointer-events: auto; padding: 0; border: 0; background: transparent; opacity: .7; transition: opacity .2s; }
.slider-controls:hover, .slider-controls:focus-within { opacity: 1; }
.slider-controls > button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 20px; text-shadow: 0 1px 4px #000; }
.slider-controls > button:hover { background: #ffffff15; color: #fff; }
.slider-controls #slide-pause { font-size: 14px; margin-left: 5px; }
.slider-dots { display: flex; gap: 0; }
.slider-dots button { border: 0; padding: 0; width: 26px; height: 42px; background: transparent; display: grid; place-items: center; }
.slider-dots button::after { content: ''; width: 5px; height: 5px; background: #ffffff80; border-radius: 9px; transition: width .3s, background .3s; }
.slider-dots button[aria-current=true]::after { width: 16px; background: #fff; }
.benefits { width: 100%; max-width: none; padding: 27px max(40px, calc((100% - 1160px) / 2)); background: #f2f4f8; border-bottom: 1px solid #e1e5ed; }
.benefits > div { border-color: #dce1eb; }
.about-section { padding: 85px 0; background: #fff; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.about-photo { position: relative; margin: 0; padding-bottom: 17px; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.about-photo::after { content: ''; position: absolute; bottom: 0; left: 25px; right: -15px; top: 25px; z-index: -1; background: #f4e5e5; border-radius: 4px; }
.about-photo { isolation: isolate; }
.about-photo figcaption { position: absolute; left: 20px; bottom: 0; background: var(--brand-red); color: #fff; padding: 15px 20px; font-size: 9px; letter-spacing: 1.4px; }
.about-copy h2 { font-size: clamp(29px, 3vw, 43px); line-height: 1.2; margin: 15px 0 20px; }
.about-copy p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.about-copy .button { margin-top: 12px; }
#categorias { max-width: none; width: 100%; padding: 75px max(40px, calc((100% - 1160px) / 2)); background: #f0f3f8; border-top: 1px solid #e0e5ee; border-bottom: 1px solid #e0e5ee; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { margin-top: 12px; }
.category-card { border-radius: 5px; box-shadow: 0 6px 20px #1f337405; transition: transform .3s, box-shadow .3s, border-color .3s, background .3s; }
.category-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px #1f337412; }
.category-card[data-category="maquinaria"] { grid-column: span 2; background: var(--brand-blue); color: #fff; }
.category-card[data-category="maquinaria"] h3 { color: #fff; max-width: none; }
.category-card[data-category="maquinaria"] p { color: #e1e7f7; max-width: none; }
.category-card[data-category="maquinaria"] .category-arrow, .category-card[data-category="maquinaria"] small { color: #fff; }
.category-card[data-category="maquinaria"] .category-symbol { background: #ffffff1a; color: #fff; }
.catalog-section { position: relative; background: #fff; padding: 80px 0; }
.catalog-section::before { content: ''; display: block; width: 70px; height: 4px; background: var(--brand-red); position: absolute; top: 0; left: max(40px, calc((100% - 1160px) / 2)); }
.product-card { transition: transform .3s, box-shadow .3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px #1f337412; }
.steps-section { background: var(--brand-blue); padding: 60px 0; color: white; }
.steps-heading { text-align: center; }
.steps-heading .eyebrow { color: #dce4ff; }
.steps-heading h2 { color: #fff; font-size: 30px; margin: 13px 0 35px; }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps-list li { display: flex; align-items: flex-start; gap: 18px; border-top: 1px solid #ffffff30; padding-top: 25px; }
.steps-list li > span { font-size: 32px; font-weight: 600; color: #b7c7f6; line-height: 1.3; }
.steps-list h3 { font-size: 16px; margin-bottom: 8px; }
.steps-list p { font-size: 12px; color: #dce4fb; line-height: 1.7; margin: 0; }
.contact-section { padding: 70px 0; border-top: 6px solid #fff; }
.button:hover { transform: translateY(-2px); }
.reveal-section.is-visible { animation: section-enter 650ms cubic-bezier(.22,.61,.36,1) both; }
@keyframes section-enter { from { opacity: .35; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
  .slider-caption { max-width: 530px; }
  .about-layout { gap: 35px; }
}
@media (max-width: 760px) {
  .slider-stage { height: 530px; }
  .slider-stage::after { background: linear-gradient(90deg, #0c1425e6, #0c142585), linear-gradient(0deg, #0c1425b8, transparent); }
  .slider-toolbar { padding: 32px 0 110px; gap: 22px; }
  .slider-caption { max-width: 440px; }
  .slider-caption h2 { font-size: clamp(30px, 8vw, 43px); letter-spacing: -1px; margin: 18px 0; }
  .slider-caption p { font-size: 13px; }
  .slider-controls { bottom: 22px; right: 0; left: 0; width: fit-content; margin: auto; justify-content: center; gap: 6px; padding: 7px 10px; }
  .slider-controls > button { width: 44px; height: 44px; }
  .slider-dots button { width: 36px; height: 44px; }
  .benefits { padding: 5px 18px; }
  .about-section { padding: 48px 0; }
  .about-layout { grid-template-columns: 1fr; gap: 35px; }
  .about-photo::after { right: 0; }
  .about-photo figcaption { left: 12px; padding: 12px; font-size: 8px; }
  #categorias { padding: 48px 18px; }
  .catalog-section { padding: 48px 0; }
  .catalog-section::before { left: 18px; }
  .steps-section { padding: 45px 0; }
  .steps-heading { text-align: left; }
  .steps-heading h2 { font-size: 26px; }
  .steps-list { grid-template-columns: 1fr; gap: 22px; }
  .contact-section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-slide, .category-card, .product-card { transition: none; }
  .reveal-section.is-visible { animation: none; }
  .button:hover, .category-card:hover, .product-card:hover { transform: none; }
}
