@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* Girefox — blanco, grafito y azul. Sin dependencias de interfaz. */
:root {
  --blue: #1742cf;
  --blue-dark: #10329e;
  --ink: #171d26;
  --muted: #5b6572;
  --line: #dfe4eb;
  --paper: #f4f6f8;
  --white: #fff;
  --page-width: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.65 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; line-height: 1.15; letter-spacing: -.045em; }
h1 { font-size: clamp(2.8rem, 5.1vw, 4.8rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 600; margin-bottom: 22px; }
h3 { font-size: 1.5rem; font-weight: 600; }
.wrap { width: min(var(--page-width), calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 100px; }
.eyebrow { font-size: .8rem; letter-spacing: .04em; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: white; padding: 12px 18px; }
.skip-link:focus { top: 15px; }
.location-bar { background: var(--blue); color: white; font-size: .85rem; }
.location-bar .wrap { display: flex; justify-content: space-between; gap: 20px; padding-block: 8px; }
.location-bar strong { font-weight: 600; color: white; }
.location-bar :focus-visible { outline-color: white; }
.site-header { position: sticky; top: 0; z-index: 30; background: white; border-bottom: 1px solid var(--line); }
.navigation { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { width: 205px; flex-shrink: 0; }
.logo img { width: 100%; height: auto; }
#main-nav { display: flex; gap: 30px; align-items: center; font-size: .9rem; }
#main-nav a { padding-block: 12px; }
#main-nav a:hover, #main-nav a[aria-current=page] { color: var(--blue); }
#main-nav .nav-contact { background: var(--blue); color: white; padding: 11px 22px; border-radius: 5px; }
.nav-contact svg, .button svg, .inline-link svg, .contact-phone svg { display: none; }
.menu-button { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 24px; font-weight: 600; font-size: .94rem; border: 1px solid transparent; border-radius: 5px; cursor: pointer; transition: background .18s, color .18s; }
.button.primary { color: white; background: var(--blue); }
.button.primary:hover, #main-nav .nav-contact:hover { color: white; background: var(--blue-dark); }
.button.outline { border-color: var(--line); background: white; }
.button.outline:hover { border-color: var(--ink); }
.button.text-button { padding-inline: 0; border-radius: 0; text-decoration: underline; text-underline-offset: 7px; }
.button.text-button:hover, .inline-link:hover { color: var(--blue-dark); }
.button.white { background: white; color: var(--ink); }

/* Hero: fotografía abierta, sin marco ni etiquetas decorativas. */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; padding-block: 64px 70px; }
.hero h1 { margin-bottom: 25px; }
.hero h1 span { color: var(--blue); }
.hero-lead { max-width: 460px; font-size: 1.08rem; color: var(--muted); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-caption { margin-top: 34px; color: var(--muted); font-size: .85rem; }
.hero-caption p { margin: 0; }
.hero-art { margin: 0; min-width: 0; }
.hero-photo { aspect-ratio: 1 / 1.05; background: var(--paper); overflow: hidden; border-radius: 8px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-art figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 15px; font-size: .8rem; color: var(--muted); }
.hero-art figcaption span:first-child { color: var(--ink); }
.service-ribbon { background: #edf2ff; border-block: 1px solid #dbe5ff; }
.service-ribbon .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 30px; }
.service-ribbon span { font-size: 1.05rem; font-weight: 600; color: var(--blue-dark); border-left: 3px solid var(--blue); padding-left: 16px; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 44px; }
.section-intro h2 { margin-bottom: 0; }
.section-intro > p { max-width: 340px; margin-bottom: 0; color: var(--muted); }
.service-list { display: block; border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 1fr 1.45fr auto; gap: 35px; align-items: center; border-bottom: 1px solid var(--line); padding: 32px 0; }
.service-row h3 { margin: 0; font-size: 1.5rem; }
.service-row p { color: var(--muted); margin: 0; max-width: 510px; }
.service-row > a { font-size: .9rem; font-weight: 600; color: var(--blue); padding: 12px 18px; border: 1px solid var(--line); border-radius: 5px; text-align: center; min-width: 165px; }
.service-row > a:hover { background: var(--blue); border-color: var(--blue); color: white; }
.service-row > a svg { display: none; }
.equipment-preview { background: var(--paper); }
.product-grid { display: grid; gap: 36px; }
.home-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-photo { position: relative; background: white; border-radius: 6px; padding: 50px 24px 30px; display: grid; place-items: center; min-height: 320px; }
.product-photo img { height: 230px; width: 85%; object-fit: contain; }
.product-make { position: absolute; left: 22px; top: 18px; font-size: .8rem; color: var(--muted); letter-spacing: .06em; }
.product-open { position: absolute; right: 18px; bottom: 16px; font-size: 1.5rem; color: var(--blue); }
.product-copy { padding-top: 23px; }
.product-copy .eyebrow { font-size: .75rem; margin-bottom: 10px; }
.product-copy h3 { margin-bottom: 12px; }
.product-copy > p:not(.eyebrow) { color: var(--muted); }
.inline-link { color: var(--blue); font-size: .9rem; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.catalog-note { margin: 42px 0 0; border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; }
.catalog-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.catalog-note p { max-width: 500px; font-size: .85rem; }
.technical { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; align-items: center; }
.technical-photo { margin: 0; }
.technical-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.technical-photo > span { display: block; margin-top: 15px; font-size: .75rem; color: var(--muted); }
.technical-equipment { overflow: hidden; border-radius: 8px; }
.technical-equipment img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.catalog-more-photo { display: block; overflow: hidden; border-radius: 6px; }
.catalog-more-photo img { display: block; width: 100%; height: 360px; object-fit: cover; }
.catalog-more .product-copy { border-top: 3px solid var(--blue); padding: 23px 0 0; }
.catalog-more h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
@media (max-width: 780px) { .catalog-more-photo img { height: 310px; } }
.technical-copy > p { color: var(--muted); max-width: 420px; }
.page-intro { padding-block: 65px 45px; }
.page-intro-columns { display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.page-intro h1 { margin-bottom: 0; }
.page-intro-columns > p { max-width: 350px; margin: 0; color: var(--muted); }
.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 35px; gap: 55px 35px; }
.catalog-section { padding-bottom: clamp(64px, 7vw, 100px); }
.catalog-grid .product-card { display: flex; flex-direction: column; }
.catalog-grid .product-copy { display: flex; flex-direction: column; flex: 1; }
.catalog-grid .product-copy > .inline-link { align-self: flex-start; margin-top: auto; }
.catalog-grid .product-photo { background: var(--paper); min-height: 360px; }
.catalog-grid .product-photo img { height: 285px; }
.consult-strip { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: var(--paper); margin-block: 80px; padding: 42px; border-radius: 8px; }
.consult-strip .eyebrow { display: none; }
.consult-strip p { color: var(--muted); margin-bottom: 0; }

/* Contacto: la lógica y los destinos del formulario se mantienen. */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; padding-block: 80px 100px; border-top: 1px solid var(--line); }
.contact-intro h1, .contact-intro h2 { font-size: clamp(2.4rem, 4vw, 3.7rem); }
.contact-intro > p { color: var(--muted); max-width: 350px; }
.contact-links { display: grid; gap: 26px; margin-top: 40px; }
.contact-label { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 7px; }
.contact-links a { display: block; width: fit-content; overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--blue); }
.contact-links .contact-phone { font-size: 1.65rem; color: var(--ink); font-weight: 500; }
.contact-form { background: var(--paper); border-radius: 10px; padding: 36px; }
.contact-form h2 { font-size: 1.6rem; }
.channel-picker { border: 0; padding: 0; margin: 0 0 26px; }
.channel-picker legend { margin-bottom: 12px; font-size: .9rem; }
.channel-picker > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.channel-picker label { position: relative; }
.channel-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.channel-picker label > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 5px; padding: 13px; cursor: pointer; }
.channel-picker input:checked + span { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.channel-picker input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 4px; }
.contact-form label { display: block; margin-bottom: 18px; font-size: .9rem; font-weight: 500; }
.contact-form .channel-picker label { margin: 0; }
.contact-form label > small { color: var(--muted); font-weight: 400; }
.contact-form label > span:not(:last-child) { color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
input:not([type=radio], [type=hidden]), select, textarea { display: block; width: 100%; min-width: 0; margin-top: 7px; border: 1px solid #cbd2dc; border-radius: 4px; background: white; color: var(--ink); padding: 11px 12px; font-size: 1rem; }
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #697380; }
.contact-form .honeypot { display: none; }
.channel-note, .form-status { font-size: .85rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status a { text-decoration: underline; color: var(--blue); }
.submit-button { width: 100%; }
.submit-button:disabled { opacity: .65; cursor: wait; }
.location-section { background: var(--paper); padding-block: 72px; }
.location-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 65px; align-items: center; }
.location-copy h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); margin-bottom: 18px; }
.location-copy p { color: var(--muted); }
.location-copy address { font-style: normal; font-size: 1.35rem; margin-bottom: 28px; }
.location-copy address span { display: block; color: var(--muted); font-size: 1rem; margin-top: 3px; }
.location-map { border: 0; width: 100%; height: 350px; display: block; background: #e6eaf0; border-radius: 8px; }
.location-social { margin-top: 28px; display: flex; align-items: center; gap: 9px; font-size: .94rem; color: var(--blue); }
.thank-you { padding-block: 100px; text-align: center; max-width: 850px; }
.thank-you p { color: var(--muted); }
.success-mark { display: grid; place-items: center; width: 65px; height: 65px; border-radius: 50%; background: var(--paper); color: var(--blue); font-size: 2rem; margin: 0 auto 25px; }
.site-footer { padding-top: 60px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1fr .75fr 1.5fr .85fr; gap: 35px; padding-bottom: 45px; }
.footer-brand img { width: 190px; height: auto; margin-bottom: 22px; }
.footer-top h2 { font-size: .95rem; letter-spacing: 0; margin-bottom: 18px; }
.footer-top p, .footer-top > div > a { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 9px; overflow-wrap: anywhere; }
.footer-top a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); padding-block: 23px; font-size: .8rem; color: var(--muted); }
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 40px; color: white; background: #167347; box-shadow: 0 4px 18px #15252020; }
.whatsapp-float span { font-size: .9rem; }
.whatsapp-float:hover { background: #0c5d36; }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 56px); }
  #main-nav { gap: 20px; }
  .hero { gap: 36px; }
  .hero h1 { font-size: 3.5rem; }
  .technical, .contact-layout, .location-layout { gap: 45px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .product-grid { gap: 24px; }
  .product-photo { padding-inline: 15px; }
}
@media (max-width: 780px) {
  html { scroll-padding-top: 85px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding-block: 60px; }
  .navigation { min-height: 78px; }
  .logo { width: 178px; }
  .menu-button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 5px; background: white; }
  .menu-button span { width: 21px; height: 2px; background: var(--ink); }
  .menu-button[aria-expanded=true] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded=true] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  #main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 14px 20px 25px; background: white; border-bottom: 1px solid var(--line); }
  #main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #main-nav a { padding: 13px 0; }
  #main-nav .nav-contact { margin-top: 10px; text-align: center; padding: 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 42px; gap: 32px; }
  .hero h1 { font-size: clamp(2.5rem, 9.5vw, 4rem); }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-caption { margin-top: 20px; }
  .service-ribbon .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .section-intro, .page-intro-columns { display: block; }
  .section-intro > p, .section-intro > a, .page-intro-columns > p { margin-top: 22px; }
  .service-list { grid-template-columns: 1fr; gap: 20px; }
  .service-row { grid-template-columns: 1fr; gap: 16px; padding-block: 26px; }
  .service-row > a { justify-self: start; min-width: 0; }
  .home-products, .catalog-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-photo, .catalog-grid .product-photo { min-height: 310px; }
  .product-photo img, .catalog-grid .product-photo img { height: 240px; }
  .technical, .contact-layout, .location-layout { grid-template-columns: 1fr; gap: 32px; }
  .technical-copy { max-width: 550px; }
  .contact-layout { padding-block: 55px 65px; }
  .contact-form { padding: 26px; }
  .location-section { padding-block: 50px; }
  .location-map { height: 320px; }
  .catalog-note, .consult-strip { flex-direction: column; align-items: start; }
  .consult-strip { padding: 28px; margin-block: 50px; }
  .footer-top { gap: 30px; }
  .whatsapp-float { right: 16px; bottom: 16px; padding: 14px; }
  .whatsapp-float span { display: none; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .location-bar .wrap { gap: 10px; font-size: .75rem; }
  .location-bar .wrap > a { flex-shrink: 0; }
  .hero-actions { gap: 12px 20px; }
  .form-row, .channel-picker > div { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
