/* =========================================================
   MICROTECH - CSS ORDENADO Y COMENTADO
   Archivo base reorganizado para facilitar mantenimiento.
   ========================================================= */

/* =========================================================
   1. Variables globales
   ========================================================= */
:root {
  --blue: #0d6ff2;
  --cyan: #23c2ff;
  --navy: #071d49;
  --text: #102044;
  --muted: #5f6b83;
  --bg: #f4f8fd;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(20, 93, 170, 0.14);
  --line: #e7eef8;
}

/* =========================================================
   2. Reset básico y estructura general
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 86px; /* Compensa el header fijo para que el contenido no quede debajo */
  background: #e9e9ec;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
}

.site-wrap {
  max-width: 1500px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
}

.section {
  padding-left: 11%;
  padding-right: 11%;
}

.center {
  margin: auto;
}

/* =========================================================
   3. Header / Menú principal
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1500px, 100%);
  height: 86px;
  padding: 0 8%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(230, 239, 251, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Estado del header cuando se hace scroll. Requiere que JS agregue la clase .scrolled */
.header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(210, 229, 250, 0.75);
  box-shadow: 0 16px 42px rgba(7, 29, 73, 0.10);
}

.logo img {
  display: block;
  width: 300px;
}

.nav {
  display: flex;
  gap: 55px;
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  color: #0b1d45;
  text-decoration: none;
}

.nav a:hover {
  color: var(--blue);
}

.actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

/* =========================================================
   4. Botones y controles
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #075bd8, #22c2ff);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(0, 112, 240, 0.27);
  cursor: pointer;
}

.btn.small {
  padding: 14px 32px;
}

.theme,
.menu {
  width: 42px;
  height: 42px;
  color: #0b63d8;
  font-size: 18px;
  background: #eef6ff;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
}

.menu {
  display: none;
}

/* =========================================================
   5. Sección Hero / Inicio
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.13fr;
  align-items: center;
  min-height: 420px;
  background: linear-gradient(180deg, #f8fcff 0%, #eef7ff 100%);
}

/* Fondo decorativo con ondas SVG */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 70% at 75% 0%, rgba(127, 198, 255, 0.35), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 360'%3E%3Cpath d='M0 80C253 160 438 164 620 95c184-70 323 52 520 38 122-8 198-63 260-108v335H0z' fill='%23dff2ff' opacity='.85'/%3E%3Cpath d='M0 248c210 52 435 33 641-40 261-93 482-7 759-84v236H0z' fill='%23bce4ff' opacity='.42'/%3E%3C/svg%3E") center / cover no-repeat;
}

.hero > * {
  position: relative;
}

.hero h1 {
  margin: 0 0 7px;
  color: #071d49;
  font-size: 54px;
  letter-spacing: 5px;
}

.hero h2 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 600;
}

.hero h2 span {
  color: #0875ef;
}

.hero p {
  max-width: 530px;
  margin: 0 0 28px;
  color: #182a56;
  font-size: 23px;
  line-height: 1.32;
}

.hero-img img {
  width: 100%;
  filter: drop-shadow(0 25px 35px rgba(18, 94, 177, 0.18));
}

/* =========================================================
   6. Servicios
   ========================================================= */
.services {
  padding-top: 44px;
  padding-bottom: 78px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f0f8ff 100%);
}

.title {
  margin: 0 0 38px;
  color: #071d49;
  font-size: 34px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}

.card {
  min-height: 190px;
  padding: 34px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-7px);
}

.card img {
  width: 72px;
  height: 72px;
}

.card h3 {
  margin: 13px 0 11px;
  color: #112148;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: #3d4a64;
  font-size: 15px;
  line-height: 1.45;
}

/* =========================================================
   7. Sección Nosotros
   ========================================================= */
.about {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 58px;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 64px;
  background: #ffffff;
}

.about::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 230'%3E%3Cpath d='M0 112c227 69 390 77 555 21 211-71 377 42 604 0 100-19 179-62 241-91v188H0z' fill='%23dff3ff' opacity='.75'/%3E%3C/svg%3E") bottom / cover no-repeat;
}

.about > * {
  position: relative;
}

.about h2,
.contact h2 {
  margin: 0 0 28px;
  color: #071d49;
  font-size: 32px;
}

.about p {
  font-size: 16.5px;
  line-height: 1.55;
}

.about ul {
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.65;
}

.about li::marker {
  color: #0875ef;
}

.about-img img {
  display: block;
  width: 100%;
  border-radius: 70px 0 0 70px;
}

/* =========================================================
   8. Contacto y formulario
   ========================================================= */
.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 80px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 72px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f9ff 100%);
}

.contact::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%;
  height: 160px;
  background: linear-gradient(160deg, transparent 10%, rgba(181, 224, 255, 0.62));
  clip-path: ellipse(80% 60% at 80% 80%);
}

.contact > * {
  position: relative;
  z-index: 1;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  max-width: 650px;
}

input,
textarea {
  width: 100%;
  padding: 15px 18px;
  font: inherit;
  background: #ffffff;
  border: 1px solid #d9e4f2;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(12, 70, 130, 0.06);
}

textarea {
  grid-column: 2;
  grid-row: 2 / 4;
  min-height: 111px;
  resize: vertical;
}

.contact-form .btn {
  width: 230px;
  padding: 14px 22px;
}

.contact-info {
  font-size: 18px;
  font-weight: 700;
  line-height: 2.25;
}

.contact-info span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 16px;
  background: #eef7ff;
  border-radius: 12px;
}

/* =========================================================
   9. Footer
   ========================================================= */
