/* Inicio y elementos compartidos de TecnoMetal. */
html { scroll-behavior: smooth; }
#destacados, #servicios, #nosotros { scroll-margin-top: 25px; }
.tm-icon { width:24px; height:24px; flex-shrink:0; vertical-align:middle; }
.tm-contact-bar { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:10px 6%; background:#262b2e; color:#dbe0e2; font-size:12px; }
.tm-contact-bar > div { display:flex; gap:25px; align-items:center; }
.tm-contact-bar a { color:inherit; text-decoration:none; }
.tm-contact-bar .tm-icon { width:15px; height:15px; margin-right:7px; }
header.tm-header { min-height:115px; padding:22px 6%; display:flex; flex-direction:row; align-items:center; gap:25px; background:#171b1e; border-bottom:1px solid #34393d; }
.tm-header .marca { margin-right:auto; }
.tm-header .marca-nombre { font-size:38px; }
.tm-header nav { gap:28px; }
.tm-header nav a { font-size:15px; }
.tm-social { display:flex; gap:10px; align-items:center; }
.tm-social a { display:flex; align-items:center; justify-content:center; width:42px; height:42px; border:1px solid #515659; border-radius:50%; color:#fff; text-decoration:none; transition:background .2s; }
.tm-social a:hover { background:#d44f00; border-color:#ff7925; }
.tm-home { background:#f8f7f4; overflow:clip; }
.tm-home h1, .tm-home h2, .tm-home h3 { line-height:1.1; letter-spacing:-1px; }
.tm-eyebrow { font-size:11px; font-weight:800; letter-spacing:2px; color:#a84300; margin:0 0 20px; }
.tm-season-hero { display:grid; grid-template-columns:1.1fr 1fr; min-height:580px; background:#171b1e; color:#fff; }
.tm-hero-copy { padding:80px 6vw 65px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.tm-hero-copy .tm-eyebrow { color:#ff974f; }
.tm-hero-copy h1 { font-size:clamp(46px,5.9vw,84px); font-weight:800; margin:0 0 25px; letter-spacing:-3px; }
.tm-hero-copy em { font-style:normal; color:#ff7925; }
.tm-hero-copy > p:not(.tm-eyebrow):not(.tm-hero-location) { font-size:18px; max-width:520px; color:#c9ced1; }
.tm-actions { margin-top:30px; display:flex; flex-direction:column; align-items:flex-start; gap:20px; }
.tm-home .boton { display:inline-flex; align-items:center; justify-content:center; gap:10px; font-size:14px; font-weight:700; border-radius:3px; padding:15px 22px; background:#ff7925; color:#171b1e; }
.tm-home .boton:hover { background:#ff964f; transform:translateY(-2px); }
.tm-hero-secondary { color:#fff; text-decoration:none; font-size:14px; border-bottom:1px solid #666; padding-bottom:4px; }
.tm-hero-copy .tm-hero-location { font-size:10px; letter-spacing:2px; margin-top:45px; color:#9ca5aa; }
.tm-hero-photo { position:relative; min-width:0; display:grid; place-items:center; padding:35px; border-left:1px solid #373c40; background:linear-gradient(135deg,transparent 48%,#ffffff06 49%,transparent 50%),repeating-linear-gradient(0deg,transparent 0 49px,#ffffff04 49px 50px),repeating-linear-gradient(90deg,transparent 0 49px,#ffffff04 49px 50px),#22272b; }
.tm-hero-photo > img { width:min(90%,440px); height:auto; object-fit:contain; filter:drop-shadow(0 12px 24px #0005); }
.tm-photo-note { position:absolute; bottom:35px; left:35px; color:#b4bdc1; font-size:10px; letter-spacing:2px; }
.tm-photo-note strong { display:block; color:#fff; font-size:15px; font-weight:500; letter-spacing:0; margin-top:6px; }
.tm-benefits { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; padding:35px 5%; background:#fff; border-bottom:1px solid #e4e3df; }
.tm-benefit { display:flex; gap:13px; padding:12px 18px; border-right:1px solid #e7e5e0; }
.tm-benefit:last-child { border-right:0; }
.tm-benefit > .tm-icon { color:#c55004; width:30px; height:30px; }
.tm-benefit h2 { font-size:14px; line-height:1.4; letter-spacing:0; margin:0 0 6px; }
.tm-benefit p { font-size:12px; line-height:1.6; color:#666; margin:0; }
.tm-section { padding:85px 6%; max-width:1540px; margin:auto; }
.tm-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; margin-bottom:40px; }
.tm-section-heading h2 { font-size:clamp(30px,3.4vw,46px); max-width:650px; }
.tm-section-heading > p { max-width:320px; font-size:15px; color:#626a6e; }
.tm-text-link { display:inline-flex; gap:12px; align-items:center; text-decoration:none; color:#252a2d; font-size:14px; font-weight:700; border-bottom:1px solid #bdbbb5; padding-bottom:7px; }
.tm-text-link:hover { color:#a84300; }
.tm-featured-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.tm-featured-card { background:#fff; border:1px solid #e1dfd8; }
.tm-featured-image { display:block; height:360px; overflow:hidden; position:relative; background:#ddd; }
.tm-featured-image img { width:100%; height:100%; object-fit:cover; object-position:center; transition:transform .5s; }
.tm-featured-image:hover img { transform:scale(1.035); }
.tm-featured-image span { position:absolute; left:20px; top:20px; background:#fff; padding:7px 11px; color:#262b2e; font-size:10px; letter-spacing:1.4px; font-weight:bold; }
.tm-featured-copy { padding:28px; }
.tm-featured-copy h3 { font-size:25px; margin-bottom:12px; }
.tm-featured-copy > p { color:#686c6e; font-size:14px; }
.tm-featured-bottom { margin-top:25px; display:flex; justify-content:space-between; align-items:center; gap:15px; }
.tm-featured-price { font-size:30px; font-weight:800; white-space:nowrap; }
.tm-featured-price small { font-size:10px; font-weight:500; color:#666; }
.tm-service-banner { padding:32px 6%; background:#ff7925; display:flex; justify-content:space-between; align-items:center; gap:25px; }
.tm-service-banner > span { font-size:10px; font-weight:800; letter-spacing:1.8px; }
.tm-service-banner p { font-size:clamp(23px,2.7vw,36px); font-weight:700; letter-spacing:-1px; }
.tm-service-banner a { text-decoration:none; color:#1b2023; display:flex; gap:12px; align-items:center; font-weight:700; }
.tm-services { padding-bottom:45px; }
.tm-service-row { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:7%; padding:50px 0; border-bottom:1px solid #dddcd5; }
.tm-service-row:last-child { border:0; }
.tm-service-reverse .tm-service-visual { order:2; }
.tm-service-visual { position:relative; margin:0; min-width:0; }
.tm-service-visual img { width:100%; height:auto; max-height:460px; object-fit:cover; display:block; border-radius:3px; }
.tm-service-visual figcaption { position:absolute; left:16px; bottom:14px; background:#171b1ee8; color:#ddd; font-size:10px; letter-spacing:1px; padding:5px 10px; }
.tm-service-copy h3 { font-size:clamp(28px,3.1vw,44px); margin-bottom:22px; }
.tm-service-copy .tm-service-subtitle { font-size:19px; color:#343a3e; margin-bottom:15px; }
.tm-service-copy > p:not(.tm-eyebrow):not(.tm-service-subtitle):not(.tm-service-tags) { color:#626a6e; font-size:16px; }
.tm-service-copy .tm-service-tags { color:#8b450c; font-size:12px; font-weight:bold; margin:22px 0; }
.tm-about { background:#e9e7df; padding:65px 6%; display:grid; grid-template-columns:1fr 1fr; gap:7%; }
.tm-about h2 { font-size:clamp(28px,3vw,42px); }
.tm-about > div > p:not(.tm-eyebrow) { color:#535b5e; margin-bottom:25px; }
.tm-closing { text-align:center; padding:85px 6%; background:#fff; }
.tm-closing h2 { font-size:clamp(30px,3.7vw,50px); margin-bottom:20px; }
.tm-closing > p:not(.tm-eyebrow) { margin-bottom:25px; color:#60676a; }
footer.tm-footer { background:#171b1e; color:#c7cdcf; padding:60px 6% 90px; margin:0; text-align:left; }
.tm-footer-grid { display:grid; grid-template-columns:1.05fr .85fr .9fr 1.2fr; gap:40px; }
.tm-footer h2 { font-size:15px; color:#fff; margin:0 0 20px; }
.tm-footer p,.tm-footer a { font-size:13px; }
.tm-footer-grid > div > a { display:block; color:#c7cdcf; text-decoration:none; margin-top:10px; overflow-wrap:anywhere; }
.tm-footer a:hover { color:#ff974f; }
.tm-footer .tm-footer-brand { font-size:32px; font-weight:800; color:#d1d4d6; line-height:1; margin-bottom:20px; }
.tm-footer-brand span { color:#ff7925; }
.tm-footer .tm-social { margin-top:22px; }
.tm-footer .tm-footer-hours { font-size:24px; color:#fff; font-weight:700; margin:5px 0 15px; }
.tm-footer-bottom { margin-top:45px; padding-top:20px; border-top:1px solid #3a4144; display:flex; justify-content:space-between; gap:20px; font-size:11px; }
.tm-footer-bottom a { color:#c7cdcf; text-decoration:none; font-size:11px; }
.tm-whatsapp-float { position:fixed; bottom:24px; left:24px; z-index:900; display:flex; align-items:center; gap:10px; background:#25d366; color:#092712; padding:15px; border-radius:40px; box-shadow:0 5px 20px #0003; text-decoration:none; transition:transform .2s; }
.tm-whatsapp-float .tm-icon { width:29px; height:29px; }
.tm-whatsapp-float span { font-size:12px; font-weight:700; padding-right:5px; }
.tm-whatsapp-float:hover { transform:translateY(-3px); }
.tm-home a:focus-visible,.tm-header a:focus-visible,.tm-footer a:focus-visible,.tm-whatsapp-float:focus-visible { outline:3px solid #e65b06; outline-offset:5px; }
.tm-reveal { opacity:1; transform:none; }
.tm-reveal.tm-reveal-pending { opacity:0; transform:translateX(-65px); }
.tm-reveal.tm-reveal-pending[data-direction="right"] { transform:translateX(65px); }
.tm-reveal.tm-reveal-ready { transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1); }
@media(max-width:1100px) {
 .tm-benefits { grid-template-columns:repeat(3,1fr); row-gap:20px; }
 .tm-benefit:nth-child(3) { border:0; }
 header.tm-header { flex-wrap:wrap; }
 .tm-header .marca-nombre { font-size:32px; }
 .tm-header nav { gap:20px; }
 .tm-footer-grid { grid-template-columns:1fr 1fr; }
 .tm-featured-bottom { align-items:flex-start; flex-direction:column; }
}
@media(max-width:800px) {
 header.tm-header { justify-content:space-between; min-height:auto; padding:22px 5%; gap:22px; }
 .tm-header nav { order:3; width:100%; justify-content:center; gap:24px; flex-wrap:wrap; }
 .tm-header .marca { align-items:flex-start; }
 .tm-header .marca-subtitulo { text-align:center; }
 .tm-contact-bar { padding:10px 5%; font-size:11px; }
 .tm-top-email { display:none; }
 .tm-season-hero { min-height:0; grid-template-columns:1fr; }
 .tm-hero-copy { padding:55px 6% 40px; }
 .tm-hero-copy h1 { font-size:60px; }
 .tm-hero-copy .tm-hero-location { margin-top:25px; }
 .tm-hero-photo { min-height:270px; border-top:1px solid #393d40; }
 .tm-hero-photo > img { width:240px; padding-bottom:50px; }
 .tm-photo-note { left:auto; bottom:20px; text-align:center; }
 .tm-benefits { grid-template-columns:1fr 1fr; padding:25px 4%; }
 .tm-benefit:nth-child(3) { border-right:1px solid #e7e5e0; }
 .tm-benefit:nth-child(even) { border:0; }
 .tm-benefit:last-child { grid-column:1/-1; justify-content:center; }
 .tm-section { padding:55px 6%; }
 .tm-section-heading { flex-direction:column; align-items:flex-start; gap:20px; }
 .tm-featured-grid { grid-template-columns:1fr; }
 .tm-featured-image { height:360px; }
 .tm-featured-bottom { flex-direction:row; align-items:center; }
 .tm-service-banner { flex-direction:column; text-align:center; gap:10px; }
 .tm-service-row { grid-template-columns:1fr; gap:30px; padding:35px 0; }
 .tm-service-reverse .tm-service-visual { order:0; }
 .tm-service-visual img { max-height:400px; }
 .tm-service-copy { padding-bottom:10px; }
 .tm-about { grid-template-columns:1fr; gap:25px; padding:50px 6%; }
 .tm-whatsapp-float span { display:none; }
 .tm-whatsapp-float { bottom:18px; left:18px; padding:12px; }
 .tm-reveal.tm-reveal-pending { transform:translateX(-22px); }
 .tm-reveal.tm-reveal-pending[data-direction="right"] { transform:translateX(22px); }
}
@media(max-width:480px) {
 .tm-contact-bar { gap:8px; font-size:10px; }
 .tm-header .marca-nombre { font-size:30px; }
 .tm-social a { width:36px; height:36px; }
 .tm-header nav { gap:20px; }
 .tm-header nav a { font-size:13px; }
 .tm-hero-copy h1 { font-size:52px; }
 .tm-benefit { padding:10px; gap:8px; }
 .tm-benefit > .tm-icon { width:25px; height:25px; }
 .tm-featured-image { height:280px; }
 .tm-featured-copy { padding:22px; }
 .tm-featured-bottom { flex-direction:column; align-items:stretch; }
 .tm-footer-grid { grid-template-columns:1fr; gap:35px; }
 .tm-footer-bottom { flex-direction:column; }
 .tm-closing { padding:55px 6%; }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; }
 .tm-reveal.tm-reveal-pending,.tm-reveal.tm-reveal-pending[data-direction="right"] { opacity:1; transform:none; }
 .tm-reveal.tm-reveal-ready,.tm-featured-image img,.tm-whatsapp-float,.tm-home .boton { transition:none; }
}

/* Fotos y videos reales de cada servicio. */
.tm-service-gallery .tm-service-preview { background:#171b1e; border-radius:5px; overflow:hidden; }
.tm-service-gallery .tm-service-preview > img,
.tm-service-gallery .tm-service-preview > video { display:block; width:100%; height:auto; aspect-ratio:16/9; max-height:460px; object-fit:contain; }
/* Portadas llenas; la galería ampliada conserva la imagen completa. */
.tm-service-gallery .tm-service-preview > img { object-fit:cover; object-position:center; }
.tm-service-gallery figcaption { position:static; display:block; background:transparent; color:#626a6e; padding:10px 0; letter-spacing:.5px; }
.tm-service-media-links { display:flex; flex-wrap:wrap; gap:8px; }
.tm-service-media-links a { display:inline-block; padding:9px 12px; border:1px solid #c7c4ba; border-radius:4px; color:#343a3e; font-size:12px; text-decoration:none; background:#fff; }
.tm-service-media-links a:hover { border-color:#c55004; color:#a84300; }
.tm-service-dialog { margin:auto; padding:20px; width:min(1000px,94vw); max-width:94vw; max-height:94dvh; border:1px solid #515659; border-radius:8px; background:#171b1e; color:#fff; }
.tm-service-dialog::backdrop { background:#000c; }
.tm-service-dialog-header { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:16px; }
.tm-service-dialog h2 { font-size:20px; }
.tm-service-dialog button { padding:10px 14px; border:1px solid #697278; border-radius:4px; background:#262b2e; color:white; cursor:pointer; font:inherit; }
.tm-service-dialog button:focus-visible { outline:3px solid #ff7925; outline-offset:3px; }
.tm-service-dialog-stage img,.tm-service-dialog-stage video { display:block; width:100%; height:65dvh; object-fit:contain; background:#101315; }
.tm-service-dialog-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; }
.tm-service-dialog-status { color:#dbe0e2; text-align:center; font-size:13px; }
@media(max-width:480px) { .tm-service-dialog { padding:12px; } .tm-service-dialog h2 { font-size:16px; } .tm-service-dialog-stage img,.tm-service-dialog-stage video { height:58dvh; } }

/* Compra desde la ficha del producto. */
.tm-modal-purchase{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:20px}
.tm-modal-purchase .precio{margin:0}
#modal-agregar-carrito{border:0;border-radius:6px;background:#ff7925;color:#171b1e;padding:14px 20px;font:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:background .2s,transform .2s}
#modal-agregar-carrito:hover{background:#ff964f;transform:translateY(-2px)}
#modal-agregar-carrito:focus-visible{outline:3px solid #a84300;outline-offset:4px}
#modal-agregar-carrito:disabled{background:#d4d6d5;color:#555;cursor:not-allowed;transform:none}
/* Contacto: icono a la derecha y saludo al pasar el mouse o enfocar. */
.tm-whatsapp-float{left:auto;right:24px;width:58px;height:58px;padding:0;justify-content:center}
.tm-whatsapp-float .tm-whatsapp-greeting{position:absolute;right:0;bottom:calc(100% + 12px);display:block;box-sizing:border-box;width:250px;max-width:calc(100vw - 36px);padding:17px 19px;background:#fff;color:#252a2d;border:1px solid #e1dfd8;border-radius:12px;box-shadow:0 5px 20px #0002;opacity:0;visibility:hidden;transform:translateY(7px);transition:opacity .2s,transform .2s,visibility .2s;pointer-events:none;line-height:1.5}
.tm-whatsapp-greeting strong{display:block;font-size:14px;margin-bottom:4px}
.tm-whatsapp-float .tm-whatsapp-greeting span{display:block;font-size:13px;font-weight:400;padding:0}
.tm-whatsapp-float:hover .tm-whatsapp-greeting,.tm-whatsapp-float:focus-visible .tm-whatsapp-greeting{opacity:1;visibility:visible;transform:none}
.tm-toast{position:fixed;z-index:11000;left:50%;bottom:30px;transform:translate(-50%,15px);max-width:min(520px,calc(100vw - 40px));box-sizing:border-box;padding:16px 22px;border-radius:8px;border-left:5px solid #ff7925;background:#20272b;color:#fff;box-shadow:0 6px 24px #0004;font-size:15px;line-height:1.5;overflow-wrap:anywhere;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,transform .2s,visibility .2s}
.tm-toast.visible{opacity:1;visibility:visible;transform:translate(-50%,0)}
@media(max-width:800px){.tm-whatsapp-float{left:auto;right:18px;bottom:18px}.tm-toast{bottom:90px;width:calc(100vw - 36px)}}
@media(max-width:480px){.tm-modal-purchase{align-items:stretch;flex-direction:column}#modal-agregar-carrito{width:100%}}
@media(prefers-reduced-motion:reduce){.tm-toast,.tm-whatsapp-float .tm-whatsapp-greeting,#modal-agregar-carrito{transition:none}#modal-agregar-carrito:hover{transform:none}}

/* Bienvenida breve y discreta. */
.tm-whatsapp-float .tm-whatsapp-greeting{width:260px;padding:16px 18px;border:1px solid #e4e5df;border-radius:12px;background:#fff;box-shadow:0 8px 24px #10191f20;bottom:calc(100% + 12px);line-height:1.5}
.tm-whatsapp-float .tm-whatsapp-greeting strong{font-size:14px;color:#252a2d;margin:0 0 4px}
.tm-whatsapp-float .tm-whatsapp-greeting>span{font-size:13px;color:#626a6e}
@media(hover:none){.tm-whatsapp-float:hover .tm-whatsapp-greeting{opacity:0;visibility:hidden;pointer-events:none}}
