/* Fuentes reales del sitio original (CDN estático de Wix, no depende de la cuenta) */
@font-face { font-family: 'futura-lt-w01-book'; font-style: normal; font-weight: 400;
  src: url('https://static.parastorage.com/fonts/v2/790166f1-b347-4f16-8a29-f0c4931a7c35/v1/futura-lt-w01-book.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'avenir-lt-w01_35-light1475496'; font-style: normal; font-weight: 400;
  src: url('https://static.parastorage.com/fonts/v2/af36905f-3c92-4ef9-b0c1-f91432f16ac1/v1/avenir-lt-w01_35-light1475496.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'avenir-lt-w01_85-heavy1475544'; font-style: normal; font-weight: 400;
  src: url('https://static.parastorage.com/fonts/v2/74290729-59ae-4129-87d0-2eec3974dce1/v1/avenir-lt-w01_85-heavy1475544.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'din-next-w01-light'; font-style: normal; font-weight: 400;
  src: url('https://static.parastorage.com/fonts/v2/eca8b0cd-45d8-43cf-aee7-ca462bc5497c/v1/din-next-w01-light.woff2') format('woff2'); font-display: swap; }

:root {
  --navy: #13274D;
  --navy-card: #25375A;
  --blue: #3B68A4;
  --lightblue: #7BA6D8;
  --input-bg: #BED2DF;
  --btn-light: #E9EBEF;
  --content: 980px;
  --f-futura: 'futura-lt-w01-book', 'Century Gothic', 'Futura', sans-serif;
  --f-avenir: 'avenir-lt-w01_35-light1475496', 'Helvetica Neue', Arial, sans-serif;
  --f-avenir-heavy: 'avenir-lt-w01_85-heavy1475544', 'Helvetica Neue', Arial, sans-serif;
  --f-din: 'din-next-w01-light', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #fff; font-family: var(--f-avenir); color: var(--navy); }
img { max-width: 100%; display: block; }
a { color: inherit; }

.content { max-width: var(--content); margin: 0 auto; }

/* Rayita corta arriba de los títulos de sección */
.heading-line { width: 45px; border-top: 3px solid var(--navy); margin-bottom: 14px; }
.heading-line.light { border-color: #fff; }

h2 { font-family: var(--f-futura); font-weight: bold; font-size: 36px; letter-spacing: 0.05em; }

.btn {
  display: inline-block; font-family: var(--f-futura); text-decoration: none;
  border-radius: 25px; padding: 12px 34px; font-size: 16px; letter-spacing: 0.03em;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-light { background: var(--btn-light); color: var(--navy); font-size: 17px; padding: 14px 40px; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; background: #fff;
  padding: 10px 20px; position: relative; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 55px; height: 55px; object-fit: contain; }
.brand span { font-family: var(--f-futura); font-weight: bold; font-size: 22px; color: var(--navy); letter-spacing: 0.02em; }
.site-header nav ul { display: flex; list-style: none; gap: 28px; }
.site-header nav a {
  font-family: var(--f-din); font-size: 15px; color: #000; text-decoration: none; letter-spacing: 0.02em;
}
.site-header nav a:hover, .site-header nav a.active { color: var(--blue); }
.hamburger { display: none; }

/* ---------- Hero ---------- */
.hero { max-width: var(--content); margin: 0 auto; padding: 60px 20px 30px; }
.hero h1 {
  font-family: var(--f-futura); font-weight: bold; font-size: 90px;
  color: var(--navy); width: fit-content; line-height: 1.15;
}
.hero-tagline {
  font-family: var(--f-futura); font-size: 18px; color: var(--blue);
  letter-spacing: 0.18em; width: fit-content; margin: 4px 0 0 275px;
}
.mission { margin: 70px 0 30px; }
.mission p { font-size: 20px; line-height: normal; text-align: justify; margin-bottom: 28px; }

/* ---------- Fundamentos ---------- */
.fundamentos {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 59%);
  gap: 14px; align-items: stretch; margin: 40px 0 0;
}
.fundamentos-text { padding: 30px 0 60px calc(max((100vw - var(--content)) / 2, 20px)); }
.fundamentos-text h2 { margin-bottom: 26px; }
.fundamentos-text p { font-size: 20px; line-height: normal; margin-bottom: 24px; }
.fundamentos-text strong { font-family: var(--f-avenir-heavy); font-weight: normal; }
.fundamentos-text .btn { margin-top: 26px; }
.fundamentos-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Productos (home) ---------- */
.section-head { max-width: var(--content); margin: 0 auto; }
.productos { background: var(--navy); color: #fff; padding: 60px 20px 70px; }
.productos h2 { margin-bottom: 10px; }
.productos-sub { font-size: 17px; margin-bottom: 45px; }
.product-grid {
  display: grid; gap: 30px; max-width: var(--content); margin: 0 auto;
  grid-template-areas: "portatil" "pared" "iot";
}
.product-card {
  background: var(--navy-card); border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px; padding: 32px 26px 40px; display: flex; flex-direction: column; align-items: center;
}
.product-photo { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin-bottom: 24px; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 {
  font-family: var(--f-futura); font-weight: bold; font-size: 21px;
  letter-spacing: 0.05em; text-align: center; margin-bottom: 22px;
}
.product-card p { font-size: 16px; line-height: 1.45; align-self: stretch; margin-bottom: 16px; }
.productos-cta { text-align: center; margin-top: 45px; }

/* ---------- Quiénes somos ---------- */
.quienes-somos { padding: 70px 20px; }
.quienes-somos h2 { margin-bottom: 55px; }
.team-row { max-width: var(--content); margin: 0 auto 55px; position: relative; }
.team-photo {
  width: 175px; height: 175px; border-radius: 50%; overflow: hidden;
  border: 5px solid var(--navy); background: #fff; flex-shrink: 0;
  position: relative; z-index: 1;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.team-card { background: var(--navy); color: #fff; border-radius: 24px; }
.team-card .heading-line { border-color: #fff; width: 60px; border-width: 2px; margin-bottom: 12px; }
.team-card h3 {
  font-family: var(--f-futura); font-weight: bold; font-size: 24px; letter-spacing: 0.05em; margin-bottom: 14px;
}
.team-card ul { list-style: disc; padding-left: 22px; }
.team-card li { font-size: 16px; line-height: 1.5; margin-bottom: 4px; }
.team-card a { color: #fff; }

/* ---------- Clientes ---------- */
.clientes { background: var(--lightblue); padding: 55px 20px 70px; }
.clientes .heading-line { border-color: #fff; }
.clientes h2 { color: #fff; margin-bottom: 40px; }
.clientes-grid {
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center;
  max-width: var(--content); margin: 0 auto;
}
.cliente img { max-height: 75px; max-width: 190px; width: auto; height: auto; }

/* ---------- Contacto ---------- */
.contacto { padding: 60px 20px 20px; }
.contact-inner {
  max-width: var(--content); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 60px;
}
.contact-info .heading-line { width: 35px; border-width: 2px; }
.contact-info h3 {
  font-family: var(--f-futura); font-weight: bold; font-size: 20px; letter-spacing: 0.05em; margin-bottom: 18px;
}
.contact-info p { font-size: 15px; margin-bottom: 6px; }
.contact-info a { color: var(--navy); }
.social { display: flex; gap: 12px; margin-top: 22px; }
.social img { width: 30px; height: 30px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form textarea {
  font-family: var(--f-avenir); font-size: 15px; color: var(--navy);
  background: var(--input-bg); border: none; padding: 10px 12px; width: 100%;
}
.contact-form ::placeholder { color: var(--navy); opacity: 0.9; }
.contact-form textarea { resize: vertical; }
.contact-form button {
  align-self: flex-end; background: var(--navy); color: #fff; border: none;
  font-family: var(--f-avenir); font-size: 14px; padding: 8px 22px; cursor: pointer;
}
.contact-form button:disabled { opacity: 0.6; }
.form-status { font-size: 15px; }
.footnote { font-family: var(--f-din); font-size: 12px; max-width: var(--content); margin: 50px auto 25px; }

.site-footer { background: var(--navy); height: 85px; }

/* ---------- Página de productos ---------- */
.productos-head { max-width: var(--content); margin: 45px auto 25px; padding: 0 20px; }
.productos-head h1 {
  font-family: var(--f-futura); font-weight: bold; font-size: 36px; letter-spacing: 0.05em; color: var(--navy);
}
.detail {
  display: grid; column-gap: 45px; margin-bottom: 70px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: "media ." "media title" "media text" "media .";
}
.detail.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  grid-template-areas: ". media" "title media" "text media" ". media";
}
.detail-media { grid-area: media; }
.detail-title { grid-area: title; font-size: 27px; text-align: center; color: var(--navy); margin-bottom: 28px; padding: 0 40px; }
.detail-text { grid-area: text; padding: 0 40px; }
.detail-text ul { list-style: disc; padding-left: 20px; }
.detail-text li { font-size: 14px; line-height: 1.5; text-align: justify; margin-bottom: 12px; }
.detail-text .fine { font-size: 13px; margin-top: 18px; }
.detail-text a { color: var(--navy); }

/* Galería / slideshow */
.gallery { position: relative; overflow: hidden; }
.gallery .slide { display: none; }
.gallery .slide.current { display: block; }
.gallery .slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(19, 39, 77, 0.85); color: #fff;
  padding: 14px 18px; opacity: 0; transition: opacity 0.25s;
}
.gallery:hover figcaption { opacity: 1; }
.gallery figcaption strong { display: block; font-family: var(--f-futura); letter-spacing: 0.04em; margin-bottom: 6px; }
.gallery figcaption span { font-size: 13px; line-height: 1.4; }
.g-prev, .g-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 34px; cursor: pointer;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6); padding: 6px 12px;
}
.g-prev { left: 6px; }
.g-next { right: 6px; }
.g-counter {
  position: absolute; top: 10px; right: 14px; color: #fff; font-family: var(--f-avenir);
  font-size: 14px; text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

/* ============================================================
   Desktop (>750px): reordenamientos que difieren del DOM/mobile
   ============================================================ */
@media (min-width: 751px) {
  .site-header { padding: 12px 40px; }
  .site-header nav { margin-left: auto; }
  .hero-tagline { text-align: right; margin-top: 4px; }
  /* En desktop las cards van pared / portátil / iot */
  .product-grid { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "pared portatil iot"; }
  /* Cards de equipo: foto pisando el borde izquierdo de la card */
  .team-row { display: flex; align-items: center; padding-left: 40px; }
  .team-card { flex: 1; margin-left: -85px; padding: 30px 40px 30px 130px; }
}

/* ============================================================
   Mobile (<=750px): breakpoint de Wix
   ============================================================ */
@media (max-width: 750px) {
  .site-header { justify-content: center; padding: 8px 14px; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: 18px; }
  .hamburger {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%); cursor: pointer; padding: 6px;
  }
  .hamburger span { width: 22px; height: 2px; background: var(--navy); }
  .site-header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  }
  body.menu-open .site-header nav { display: block; }
  .site-header nav ul { flex-direction: column; gap: 0; }
  .site-header nav li { border-top: 1px solid #eee; }
  .site-header nav a { display: block; padding: 14px 20px; text-align: center; font-size: 14px; }

  .hero { padding: 30px 24px 10px; }
  .hero h1 { display: none; }
  .hero-tagline { font-size: 16px; letter-spacing: 0.2em; text-align: center; margin: 0 auto; }
  .mission { margin: 30px auto 20px; max-width: 500px; }
  .mission p { font-size: 13px; margin-bottom: 18px; }

  .fundamentos { display: block; margin-top: 10px; }
  .fundamentos-photo { display: none; }
  .fundamentos-text { padding: 10px 24px 40px; max-width: 500px; margin: 0 auto; }
  .fundamentos-text .heading-line, .section-head .heading-line,
  .contact-info .heading-line, .productos-head .heading-line {
    margin-left: auto; margin-right: auto;
  }
  h2, .productos-head h1 { text-align: center; font-size: 26px; }
  .fundamentos-text p { font-size: 14px; }
  .fundamentos-text { text-align: center; }
  .fundamentos-text p { text-align: justify; }

  .productos { padding: 45px 24px 55px; }
  .productos-sub { text-align: center; font-size: 14px; margin-bottom: 30px; }
  .product-card { padding: 26px 20px 30px; }
  /* En mobile el título va arriba de la foto (como en Wix mobile) */
  .product-card h3 { order: -1; margin-bottom: 20px; font-size: 20px; }
  .product-card p { font-size: 14px; text-align: center; }

  .quienes-somos { padding: 45px 24px; }
  .quienes-somos > h2 { margin-bottom: 40px; }
  .team-row { max-width: 420px; }
  .team-photo { width: 140px; height: 140px; margin: 0 auto -70px; position: relative; z-index: 1; }
  .team-card { padding: 90px 26px 30px; text-align: center; }
  .team-card .heading-line { margin: 0 auto 12px; }
  .team-card ul { text-align: left; display: inline-block; }
  .team-card li { font-size: 14px; }

  .clientes { padding: 40px 24px 55px; }
  .clientes-grid { flex-direction: column; justify-content: center; }
  .cliente img { max-width: 220px; max-height: 90px; }

  .contacto { padding: 45px 24px 15px; }
  .contact-inner { grid-template-columns: 1fr; gap: 35px; }
  .contact-info { text-align: center; }
  .social { justify-content: center; }
  .footnote { text-align: center; margin: 35px auto 20px; }
  .site-footer { height: 60px; }

  /* Página de productos */
  .productos-head { margin: 30px auto 20px; }
  .detail, .detail.reverse {
    grid-template-columns: 1fr; grid-template-rows: auto auto auto;
    grid-template-areas: "title" "media" "text"; row-gap: 24px; margin-bottom: 50px;
  }
  .detail-title { padding: 0 24px; margin-bottom: 0; }
  .detail-text { padding: 0 24px; }
  .detail-text ul { padding-left: 44px; }
}