.footer {
  position: relative;
  display: grid;
  grid-template-columns: 250px 1fr auto auto;
  gap: 25px;
  align-items: center;
  min-height: 100px;
  padding: 24px 11%;
  color: #ffffff;
  background: linear-gradient(135deg, #013b8a, #075bd8);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 110% at 80% 0, rgba(36, 197, 255, 0.25), transparent 52%);
}

.footer > * {
  position: relative;
}

.footer img {
  width: 220px;
}

.footer p {
  margin: 0;
  font-weight: 700; /* Corregido: antes estaba 7100, valor inválido */
}

.footer small {
  text-align: center;
  opacity: 0.32;
}

.social {
  display: flex;
  gap: 14px;
}

.social a {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #075bd8;
  font-weight: 800;
  background: #ffffff;
  border-radius: 50%;
}

/* =========================================================
   10. Animaciones
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* =========================================================
   11. Modo oscuro
   ========================================================= */
body.dark {
  --text: #eef6ff;
  --muted: #b7c5d8;
  --bg: #081225;
  --card: #0f2140;
  --line: #21395d;
  background: #061020;
}

body.dark .site-wrap,
body.dark .about {
  background: #081225;
}

body.dark .header {
  background: rgba(8, 18, 37, 0.58);
  border-color: rgba(45, 75, 118, 0.55);
}

body.dark .header.scrolled {
  background: rgba(8, 18, 37, 0.72);
  border-bottom: 1px solid rgba(64, 103, 158, 0.55);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

body.dark .logo img {
  content: url("../imagenes/logo-microtech-white.svg"); /* Requiere que exista este archivo */
}

body.dark .nav a,
body.dark .hero h1,
body.dark .title,
body.dark .about h2,
body.dark .contact h2,
body.dark .services .title {
  color: #ffffff;
}

body.dark .hero,
body.dark .services,
body.dark .contact {
  background: linear-gradient(180deg, #081225, #0b1d37);
}

body.dark .hero h2 {
  color: #0d3f8f;
  text-shadow: 0 0 18px rgba(35, 194, 255, 0.18);
}

body.dark .hero h2 span {
  color: #075bd8;
}

body.dark .hero p {
  color: #0b3b82;
  font-weight: 600;
}

body.dark .about p,
body.dark .about li {
  color: #d5e7ff;
}

body.dark .card {
  background: #0f2140;
}

body.dark .card h3,
body.dark .card p {
  color: #ffffff;
}

body.dark input,
body.dark textarea {
  color: #ffffff;
  background: #101f38;
  border-color: #29476e;
}

body.dark .theme {
  color: #62c7ff;
  background: #132b4d;
}

/* =========================================================
   12. Responsive tablet
   ========================================================= */
@media (max-width: 1050px) {
  .header {
    padding: 0 4%;
  }

  .logo img {
    width: 250px;
  }

  .nav {
    gap: 22px;
  }

  .section {
    padding-left: 6%;
    padding-right: 6%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding-top: 45px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-img img {
    border-radius: 38px;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* =========================================================
   13. Responsive móvil
   ========================================================= */
@media (max-width: 760px) {
  body {
    padding-top: 76px; /* Header más bajo en móvil */
  }

  .header {
    min-height: 76px;
    height: auto;
  }

  .menu {
    display: block;
  }

  .nav {
    position: fixed;
    top: 86px;
    left: 4%;
    right: 4%;
    display: none;
    flex-direction: column;
    padding: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e7eef8;
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .nav.open {
    display: flex;
  }

  body.dark .nav {
    background: #0f2140;
  }

  .btn.small {
    display: none;
  }

  .logo img {
    width: 220px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero h2 {
    font-size: 27px;
  }

  .hero p {
    font-size: 19px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  form {
    grid-template-columns: 1fr;
  }

  textarea {
    grid-column: auto;
    grid-row: auto;
  }

  .section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .footer img {
    width: 210px;
  }
}

/* =========================================================
   14. Mejoras solicitadas: Hero rotativo y servicios clickeables
   ========================================================= */
.hero-kicker {
  margin-bottom: 10px;
  color: #071d49;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 5px;
}

.hero-slider h1 {
  max-width: 640px;
  margin: 0 0 14px;
  color: #071d49;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -1.4px;
}

.hero-slider p {
  min-height: 92px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn.ghost {
  color: #075bd8;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 111, 242, 0.18);
  box-shadow: none;
}

.hero-dots {
  display: flex;
  gap: 9px;
  margin: -10px 0 24px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(13, 111, 242, 0.25);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 28px;
  background: #075bd8;
}

.services .cards {
  grid-template-columns: repeat(5, 1fr);
}

.service-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.service-link span {
  display: inline-block;
  margin-top: 16px;
  color: #075bd8;
  font-size: 14px;
  font-weight: 800;
}

.service-link:hover span {
  text-decoration: underline;
}

.service-page-hero {
  min-height: auto;
  padding-top: 78px;
  padding-bottom: 78px;
  grid-template-columns: 1fr;
}

.service-page-hero .hero-slider h1 {
  max-width: 820px;
}

.service-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  padding-top: 62px;
  padding-bottom: 76px;
  background: #ffffff;
}

.service-detail h2 {
  margin: 0 0 18px;
  color: #071d49;
  font-size: 32px;
}

.service-detail p,
.service-detail li {
  color: #3d4a64;
  font-size: 16.5px;
  line-height: 1.65;
}

.service-panel {
  padding: 30px;
  background: linear-gradient(180deg, #f8fcff, #eef7ff);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.service-panel h3 {
  margin-top: 0;
  color: #071d49;
}

body.dark .hero-kicker,
body.dark .hero-slider h1,
body.dark .service-detail h2,
body.dark .service-panel h3 {
  color: #ffffff;
}

body.dark .hero-slider p {
  color: #d5e7ff;
}

body.dark .btn.ghost {
  color: #ffffff;
  background: rgba(15, 33, 64, 0.75);
  border-color: rgba(98, 199, 255, 0.25);
}

body.dark .service-detail {
  background: #081225;
}

body.dark .service-detail p,
body.dark .service-detail li {
  color: #d5e7ff;
}

body.dark .service-panel {
  background: linear-gradient(180deg, #0f2140, #0b1d37);
}

@media (max-width: 1200px) {
  .services .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1050px) {
  .hero-slider h1 {
    font-size: 42px;
  }
  .service-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-slider h1 {
    font-size: 34px;
  }
  .hero-slider p {
    min-height: auto;
  }
  .services .cards {
    grid-template-columns: 1fr;
  }
}


.hero h1, .hero h2 { color: #6b7280; }

/* Hover efecto servicios */
.servicio, .service-card, .card-servicio {
    transition: all 0.3s ease;
    cursor: pointer;
}

.servicio:hover, .service-card:hover, .card-servicio:hover {
    filter: brightness(0.9);
    transform: translateY(-5px);
}


/* Ajuste específico: sección Nuestros Servicios */
#servicios .servicio,
#servicios .service-card,
#servicios .card-servicio,
.servicios .servicio,
.servicios .service-card,
.servicios .card-servicio,
.services .servicio,
.services .service-card,
.services .card-servicio,
section[id*="servicio"] .servicio,
section[id*="servicio"] .service-card,
section[id*="servicio"] .card-servicio {
  transition: background-color .28s ease, border-color .28s ease, transform .28s ease, box-shadow .28s ease, filter .28s ease;
  cursor: pointer;
}

#servicios .servicio:hover,
#servicios .service-card:hover,
#servicios .card-servicio:hover,
.servicios .servicio:hover,
.servicios .service-card:hover,
.servicios .card-servicio:hover,
.services .servicio:hover,
.services .service-card:hover,
.services .card-servicio:hover,
section[id*="servicio"] .servicio:hover,
section[id*="servicio"] .service-card:hover,
section[id*="servicio"] .card-servicio:hover {
  background-color: #e5e7eb !important;
  border-color: #cbd5e1 !important;
  filter: none !important;
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

/* Mantiene legibles los textos dentro del cuadro gris */
#servicios .servicio:hover *,
#servicios .service-card:hover *,
#servicios .card-servicio:hover *,
.servicios .servicio:hover *,
.servicios .service-card:hover *,
.servicios .card-servicio:hover *,
.services .servicio:hover *,
.services .service-card:hover *,
.services .card-servicio:hover *,
section[id*="servicio"] .servicio:hover *,
section[id*="servicio"] .service-card:hover *,
section[id*="servicio"] .card-servicio:hover * {
  color: #111827;
}



/* =========================================================
   Ajustes solicitados: Hero más amplio, Tienda e iconos contacto
   ========================================================= */

/* Hero con más aire inferior para separar mejor la sección inicial */
.hero {
  min-height: 500px;
  padding-top: 36px;
  padding-bottom: 58px;
}

/* Tienda */
.store {
  position: relative;
  padding-top: 74px;
  padding-bottom: 82px;
  background:
    radial-gradient(70% 80% at 85% 15%, rgba(35, 194, 255, 0.22), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #eef8ff 100%);
  overflow: hidden;
}

.store::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 320'%3E%3Cpath d='M0 180c220-78 420-72 620 0 240 86 485 56 780-70v210H0z' fill='%23dff2ff' opacity='.72'/%3E%3C/svg%3E") bottom / cover no-repeat;
}

.store > * {
  position: relative;
  z-index: 1;
}

.store-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 32px;
}

.store-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.store h2 {
  max-width: 720px;
  margin: 0 0 14px;
  color: #071d49;
  font-size: 38px;
  line-height: 1.08;
}

.store-head p {
  max-width: 720px;
  margin: 0;
  color: #34425f;
  font-size: 18px;
  line-height: 1.55;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.store-card {
  min-height: 245px;
  padding: 30px 24px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(231,238,248,.95);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(20,93,170,.13);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.store-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 58px rgba(20,93,170,.18);
}

.store-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(13,111,242,.12), rgba(35,194,255,.20));
  border-radius: 18px;
}

.store-icon img {
  width: 54px;
  height: 54px;
}

.store-card h3 {
  margin: 0 0 10px;
  color: #112148;
  font-size: 20px;
}

.store-card p {
  margin: 0;
  color: #3d4a64;
  font-size: 15.5px;
  line-height: 1.5;
}

.store-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 26px 30px;
  color: #ffffff;
  background: linear-gradient(135deg, #013b8a, #075bd8 58%, #23c2ff);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(7,91,216,.24);
}

.store-banner h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.store-banner p {
  margin: 0;
  opacity: .92;
}

.store-banner .btn.ghost {
  background: rgba(255,255,255,.16);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: none;
}

/* Iconos de contacto más profesionales */
.contact-info p {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
}

.contact-info .contact-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-right: 0;
  background: linear-gradient(135deg, #075bd8, #23c2ff);
  box-shadow: 0 14px 26px rgba(7,91,216,.20);
}

.contact-info .contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Modo oscuro tienda */
body.dark .store {
  background:
    radial-gradient(70% 80% at 85% 15%, rgba(35, 194, 255, 0.14), transparent 58%),
    linear-gradient(180deg, #081225, #0b1d37);
}

body.dark .store h2,
body.dark .store-card h3 {
  color: #ffffff;
}

body.dark .store-head p,
body.dark .store-card p {
  color: #d5e7ff;
}

body.dark .store-card {
  background: rgba(15,33,64,.86);
  border-color: #21395d;
}

body.dark .store-icon {
  background: linear-gradient(135deg, rgba(13,111,242,.22), rgba(35,194,255,.14));
}

/* Responsive tienda */
@media (max-width: 1050px) {
  .hero {
    min-height: auto;
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .store-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .store {
    padding-top: 58px;
    padding-bottom: 64px;
  }

  .store h2 {
    font-size: 30px;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }

  .store-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}



/* =========================================================
   Cambios finales: efecto premium en servicios y tienda ordenada
   ========================================================= */

/* Nuestros Servicios usa el mismo efecto premium de Tienda Tecnológica */
.card.service-link,
.service-link.card {
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.card.service-link:hover,
.service-link.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 58px rgba(20,93,170,.18);
  background: rgba(255,255,255,.96);
}

body.dark .card.service-link,
body.dark .service-link.card {
  background: rgba(15,33,64,.86);
  border-color: #21395d;
}

body.dark .card.service-link:hover,
body.dark .service-link.card:hover {
  background: rgba(18,42,78,.96);
  box-shadow: 0 28px 58px rgba(0,0,0,.30);
}

/* Ajuste para que los 7 servicios se vean ordenados */
.cards {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1050px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .cards {
    grid-template-columns: 1fr;
  }
}






/* =========================================================
   Slider Servicios PRO: flechas, swipe, dots, auto-scroll
   ========================================================= */
.services-slider.pro-slider {
  position: relative;
  margin: 0 auto 36px;
  padding: 4px 54px 48px;
}

.slider-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 24px;
  scroll-behavior: smooth;
}

.slider-track {
  display: flex;
  gap: 24px;
  margin-bottom: 0;
  will-change: transform;
  transition: transform .55s cubic-bezier(.22,1,.36,1);
  cursor: grab;
  user-select: none;
}

.slider-track.dragging {
  cursor: grabbing;
  transition: none;
}

.slider-track .card {
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: 0;
}

.slider-btn {
  position: absolute;
  top: 42%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  background: linear-gradient(135deg, #075bd8, #23c2ff);
  box-shadow: 0 16px 34px rgba(7,91,216,.28);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

.slider-btn:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 22px 44px rgba(7,91,216,.36);
}

.slider-btn:disabled {
  opacity: .38;
  cursor: default;
  transform: none;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.slider-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(13,111,242,.24);
  transition: width .25s ease, background .25s ease, transform .25s ease;
}

.slider-dot.active {
  width: 28px;
  background: linear-gradient(90deg, #075bd8, #23c2ff);
}

.slider-dot:hover {
  transform: translateY(-2px);
}

body.dark .slider-dot {
  background: rgba(255,255,255,.20);
}

body.dark .slider-dot.active {
  background: linear-gradient(90deg, #23c2ff, #075bd8);
}

@media (max-width: 1050px) {
  .services-slider.pro-slider {
    padding-left: 48px;
    padding-right: 48px;
  }

  .slider-track .card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 760px) {
  .services-slider.pro-slider {
    padding: 0 38px 46px;
  }

  .slider-track .card {
    flex-basis: 100%;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
}



/* =========================================================
   Ajuste menú final: botones a la derecha y Acceso Clientes tipo agua
   ========================================================= */
.header {
  gap: 22px;
}

.nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: 34px;
}

.actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.btn-clientes {
  color: #0b63d8;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(130,145,165,.72);
  box-shadow: 0 14px 32px rgba(7,29,73,.09), inset 0 1px 0 rgba(255,255,255,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-clientes:hover {
  color: #075bd8;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.95), rgba(255,255,255,.34) 34%, rgba(35,194,255,.20) 70%),
    rgba(255,255,255,.38);
  border-color: rgba(120,132,150,.95);
  transform: translateY(-2px);
}

body.dark .btn-clientes {
  color: #dff5ff;
  background: rgba(16,31,56,.45);
  border-color: rgba(150,165,185,.65);
  box-shadow: 0 14px 32px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
}

body.dark .btn-clientes:hover {
  background:
    radial-gradient(circle at 30% 25%, rgba(98,199,255,.22), rgba(16,31,56,.42) 55%, rgba(255,255,255,.08)),
    rgba(16,31,56,.45);
  border-color: rgba(190,205,225,.80);
}

@media (max-width: 1180px) {
  .nav {
    gap: 20px;
    font-size: 14px;
  }

  .btn.small {
    padding: 12px 20px;
  }
}



/* Página Tienda vacía para futura carga de productos */
.tienda-hero {
  min-height: auto;
  padding-top: 78px;
  padding-bottom: 54px;
}

.tienda-empty {
  min-height: 420px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f9ff 100%);
}

body.dark .tienda-empty {
  background: linear-gradient(180deg, #081225, #0b1d37);
}



/* Hero slider comercial por servicios */
.hero-slider {
  transition: opacity .45s ease, transform .45s ease, filter .45s ease;
}

.hero-slider.fade {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #0875ef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-slider h1 {
  max-width: 760px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-slider p {
  max-width: 620px;
  font-size: 21px;
}

.hero-dots button {
  transition: width .25s ease, background .25s ease, transform .25s ease;
}

.hero-dots button:hover {
  transform: translateY(-2px);
}

/* Igualar botón Contactanos a Acceso Clientes */
.actions .btn.small {
  color: #0b63d8;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(130,145,165,.72);
  box-shadow: 0 14px 32px rgba(7,29,73,.09), inset 0 1px 0 rgba(255,255,255,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.actions .btn.small:hover {
  color: #075bd8;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.95), rgba(255,255,255,.34) 34%, rgba(35,194,255,.20) 70%),
    rgba(255,255,255,.38);
  border-color: rgba(120,132,150,.95);
  transform: translateY(-2px);
}

body.dark .actions .btn.small {
  color: #dff5ff;
  background: rgba(16,31,56,.45);
  border-color: rgba(150,165,185,.65);
}

body.dark .actions .btn.small:hover {
  background:
    radial-gradient(circle at 30% 25%, rgba(98,199,255,.22), rgba(16,31,56,.42) 55%, rgba(255,255,255,.08)),
    rgba(16,31,56,.45);
}



/* Tienda limpia: misma gráfica del sitio, sin contenido central */
.tienda-main {
  min-height: calc(100vh - 186px);
  background:
    radial-gradient(80% 70% at 75% 0%, rgba(127,198,255,.22), transparent 60%),
    linear-gradient(180deg, #f8fcff 0%, #eef7ff 100%);
}

.tienda-main .tienda-empty {
  min-height: calc(100vh - 286px);
  padding-top: 80px;
  padding-bottom: 80px;
}

body.dark .tienda-main {
  background:
    radial-gradient(80% 70% at 75% 0%, rgba(35,194,255,.12), transparent 60%),
    linear-gradient(180deg, #081225, #0b1d37);
}



/* Página Acceso Clientes con cuadro glass */
.acceso-main {
  display: flex;
  align-items: center;
}

.acceso-section {
  width: 100%;
  min-height: calc(100vh - 286px);
  display: grid;
  place-items: center;
  padding-top: 82px;
  padding-bottom: 82px;
}

.login-glass {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid rgba(130,145,165,.55);
  border-radius: 26px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.86), rgba(255,255,255,.38) 44%, rgba(35,194,255,.16) 100%),
    rgba(255,255,255,.42);
  box-shadow: 0 28px 70px rgba(7,29,73,.14), inset 0 1px 0 rgba(255,255,255,.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 13px;
  color: #075bd8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(13,111,242,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.46);
}

.login-glass h1 {
  margin: 0 0 10px;
  color: #071d49;
  font-size: 34px;
}

.login-glass p {
  margin: 0 0 24px;
  color: #3d4a64;
  line-height: 1.5;
}

.login-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: none;
}

.login-form label {
  color: #102044;
  font-weight: 800;
  font-size: 14px;
}

.login-form input {
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}

.forgot-link {
  justify-self: end;
  color: #075bd8;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  margin-top: 8px;
}

body.dark .login-glass {
  background:
    radial-gradient(circle at 30% 20%, rgba(98,199,255,.20), rgba(16,31,56,.46) 52%, rgba(255,255,255,.06) 100%),
    rgba(16,31,56,.45);
  border-color: rgba(150,165,185,.45);
  box-shadow: 0 28px 70px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.08);
}

body.dark .login-glass h1,
body.dark .login-form label {
  color: #ffffff;
}

body.dark .login-glass p {
  color: #d5e7ff;
}

body.dark .login-badge {
  color: #dff5ff;
  background: rgba(16,31,56,.48);
  border-color: rgba(98,199,255,.25);
}

body.dark .forgot-link {
  color: #62c7ff;
}



/* Formulario contacto AJAX */
.ajax-contact-form .btn {
  position: relative;
  overflow: hidden;
}

.ajax-contact-form .btn.loading .btn-text {
  opacity: .35;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid rgba(255,255,255,.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.ajax-contact-form .btn.loading .btn-loader {
  display: inline-block;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 44px;
  display: none;
  align-items: center;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.form-status.processing,
.form-status.success,
.form-status.error {
  display: flex;
}

.form-status.processing {
  color: #075bd8;
  background: rgba(35,194,255,.12);
  border: 1px solid rgba(35,194,255,.28);
}

.form-status.success {
  color: #057a45;
  background: rgba(22,163,74,.12);
  border: 1px solid rgba(22,163,74,.25);
}

.form-status.error {
  color: #b42318;
  background: rgba(220,38,38,.10);
  border: 1px solid rgba(220,38,38,.22);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

body.dark .form-status.processing {
  color: #8de3ff;
  background: rgba(35,194,255,.10);
}

body.dark .form-status.success {
  color: #86efac;
  background: rgba(22,163,74,.12);
}

body.dark .form-status.error {
  color: #fca5a5;
  background: rgba(220,38,38,.12);
}



/* NOSOTROS PREMIUM FINAL */
.about-img {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.about-img img {
  width: 100%;
  display: block;
  border-radius: 28px;
  transition: transform .5s ease, filter .5s ease;
}



.about-img:hover img {
  transform: scale(1.05);
}



/* Imagen real sección Nosotros ajustada al diseño actual */
.about-img {
  position: relative;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}





/* =========================================================
   Nosotros Premium TI
   Imagen real optimizada + overlay corporativo Microtech
   ========================================================= */
.about {
  background:
    radial-gradient(60% 70% at 88% 24%, rgba(35,194,255,.16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.about-img {
  position: relative;
  overflow: hidden;
  border-radius: 70px 0 0 70px;
  box-shadow: 0 30px 70px rgba(7,29,73,.16);
  isolation: isolate;
}

.about-img img {
  width: 100%;
  min-height: 405px;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 70px 0 0 70px;
  filter: saturate(1.08) contrast(1.06) brightness(.98);
  transform: scale(1.01);
  transition: transform .65s ease, filter .65s ease;
}





.about-img:hover img {
  transform: scale(1.055);
  filter: saturate(1.12) contrast(1.08) brightness(1.03);
}

body.dark .about {
  background:
    radial-gradient(60% 70% at 88% 24%, rgba(35,194,255,.12), transparent 60%),
    linear-gradient(180deg, #081225 0%, #0b1d37 100%);
}

body.dark .about-img {
  box-shadow: 0 30px 70px rgba(0,0,0,.34);
}

body.dark 

@media (max-width: 1050px) {
  .about-img,
  .about-img img {
    border-radius: 38px;
  }

  .about-img img {
    min-height: 330px;
  }
}

@media (max-width: 760px) {
  .about-img img {
    min-height: 260px;
  }

  
}



/* Ajuste final imagen Nosotros integrada al sitio actual */
.about-img {
  position: relative;
  overflow: hidden;
  border-radius: 70px 0 0 70px;
  box-shadow: 0 30px 70px rgba(7,29,73,.16);
  isolation: isolate;
}

.about-img img {
  width: 100%;
  min-height: 405px;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 70px 0 0 70px;
  filter: saturate(1.06) contrast(1.04) brightness(1);
  transform: scale(1.01);
  transition: transform .65s ease, filter .65s ease;
}





.about-img:hover img {
  transform: scale(1.055);
  filter: saturate(1.1) contrast(1.06) brightness(1.03);
}

@media (max-width: 1050px) {
  .about-img,
  .about-img img {
    border-radius: 38px;
  }

  .about-img img {
    min-height: 330px;
  }
}

@media (max-width: 760px) {
  .about-img img {
    min-height: 260px;
  }

  
}



/* =========================================================
   HERO DARK MODE MEJORADO (sin líneas raras)
   ========================================================= */
body.dark .hero {
  background:
    radial-gradient(60% 60% at 70% 20%, rgba(35,194,255,.15), transparent 60%),
    radial-gradient(50% 50% at 20% 80%, rgba(11,131,255,.12), transparent 60%),
    linear-gradient(180deg, #050d1a 0%, #071a33 100%);
}

body.dark .hero::before,
body.dark .hero::after {
  display: none !important;
}

/* mejorar contraste texto */
body.dark .hero h1 {
  color: #ffffff;
}

body.dark .hero p {
  color: #cfe6ff;
}



/* Hero dark: usa versión sin fondo de hero-tech solo en modo oscuro */
body.dark .hero-img img {
  content: url("../imagenes/hero-tech-dark.svg");
  background: transparent !important;
  filter: drop-shadow(0 28px 44px rgba(35,194,255,.22)) brightness(1.02) saturate(1.08);
}

body.dark .hero-img {
  background: transparent !important;
}



/* Ajuste fino: mover imagen Nosotros un poco a la derecha */
.about-img img {
  transform: translateX(20px);
}

@media (max-width: 1050px) {
  .about-img img {
    transform: translateX(10px);
  }
}



/* =========================================================
   Nosotros con descripción + cuadros de valor
   ========================================================= */
.about-premium {
  grid-template-columns: .95fr 1.05fr;
  gap: 46px;
  align-items: center;
}

.about-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #0875ef;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.about-premium h2 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: -.6px;
}

.about-premium h2 span {
  color: #0875ef;
}

.about-premium .about-text p {
  max-width: 640px;
  color: #334155;
  font-size: 17px;
  line-height: 1.68;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-value-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  min-height: 132px;
  padding: 24px 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(231,238,248,.95);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(20,93,170,.13);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.about-value-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 58px rgba(20,93,170,.18);
  background: rgba(255,255,255,.96);
}

.value-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  font-size: 21px;
  border-radius: 50%;
  background: linear-gradient(135deg, #075bd8, #23c2ff);
  box-shadow: 0 14px 28px rgba(7,91,216,.24);
}

.about-value-card h3 {
  margin: 0 0 8px;
  color: #112148;
  font-size: 19px;
}

.about-value-card p {
  margin: 0;
  color: #3d4a64;
  font-size: 14.5px;
  line-height: 1.55;
}

body.dark .about-premium .about-text p,
body.dark .about-value-card p {
  color: #d5e7ff;
}

body.dark .about-value-card {
  background: rgba(15,33,64,.86);
  border-color: #21395d;
  box-shadow: 0 22px 55px rgba(0,0,0,.28);
}

body.dark .about-value-card:hover {
  background: rgba(18,42,78,.96);
  box-shadow: 0 28px 58px rgba(0,0,0,.34);
}

body.dark .about-value-card h3,
body.dark .about-premium h2 {
  color: #ffffff;
}

body.dark .about-kicker,
body.dark .about-premium h2 span {
  color: #42cfff;
}

@media (max-width: 1050px) {
  .about-premium {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-premium h2 {
    font-size: 36px;
  }
}

@media (max-width: 760px) {
  .about-values {
    grid-template-columns: 1fr;
  }

  .about-premium h2 {
    font-size: 30px;
  }

  .about-value-card {
    grid-template-columns: 48px 1fr;
    padding: 20px;
  }
}



/* Iconos SVG modernos */
.icon-svg {
  width: 24px;
  height: 24px;
  color: white;
}



/* =========================================================
   SOLO MODO OSCURO: limpiar fondos decorativos y separar secciones
   ========================================================= */

/* Elimina líneas/nubes decorativas únicamente en dark mode */
body.dark .store::before,
body.dark .store::after,
body.dark .about::before,
body.dark .about::after,
body.dark .about-premium::before,
body.dark .about-premium::after,
body.dark .contact::before,
body.dark .contact::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Fondo limpio para esas secciones en dark */
body.dark .store,
body.dark .about,
body.dark .about-premium,
body.dark .contact {
  background-image: none !important;
  background: #081225 !important;
}

/* Línea horizontal suave para dividir secciones en dark */
body.dark .store,
body.dark .about,
body.dark .about-premium,
body.dark .contact {
  border-top: 1px solid rgba(98, 199, 255, 0.16);
}

body.dark .store {
  border-bottom: 1px solid rgba(98, 199, 255, 0.12);
}

body.dark .contact {
  border-bottom: 1px solid rgba(98, 199, 255, 0.16);
}



/* =========================================================
   SOLO MODO OSCURO: limpiar Hero y Servicios + líneas divisorias
   ========================================================= */

/* Quitar fondos decorativos del slide inicial y servicios solo en dark */
body.dark .hero::before,
body.dark .hero::after,
body.dark .services::before,
body.dark .services::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Fondo oscuro limpio, igualado con las demás secciones */
body.dark .hero,
body.dark .services {
  background-image: none !important;
  background: #081225 !important;
}

/* Líneas horizontales suaves para dividir visualmente */
body.dark .hero {
  border-bottom: 1px solid rgba(98, 199, 255, 0.16);
}

body.dark .services {
  border-top: 1px solid rgba(98, 199, 255, 0.16);
  border-bottom: 1px solid rgba(98, 199, 255, 0.12);
}



/* =========================================================
   Ajustes responsive finales - sitio principal
   Mantiene intactos los cambios actuales de modo oscuro
   ========================================================= */

img,
svg {
  max-width: 100%;
  height: auto;
}

.site-wrap {
  width: min(1500px, 100%);
}

.header {
  gap: 18px;
}

.nav {
  min-width: 0;
}

.actions {
  flex-shrink: 0;
}

/* Evita que textos largos deformen tarjetas o secciones */
.card,
.store-card,
.about-value-card,
.service-panel,
.contact-info,
.hero-text {
  min-width: 0;
}

.card h3,
.store-card h3,
.about-value-card h3,
.hero-slider h1 {
  overflow-wrap: anywhere;
}

/* Desktop medio / notebook */
@media (max-width: 1280px) {
  .header {
    padding-left: 4%;
    padding-right: 4%;
  }

  .logo img {
    width: 245px;
  }

  .nav {
    gap: 22px;
    font-size: 14px;
  }

  .btn.small {
    padding: 12px 18px;
    white-space: nowrap;
  }

  .theme,
  .menu {
    width: 40px;
    height: 40px;
  }
}

/* Tablet: menú compacto y secciones apiladas */
@media (max-width: 1050px) {
  body {
    padding-top: 78px;
  }

  .header {
    min-height: 78px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo img {
    width: 220px;
  }

  .menu {
    display: block;
  }

  .nav {
    position: fixed;
    top: 84px;
    left: 4%;
    right: 4%;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 20px;
    text-align: center;
    background: rgba(255,255,255,.94);
    border: 1px solid #e7eef8;
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .nav.open {
    display: flex;
  }

  body.dark .nav {
    background: rgba(15,33,64,.96);
    border-color: #21395d;
  }

  .actions {
    margin-left: auto;
  }

  .actions .btn.small {
    display: inline-flex;
    padding: 11px 16px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .hero-slider h1 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(34px, 6vw, 46px);
  }

  .hero-slider p {
    max-width: 720px;
    min-height: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-img {
    max-width: 620px;
    margin: 0 auto;
  }

  .store-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-premium,
  .about,
  .contact,
  .service-detail {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    line-height: 1.45;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Móvil */
@media (max-width: 760px) {
  body {
    padding-top: 74px;
  }

  .header {
    min-height: 74px;
    padding-left: 5%;
    padding-right: 5%;
  }

  .logo img {
    width: 178px;
  }

  .actions {
    gap: 8px;
  }

  .actions .btn.small {
    display: none;
  }

  .theme,
  .menu {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .nav {
    top: 78px;
  }

  .section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 48px;
  }

  .hero-kicker {
    font-size: 13px;
    letter-spacing: 3px;
  }

  .hero-slider h1,
  .hero h1 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.12;
  }

  .hero-slider p,
  .hero p {
    font-size: 17px;
    line-height: 1.45;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .services-slider.pro-slider {
    padding-left: 34px;
    padding-right: 34px;
  }

  .slider-track .card {
    flex-basis: 100%;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .store-grid,
  .about-values,
  .contact-info {
    grid-template-columns: 1fr;
  }

  .store-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-premium h2,
  .section-title,
  .title,
  h2 {
    font-size: 30px;
    line-height: 1.18;
  }

  .about-value-card {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 20px;
  }

  form {
    grid-template-columns: 1fr;
  }

  textarea {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-form .btn {
    width: 100%;
  }

  .footer img {
    width: 190px;
  }
}

/* Móvil pequeño */
@media (max-width: 430px) {
  .logo img {
    width: 158px;
  }

  .hero-slider h1,
  .hero h1 {
    font-size: 28px;
  }

  .btn {
    padding: 14px 22px;
  }

  .services-slider.pro-slider {
    padding-left: 28px;
    padding-right: 28px;
  }
}



/* =========================================================
   Popup cotización tienda - glass + fondo desenfocado
   ========================================================= */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.quote-modal.open {
  display: flex;
}

.quote-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 26, .48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.quote-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.92), rgba(255,255,255,.42) 45%, rgba(35,194,255,.18)),
    rgba(255,255,255,.56);
  box-shadow: 0 34px 90px rgba(7,29,73,.22), inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  animation: quoteIn .22s ease;
}

.quote-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(130,145,165,.36);
  border-radius: 50%;
  color: #071d49;
  background: rgba(255,255,255,.52);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.quote-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #0875ef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.quote-dialog h2 {
  margin: 0 0 10px;
  color: #071d49;
  font-size: 32px;
}

.quote-dialog p {
  margin: 0 0 22px;
  color: #3d4a64;
  line-height: 1.5;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  max-width: none;
}

.quote-form label {
  color: #102044;
  font-weight: 800;
  font-size: 14px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(217,228,242,.92);
  border-radius: 13px;
  background: rgba(255,255,255,.82);
  font: inherit;
  outline: none;
}

.quote-form textarea {
  min-height: 115px;
  resize: vertical;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: #23a9ff;
  box-shadow: 0 0 0 4px rgba(35,194,255,.13);
}

.quote-submit {
  width: 100%;
  margin-top: 8px;
}

.quote-loader {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid rgba(255,255,255,.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: quoteSpin .8s linear infinite;
}

.quote-submit.loading .quote-loader {
  display: inline-block;
}

.quote-submit.loading .quote-btn-text {
  opacity: .45;
}

.quote-status {
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 900;
  text-align: center;
}

.quote-status.processing,
.quote-status.success,
.quote-status.error {
  display: flex;
}

.quote-status.processing {
  color: #075bd8;
  background: rgba(35,194,255,.12);
  border: 1px solid rgba(35,194,255,.28);
}

.quote-status.success {
  color: #047857;
  background: rgba(16,185,129,.14);
  border: 1px solid rgba(16,185,129,.25);
}

.quote-status.error {
  color: #b42318;
  background: rgba(220,38,38,.10);
  border: 1px solid rgba(220,38,38,.22);
}

body.dark .quote-dialog {
  background:
    radial-gradient(circle at 30% 18%, rgba(98,199,255,.20), rgba(16,31,56,.48) 52%, rgba(255,255,255,.06)),
    rgba(16,31,56,.54);
  border-color: rgba(150,165,185,.34);
  box-shadow: 0 34px 90px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.08);
}

body.dark .quote-close {
  color: #e6f4ff;
  background: rgba(16,31,56,.52);
  border-color: rgba(150,165,185,.28);
}

body.dark .quote-dialog h2,
body.dark .quote-form label {
  color: #ffffff;
}

body.dark .quote-dialog p {
  color: #d5e7ff;
}

body.dark .quote-kicker {
  color: #62c7ff;
}

body.dark .quote-form input,
body.dark .quote-form textarea {
  color: #ffffff;
  background: rgba(16,31,56,.82);
  border-color: #29476e;
}

body.dark .quote-status.success {
  color: #86efac;
  background: rgba(22,163,74,.12);
}

@keyframes quoteSpin {
  to { transform: rotate(360deg); }
}

@keyframes quoteIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .quote-dialog {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .quote-dialog h2 {
    font-size: 26px;
  }
}



/* =========================================================
   Orden final popup cotización
   ========================================================= */
.quote-dialog-wide {
  width: min(760px, 100%);
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.quote-col {
  display: grid;
  gap: 11px;
  align-content: start;
}

.quote-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(217,228,242,.92);
  border-radius: 13px;
  background: rgba(255,255,255,.82);
  font: inherit;
  outline: none;
  color: #102044;
  box-shadow: 0 8px 22px rgba(12,70,130,.06);
}

.quote-form select:focus {
  border-color: #23a9ff;
  box-shadow: 0 0 0 4px rgba(35,194,255,.13);
}

.quote-full,
.quote-actions-row,
.quote-status {
  grid-column: 1 / -1;
}

.quote-full {
  display: grid;
  gap: 11px;
}

.quote-actions-row {
  display: flex;
  justify-content: flex-end;
}

.quote-actions-row .quote-submit {
  width: auto;
  min-width: 190px;
}

body.dark .quote-form select {
  color: #ffffff;
  background: rgba(16,31,56,.82);
  border-color: #29476e;
}

@media (max-width: 720px) {
  .quote-form-grid {
    grid-template-columns: 1fr;
  }

  .quote-actions-row {
    justify-content: stretch;
  }

  .quote-actions-row .quote-submit {
    width: 100%;
  }
}



/* =========================================================
   Ajuste final layout popup cotización
   ========================================================= */
.quote-form-final {
  grid-template-columns: .82fr 1.18fr;
  align-items: start;
}

.quote-left,
.quote-right,
.quote-detail-block {
  display: grid;
  gap: 11px;
}

.quote-right {
  grid-column: 2;
}

.quote-left {
  grid-column: 1;
}

.quote-detail-block {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.quote-detail-block label {
  margin-bottom: 0;
}

.quote-detail-block textarea {
  width: 100%;
  min-height: 132px;
}

.quote-form-final .quote-actions-row {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .quote-form-final {
    grid-template-columns: 1fr;
  }

  .quote-left,
  .quote-right,
  .quote-detail-block {
    grid-column: 1;
  }

  .quote-form-final .quote-actions-row {
    justify-content: stretch;
  }
}



/* =========================================================
   Popup cotización ordenado: etiqueta izquierda / campo derecha
   ========================================================= */
.quote-dialog-wide {
  width: min(680px, 100%);
}

.quote-form-clean {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: none;
}

.quote-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}

.quote-row label,
.quote-detail label {
  color: #102044;
  font-weight: 900;
  font-size: 14px;
}

.quote-row input,
.quote-row select,
.quote-detail textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(217,228,242,.92);
  border-radius: 13px;
  background: rgba(255,255,255,.86);
  font: inherit;
  outline: none;
  color: #102044;
  box-shadow: 0 8px 22px rgba(12,70,130,.06);
}

.quote-row input:focus,
.quote-row select:focus,
.quote-detail textarea:focus {
  border-color: #23a9ff;
  box-shadow: 0 0 0 4px rgba(35,194,255,.13);
}

.quote-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

.quote-detail textarea {
  min-height: 165px;
  resize: vertical;
}

.quote-form-clean .quote-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.quote-form-clean .quote-submit {
  width: auto;
  min-width: 190px;
}

.quote-form-clean .quote-status {
  width: 100%;
}

body.dark .quote-row label,
body.dark .quote-detail label {
  color: #ffffff;
}

body.dark .quote-row input,
body.dark .quote-row select,
body.dark .quote-detail textarea {
  color: #ffffff;
  background: rgba(16,31,56,.82);
  border-color: #29476e;
}

@media (max-width: 640px) {
  .quote-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quote-form-clean .quote-actions-row {
    justify-content: stretch;
  }

  .quote-form-clean .quote-submit {
    width: 100%;
  }
}



/* =========================================================
   Ajuste final popup: detalle alineado con los demás campos
   ========================================================= */
.quote-form-aligned {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.quote-form-aligned .quote-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}

.quote-form-aligned .quote-row-detail {
  align-items: start;
}

.quote-form-aligned .quote-row-detail label {
  padding-top: 14px;
}

.quote-form-aligned .quote-row-detail textarea {
  min-height: 190px;
  width: 100%;
  resize: vertical;
}

.quote-form-aligned .quote-actions-row {
  display: flex;
  justify-content: flex-end;
}

.quote-form-aligned .quote-status {
  width: 100%;
}

@media (max-width: 640px) {
  .quote-form-aligned .quote-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quote-form-aligned .quote-row-detail label {
    padding-top: 0;
  }

  .quote-form-aligned .quote-actions-row {
    justify-content: stretch;
  }

  .quote-form-aligned .quote-submit {
    width: 100%;
  }
}



/* =========================================================
   Detalle cotización full width (label arriba + textarea completo)
   ========================================================= */
.quote-detail-full {
  display: grid;
  grid-template-columns: 0px 1fr !important;
  gap: 10px;
}

.quote-detail-full label {
  width: 100%;
  display: block;
  font-weight: 900;
}

.quote-detail-full textarea {
  width: 100%;
  min-height: 200px;
  resize: vertical;
}



/* =========================================================
   Detalle cotización alineado perfecto
   ========================================================= */
/* Detalle cotización sin margen izquierdo */
.quote-detail-full {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  align-items: start !important;
}

.quote-detail-full label {
  grid-column: 1 !important;
  white-space: nowrap !important;
  padding-top: 0 !important;
  color: #102044;
  font-weight: 900;
  font-size: 14px;
}

.quote-detail-full textarea {
  grid-column: 1 !important;
  width: 100% !important;
  min-height: 200px !important;
  resize: vertical;
}

body.dark .quote-detail-full label {
  color: #ffffff;
}

@media (max-width: 640px) {
  .quote-detail-full {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .quote-detail-full label,
  .quote-detail-full textarea {
    grid-column: 1 !important;
  }


}



/* Slider infinito servicios */
.service-clone {
  pointer-events: none;
}
