/* ==========================================================
   E-TECHSA CR · capa de marca sobre la plantilla base
   Azul marino + naranja, tomados del logo y de las piezas gráficas
   ========================================================== */
@import url(https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap);

:root {
  --navy: #031f51;
  --navy-deep: #011a38;
  --navy-mid: #0a3a82;
  --orange: #f47b20;
  --orange-dark: #d9650f;
  --ice: #eef3fb;
  --ink: #1b2a44;
  --muted: #5b6b86;
}

body { color: var(--ink); font-family: "Open Sans", sans-serif; }
h1, h2, h3, h4, h5, h6 { color: var(--navy); font-family: "Montserrat", sans-serif; }
a { color: var(--navy-mid); }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.slogan {
  font-family: "Kaushan Script", cursive;
  color: var(--orange);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Botones ---------- */
.btn { border-radius: 0; font-family: "Montserrat", sans-serif; font-weight: 700; letter-spacing: .3px; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary.border, .btn.btn-outline-light { background: transparent; border: 2px solid #fff !important; color: #fff; }
.btn-primary.border:hover { background: #fff; color: var(--navy); border-color: #fff !important; }
.btn-dark { background: var(--navy); border-color: var(--navy); }
.btn-dark:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn i { margin-right: 8px; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--navy-deep); color: #cfd9ee; }
.top-bar a, .top-bar .info-text, .top-bar i { color: #cfd9ee; }
.top-bar a:hover { color: var(--orange); }
.top-bar ul.top-info li { margin-right: 18px; }
.top-bar ul.top-info li i { color: var(--orange); font-size: 14px; margin-right: 6px; }
.top-bar .info-text { display: inline; font-size: 13px; }
.top-social .social-icon i { color: #cfd9ee; }

/* ---------- Header ---------- */
.header-one .logo img { height: 62px; width: auto; }
.header-one .logo-area { padding: 18px 0; }
.info-box-title { color: var(--muted); }
.info-box-subtitle { color: var(--navy); }
.site-navigation { background: var(--navy); border-bottom: 4px solid var(--orange); }
.site-navigation .navbar-fixed { background: var(--navy); }
.header-one .site-navigation.navbar-fixed { box-shadow: 0 4px 14px rgba(1, 26, 56, .35); }
ul.navbar-nav > li > a { font-family: "Montserrat", sans-serif; font-weight: 600; }
.dropdown-menu { border-top: 3px solid var(--orange); border-radius: 0; }
.dropdown-menu li a:hover { color: var(--orange); }
.nav-search, .search-block { display: none !important; }
.header-wa { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-deep); overflow: hidden; }
.hero-slide { position: relative; min-height: 600px; background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%); color: #fff; }
.hero-slide::before {
  /* franja diagonal naranja, igual a la tarjeta de presentación */
  content: ""; position: absolute; top: 0; bottom: 0; right: 36%; width: 90px;
  background: var(--orange); transform: skewX(-18deg); transform-origin: top; z-index: 1;
}
.hero-slide .container { position: relative; z-index: 3; }
.hero-grid { display: flex; align-items: center; min-height: 600px; }
.hero-copy { flex: 0 0 56%; max-width: 56%; padding: 70px 0; }
.hero-copy .slogan { font-size: 28px; margin: 0 0 6px; display: block; }
.hero-copy h2 { color: #fff; font-weight: 800; font-size: 46px; line-height: 1.08; margin-bottom: 18px; }
.hero-copy h2 em { font-style: normal; color: var(--orange); }
.hero-copy p.lead { color: #d6e0f3; font-size: 18px; max-width: 520px; margin-bottom: 28px; }
.hero-copy .btn { margin-right: 10px; margin-bottom: 10px; }
.hero-media {
  position: absolute; top: 0; bottom: 0; right: 0; width: 44%; z-index: 2;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  background-size: cover; background-position: center;
}
.hero-media.contain { background-color: #eaf1fb; background-size: auto 78%; background-repeat: no-repeat; background-position: 55% 50%; }
.hero .slick-dots { bottom: 18px; z-index: 5; }
.hero .slick-dots li button:before { color: #fff; opacity: .5; font-size: 12px; }
.hero .slick-dots li.slick-active button:before { color: var(--orange); opacity: 1; }
.hero .carousel-control { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; background: rgba(1, 26, 56, .55); color: #fff; border: 0; width: 46px; height: 46px; }
.hero .carousel-control:hover { background: var(--orange); }
.hero .carousel-control.left { left: 14px; }
.hero .carousel-control.right { right: 14px; }
.hero .slick-slide { outline: 0; }

@media (max-width: 991px) {
  .hero-slide, .hero-grid { min-height: 0; }
  .hero-slide::before { display: none; }
  .hero-grid { display: block; }
  .hero-copy { flex: none; max-width: 100%; padding: 48px 0 24px; }
  .hero-copy h2 { font-size: 32px; }
  .hero-media { position: relative; width: 100%; height: 260px; clip-path: none; }
  .hero .carousel-control { top: 120px; }
}

/* ---------- Banda de llamada a la acción ---------- */
.call-to-action-box .action-style-box { background: var(--orange); box-shadow: 0 14px 30px rgba(1, 26, 56, .25); }
.call-to-action-box { position: relative; z-index: 5; margin-top: -42px; }
.action-title { text-transform: none; font-size: 20px; font-weight: 700; }
.action-title small { display: block; font-weight: 500; font-size: 14px; opacity: .92; margin-top: 4px; }

/* ---------- Secciones ---------- */
.section-title { color: var(--orange); font-family: "Montserrat", sans-serif; text-transform: none; font-size: 20px; font-weight: 700; }
.section-sub-title { color: var(--navy); font-weight: 800; }
.solid-bg { background: var(--ice); }
.dark-bg { background: var(--navy); }
.ts-intro .into-title { color: var(--orange); }

/* Tarjetas de servicio */
.svc-card { background: #fff; border-bottom: 4px solid var(--orange); box-shadow: 0 8px 26px rgba(3, 31, 81, .10); height: 100%; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(3, 31, 81, .18); }
.svc-card .svc-img { height: 220px; background-size: cover; background-position: center; background-color: var(--ice); }
.svc-card .svc-img.contain { background-size: auto 86%; background-repeat: no-repeat; background-position: center; }
.svc-card .svc-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.svc-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.svc-card p { color: var(--muted); }
.svc-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.svc-card ul li { padding: 4px 0 4px 26px; position: relative; }
.svc-card ul li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--orange); position: absolute; left: 0; top: 4px; font-size: 13px; }
.svc-card .more { margin-top: auto; font-weight: 700; font-family: "Montserrat", sans-serif; color: var(--orange); }

/* Beneficios */
.benefits { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.benefits::after { content: ""; position: absolute; top: -40%; right: -6%; width: 220px; height: 180%; background: var(--orange); opacity: .12; transform: skewX(-18deg); }
.benefit { text-align: center; padding: 10px 14px; position: relative; z-index: 1; }
.benefit .b-icon { width: 78px; height: 78px; border-radius: 50%; background: var(--navy-deep); border: 3px solid var(--orange); color: var(--orange); display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 16px; }
.benefit h3 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.benefit p { color: #b9c8e6; margin: 0; }

/* Sectores */
.sector-tile { display: block; margin-bottom: 24px; overflow: hidden; box-shadow: 0 8px 22px rgba(3, 31, 81, .14); background: var(--navy); }
.sector-tile img { width: 100%; display: block; transition: transform .35s ease; }
.sector-tile:hover img { transform: scale(1.04); }
.sector-tile.wide img { aspect-ratio: auto; }

/* Costa Rica */
.cr-block { position: relative; }
.cr-block .cr-img { box-shadow: 18px 18px 0 var(--orange); max-width: 100%; }
.pillars { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 28px; padding: 0; list-style: none; }
.pillars li { display: flex; align-items: center; gap: 10px; font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--navy); }
.pillars li i { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--orange); color: var(--orange); display: inline-flex; align-items: center; justify-content: center; }

/* Contacto grande */
.wa-cta { background: linear-gradient(115deg, var(--navy-deep), var(--navy)); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.wa-cta::before { content: ""; position: absolute; left: 62%; top: 0; bottom: 0; width: 70px; background: var(--orange); transform: skewX(-18deg); opacity: .9; }
.wa-cta .container { position: relative; z-index: 1; }
.wa-cta h2 { color: #fff; font-weight: 800; }
.wa-cta p { color: #cfd9ee; font-size: 18px; }
.wa-number { display: inline-flex; align-items: center; gap: 14px; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 34px; color: #fff; }
.wa-number i { color: var(--orange); font-size: 44px; }
.wa-number:hover { color: var(--orange); }

/* ---------- Banner de página ---------- */
.banner-area { background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%) !important; min-height: 240px; overflow: hidden; }
.banner-area::before { content: ""; position: absolute; top: 0; bottom: 0; right: 14%; width: 70px; background: var(--orange); transform: skewX(-18deg); }
.banner-area::after { content: ""; position: absolute; top: -20%; bottom: -20%; right: -4%; width: 320px; background: url(../images/brand/shield.png) center / contain no-repeat; opacity: .10; filter: grayscale(1) brightness(3); }
.banner-title { text-transform: none; font-size: 44px; font-weight: 800; }
.breadcrumb { justify-content: center; }
.breadcrumb li a, .breadcrumb-item.active { color: #d6e0f3; }
.breadcrumb li a:hover { color: var(--orange); }

/* ---------- Páginas internas ---------- */
.column-title, .main-container h2 { color: var(--navy); font-weight: 800; }
.svc-detail { padding: 70px 0; }
.svc-detail:nth-of-type(even) { background: var(--ice); }
.svc-detail .detail-img { width: 100%; box-shadow: 16px 16px 0 var(--orange); }
.svc-detail.flip .detail-img { box-shadow: -16px 16px 0 var(--orange); }
.svc-detail .detail-img.contain { background: #fff; padding: 24px; }
.check-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.check-list li { padding: 7px 0 7px 34px; position: relative; font-weight: 600; color: var(--navy); }
.check-list li::before { content: "\f058"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--orange); position: absolute; left: 0; top: 6px; font-size: 20px; }

.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border-left: 4px solid var(--orange); box-shadow: 0 6px 18px rgba(3, 31, 81, .08); margin-bottom: 16px; }
.contact-card .ci { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--navy); color: var(--orange); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-card h4 { font-size: 15px; margin: 0; font-weight: 800; }
.contact-card p, .contact-card a { margin: 0; color: var(--muted); word-break: break-word; }
.contact-form label { font-weight: 700; font-family: "Montserrat", sans-serif; font-size: 14px; color: var(--navy); }
.contact-form .form-control { border-radius: 0; border: 1px solid #c8d3e8; padding: 12px 14px; height: auto; }
.contact-form .form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244, 123, 32, .2); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.faq-box .card { border-radius: 0; border: 0; border-left: 4px solid var(--orange); margin-bottom: 10px; box-shadow: 0 4px 14px rgba(3, 31, 81, .08); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #aebbd6; }
.footer .widget-title { border-left-color: var(--orange); }
.footer a { color: #aebbd6; }
.footer a:hover { color: var(--orange); }
.footer-logo-wrap { display: inline-block; background: #fff; padding: 10px 16px; margin-bottom: 22px; }
.footer-logo-wrap img { height: 46px; width: auto; display: block; max-height: none; margin: 0; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { padding: 5px 0 5px 28px; position: relative; }
.footer-contact li i { position: absolute; left: 0; top: 9px; color: var(--orange); width: 18px; text-align: center; }
.footer .slogan { font-size: 20px; display: block; margin-top: 14px; }
.copyright { background: var(--orange); color: var(--navy-deep); }
.copyright a { color: var(--navy-deep); text-decoration: underline; }
.footer-menu ul li a { color: var(--navy-deep); }
.back-to-top .btn-primary { background: var(--navy); border-color: var(--navy); }
.back-to-top .btn-primary:hover { background: var(--orange); border-color: var(--orange); }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 9998; background: #25d366; color: #fff; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.wa-float:hover { color: #fff; background: #1ebe5b; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Titulares en mayúscula/minúscula normal (la plantilla los forzaba a MAYÚSCULAS) */
.section-sub-title, .column-title, .banner-title, .svc-card h3, .benefit h3, .footer .widget-title { text-transform: none; }
.section-sub-title { font-size: 30px; line-height: 1.25; }
.section-title:after, .section-sub-title:after { display: none; }

/* Ajustes tras revisión visual */
.hero { padding: 0; }
.hero-copy h2 { text-transform: none; }
.header-one .site-navigation, .header-one .site-navigation.navbar-fixed { background: var(--navy); }
.header-one .site-navigation .navbar-collapse { background: transparent; }
@media (max-width: 991px) { .header-one .site-navigation .navbar-collapse { background: var(--navy); } }

/* Móvil: cabecera compacta y carrusel sin flechas sobre el texto */
@media (max-width: 991px) {
  .header-one .top-info-box li:not(.header-get-a-quote) { display: none; }
  .header-one .top-info-box { float: none; display: block; text-align: center; }
  .header-one .logo-area { padding: 12px 0; }
  .header-one .logo img { height: 52px; }
  .hero .carousel-control { display: none !important; }
  .hero .slick-dots { bottom: 8px; }
  .top-bar ul.top-info li { display: block; margin: 2px 0; line-height: 20px; }
  .wa-cta::before { display: none; }
  .wa-number { font-size: 26px; }
  .section-sub-title { font-size: 24px; }
}

/* Equipo, socios y patrocinadores */
.team-card { background: #fff; box-shadow: 0 8px 26px rgba(3, 31, 81, .10); border-bottom: 4px solid var(--orange); overflow: hidden; height: 100%; }
.team-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.team-info { padding: 18px 20px 22px; text-align: center; }
.team-info h3 { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.team-info p { margin: 0; color: var(--orange); font-weight: 700; font-family: "Montserrat", sans-serif; font-size: 14px; }
.team-section { background: #fff; }
.team-section .team-card { box-shadow: 0 8px 26px rgba(3, 31, 81, .14); }
.partner-logo { display: block; background: #fff; border: 1px solid #dbe4f3; margin-bottom: 24px; padding: 10px; transition: border-color .2s, box-shadow .2s; }
.partner-logo:hover { border-color: var(--orange); box-shadow: 0 8px 20px rgba(3, 31, 81, .12); }
.partner-logo img { width: 100%; display: block; }
.sponsors-section { background: #fff; }
.ad-slot { position: relative; max-width: 970px; margin: 0 auto; }
.ad-slot img { width: 100%; display: block; }
.ad-label { position: absolute; top: 0; left: 0; z-index: 1; background: rgba(1, 26, 56, .8); color: #fff; font-size: 11px; padding: 2px 8px; font-family: "Montserrat", sans-serif; }
.ad-cta { font-weight: 700; font-family: "Montserrat", sans-serif; color: var(--orange); }

/* ---------- Equipo: contactos y experiencia al pasar el mouse ---------- */
.team-card { position: relative; outline-offset: 3px; }
.team-photo { position: relative; overflow: hidden; }
.team-photo img { transition: transform .5s ease; }
.team-card:hover .team-photo img, .team-card:focus-within .team-photo img, .team-card.is-open .team-photo img { transform: scale(1.08); }
.team-overlay {
  position: absolute; inset: 0; padding: 22px 22px 20px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, rgba(1, 26, 56, .93), rgba(3, 31, 81, .96));
  color: #fff; opacity: 0; transform: translateY(14%); transition: opacity .3s ease, transform .3s ease; overflow: auto;
}
.team-card:hover .team-overlay, .team-card:focus-within .team-overlay, .team-card.is-open .team-overlay { opacity: 1; transform: none; }
.team-overlay h4 { color: var(--orange); font-size: 15px; font-weight: 800; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--orange); }
.team-overlay p { color: #dbe5f7; font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.team-overlay ul { list-style: none; padding: 0; margin: 0 0 14px; }
.team-overlay li { padding: 3px 0; font-size: 14px; word-break: break-word; }
.team-overlay li i { color: var(--orange); width: 22px; }
.team-overlay a { color: #fff; }
.team-overlay a:hover { color: var(--orange); }
.team-overlay .team-wa { align-self: flex-start; background: #25d366; padding: 7px 14px; font-weight: 700; font-size: 13px; }
.team-overlay .team-wa:hover { background: #1ebe5b; color: #fff; }
@media (hover: none) { .team-photo::after { content: "Toca para ver contacto"; position: absolute; right: 8px; bottom: 8px; background: rgba(1,26,56,.8); color: #fff; font-size: 11px; padding: 3px 8px; } .team-card.is-open .team-photo::after { display: none; } }

/* ---------- Video principal ---------- */
.video-section { background: #fff; }
.video-frame { position: relative; box-shadow: 16px 16px 0 var(--orange); background: var(--navy-deep); }
.video-frame video { width: 100%; display: block; aspect-ratio: 848 / 478; background: var(--navy-deep); }

/* ---------- Proyectos ---------- */
.proj-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 26px 0 30px; }
.proj-filters button { background: #fff; border: 2px solid var(--navy); color: var(--navy); font-family: "Montserrat", sans-serif; font-weight: 700; padding: 9px 22px; cursor: pointer; transition: background .2s, color .2s; }
.proj-filters button i { margin-right: 6px; }
.proj-filters button:hover { border-color: var(--orange); color: var(--orange); }
.proj-filters button.active { background: var(--navy); color: #fff; }
.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 16px; }
.proj-item { position: relative; overflow: hidden; background: var(--navy-deep); display: block; cursor: pointer; }
.proj-item.big { grid-column: span 2; grid-row: span 2; }
.proj-item.wide { grid-column: span 2; }
.proj-item.tall { grid-row: span 2; }
.proj-item[hidden] { display: none; }
.proj-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.proj-item:hover img, .proj-item:focus-visible img { transform: scale(1.07); }
.proj-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,26,56,0) 45%, rgba(1,26,56,.88)); pointer-events: none; }
.proj-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 18px; color: #fff; border-left: 4px solid var(--orange); margin: 0 0 14px 14px; padding-top: 2px; padding-bottom: 2px; transition: transform .3s ease; }
.proj-cap strong { display: block; font-family: "Montserrat", sans-serif; font-size: 16px; line-height: 1.25; }
.proj-cap small { color: #f9b27a; font-size: 13px; font-weight: 600; }
.proj-item:hover .proj-cap { transform: translateY(-4px); }
.proj-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; font-family: "Montserrat", sans-serif; }
.proj-badge i { margin-right: 4px; }
.proj-play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(244,123,32,.95); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; padding-left: 4px; box-shadow: 0 0 0 10px rgba(244,123,32,.28); transition: transform .25s ease; }
.proj-item:hover .proj-play { transform: scale(1.1); }

.lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(1, 12, 30, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto; background: #000; }
.lb-cap { color: #fff; margin-top: 14px; font-family: "Montserrat", sans-serif; }
.lb-cap small { display: block; color: #f9b27a; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--orange); }
.lb-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }

@media (max-width: 991px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .video-frame { box-shadow: 10px 10px 0 var(--orange); }
}
@media (max-width: 575px) {
  .proj-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .proj-item.big, .proj-item.wide { grid-column: auto; }
  .proj-item.big, .proj-item.tall { grid-row: auto; }
  .lb-nav { width: 38px; height: 52px; }
}

/* ==========================================================
   Cotizador, servicio urgente, idioma y aviso de cookies
   ========================================================== */
:root { --urgent: #c81e1e; --urgent-dark: #a31616; }

/* Selector de idioma */
.lang-switch { display: inline-flex; margin-right: 14px; border: 1px solid rgba(255,255,255,.35); vertical-align: middle; }
.lang-switch a { color: #cfd9ee; font-size: 12px; font-weight: 700; padding: 1px 10px; font-family: "Montserrat", sans-serif; }
.lang-switch a.on { background: var(--orange); color: #fff; }
.lang-switch a:not(.on):hover { color: var(--orange); }
.top-urgent a { background: var(--urgent); color: #fff !important; padding: 3px 12px; font-weight: 700; }
.top-urgent a i { color: #fff !important; }
.top-urgent a:hover { background: var(--urgent-dark); color: #fff !important; }
.top-bar ul.top-info li.top-urgent { padding-right: 0; margin-right: 0; }

/* Botón flotante de servicio urgente */
.urgent-widget { position: fixed; left: 86px; bottom: 26px; z-index: 9998; }
.urgent-btn { background: var(--urgent); color: #fff; border: 0; padding: 12px 18px; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.3); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-radius: 30px; }
.urgent-btn:hover, .urgent-btn[aria-expanded="true"] { background: var(--urgent-dark); }
.urgent-panel { position: absolute; left: 0; bottom: 56px; width: 300px; max-width: calc(100vw - 100px); background: #fff; border-top: 5px solid var(--urgent); box-shadow: 0 14px 34px rgba(0,0,0,.35); padding: 18px; }
.urgent-panel[hidden] { display: none; }
.urgent-panel h4 { font-size: 16px; font-weight: 800; margin: 0 0 4px; color: var(--navy); }
.urgent-panel p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.urgent-panel a { display: block; padding: 10px 12px; margin-bottom: 8px; font-weight: 700; font-family: "Montserrat", sans-serif; font-size: 13px; color: #fff; }
.urgent-panel a i { width: 22px; }
.urgent-panel .u-call { background: var(--urgent); }
.urgent-panel .u-wa { background: #25d366; }
.urgent-panel .u-quote { background: var(--navy); margin-bottom: 0; }
.urgent-panel a:hover { filter: brightness(.9); color: #fff; }
.urgent-pulse { animation: none; }
@media (max-width: 420px) { .urgent-btn { padding: 12px 14px; font-size: 13px; } }

/* Cotizador */
.q-steps { display: flex; list-style: none; padding: 0; margin: 22px 0 28px; counter-reset: q; }
.q-steps li { flex: 1; text-align: center; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px; color: var(--muted); position: relative; }
.q-steps li span { display: flex; width: 38px; height: 38px; margin: 0 auto 6px; border-radius: 50%; background: #dbe4f3; color: var(--navy); align-items: center; justify-content: center; position: relative; z-index: 1; }
.q-steps li::before { content: ""; position: absolute; top: 18px; left: -50%; width: 100%; height: 3px; background: #dbe4f3; }
.q-steps li:first-child::before { display: none; }
.q-steps li.done span, .q-steps li.current span { background: var(--orange); color: #fff; }
.q-steps li.done::before, .q-steps li.current::before { background: var(--orange); }
.q-steps li.current { color: var(--navy); }
.quote-form { background: var(--ice); padding: 30px; }
.q-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.q-step.active { display: block; }
.q-label { display: block; font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--navy); margin: 0 0 10px; font-size: 16px; }
.quote-form label { font-weight: 700; font-family: "Montserrat", sans-serif; font-size: 14px; color: var(--navy); }
.quote-form .form-control { border-radius: 0; border: 1px solid #c8d3e8; padding: 12px 14px; height: auto; }
.quote-form .form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,.2); }
.q-field { margin-bottom: 22px; }
.q-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-cards-3 { grid-template-columns: repeat(3, 1fr); }
.q-card { position: relative; margin: 0; cursor: pointer; display: block; }
.q-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-card span { display: block; height: 100%; background: #fff; border: 2px solid #c8d3e8; padding: 12px 14px; transition: border-color .15s, background .15s; }
.q-card strong { display: block; color: var(--navy); font-size: 14px; }
.q-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.q-card:hover span { border-color: var(--orange); }
.q-card input:checked + span { border-color: var(--orange); background: #fff4ea; box-shadow: inset 4px 0 0 var(--orange); }
.q-card input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.q-field.invalid .q-card span, .q-field.invalid .form-control { border-color: var(--urgent); }
.q-error { color: var(--urgent); font-weight: 700; font-size: 13px; margin: 6px 0 0; }
.q-alert { display: flex; gap: 14px; background: #fff1f1; border-left: 5px solid var(--urgent); padding: 16px; margin-bottom: 22px; }
.q-alert[hidden] { display: none; }
.q-alert > i { color: var(--urgent); font-size: 26px; margin-top: 3px; }
.q-alert p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.q-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600 !important; cursor: pointer; }
.q-check input { margin-top: 5px; flex: none; }
.q-summary { background: #fff; border: 1px solid #c8d3e8; padding: 18px; white-space: pre-wrap; font-family: "Open Sans", sans-serif; font-size: 14px; color: var(--ink); }
.q-send .btn { margin: 0 10px 10px 0; }
.q-nav { display: flex; justify-content: space-between; margin-top: 8px; }
.q-nav .btn[hidden] { display: none; }
.q-nav #q-next { margin-left: auto; }
.q-side { background: var(--ice); border-left: 4px solid var(--orange); padding: 22px; margin-bottom: 20px; }
.q-side h4 { font-size: 17px; font-weight: 800; }
.q-side p { color: var(--muted); }
.q-side .btn { margin-bottom: 8px; }
.q-side-urgent { background: #fff1f1; border-left-color: var(--urgent); }
.q-side-urgent h4 { color: var(--urgent); }
.q-side-urgent h4 i { margin-right: 6px; }
@media (max-width: 575px) { .q-cards, .q-cards-3 { grid-template-columns: 1fr; } .quote-form { padding: 20px 16px; } .q-steps li { font-size: 11px; } }

/* Aviso de cookies */
.consent-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10001; background: var(--navy-deep); color: #fff; padding: 14px 20px; display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; box-shadow: 0 -6px 20px rgba(0,0,0,.3); }
.consent-bar p { margin: 0; max-width: 640px; font-size: 14px; }
.consent-bar .btn { margin-left: 8px; padding: 8px 18px; }

/* Textos que dependen del idioma */
@media (hover: none) { html[lang="en"] .team-photo::after { content: "Tap to see contact"; } }
