:root {
  --red: #dc291a;
  --gray: #848484;
  --white: #ffffff;
  --charcoal: #1f1f1f;
  --light: #f7f7f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* El envoltorio <picture> no debe generar caja: el <img> se maqueta como antes */
picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin: 0 0 16px 0;
}

p {
  margin: 0 0 16px 0;
  color: var(--gray);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-light {
  background: var(--light);
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 2px solid var(--red);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--red);
  color: var(--white);
}

.btn-solid {
  background: var(--red);
  color: var(--white);
}

.btn-solid:hover {
  background: #b61f13;
  border-color: #b61f13;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-title {
  font-size: 44px;
  line-height: 1.15;
}

.hero-description {
  font-size: 17px;
  max-width: 780px;
}

.sector-title {
  font-size: 22px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid #eee;
}

.topbar {
  background: var(--charcoal);
  color: var(--white);
  font-size: 12px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--white);
}

.navbar {
  display: flex;
  align-items: center;
  padding: 22px 0;
  gap: 24px;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  margin-left: -130px;
}

.brand span {
  color: var(--red);
}

.brand img {
  height: 46px;
  width: auto;
}

.brand-text {
  font-size: 22px;
  letter-spacing: 0.16em;
  color: #000;
  white-space: nowrap;
}

.footer-logo {
  height: 46px;
  width: auto;
  margin-bottom: 12px;
}

.iso-badge {
  height: 80px;
  width: auto;
  margin-top: 20px;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav-desktop a:hover {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

.nav-desktop a.nav-active {
  color: var(--red);
  font-weight: 700;
  border-bottom: 3px solid var(--red);
  padding-bottom: 3px;
}

.lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 16px;
  border-left: 1px solid #ddd;
  padding-left: 16px;
}

.lang-switcher a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #888;
  text-decoration: none;
  padding: 3px 5px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

.lang-switcher a:hover,
.lang-switcher a.lang-active {
  color: var(--white);
  background: var(--red);
}

.nav-mobile {
  display: none;
  position: relative;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile .menu-panel {
  position: absolute;
  right: 0;
  top: 28px;
  background: var(--white);
  border: 1px solid #eee;
  padding: 16px;
  min-width: 200px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
}

.hero-parallax {
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(0deg, rgba(31, 31, 31, 0.55), rgba(31, 31, 31, 0.2)),
    url("fotos/reunion.webp") center/cover no-repeat fixed;
  background-position: center 25%;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 80px 0;
}

.hero-overlay h1 {
  color: var(--white);
  font-size: 42px;
  line-height: 1.2;
}

.hero-overlay p {
  color: #f2f2f2;
  font-size: 16px;
}

.about-parallax {
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: linear-gradient(0deg, rgba(31, 31, 31, 0.65), rgba(31, 31, 31, 0.3)),
    url("fotos/nosotros.webp") center/cover no-repeat fixed;
  color: var(--white);
  padding: 80px 0;
}

.about-parallax h2,
.about-parallax p {
  color: var(--white);
}

.about-title {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.grid-3 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.products-grid {
  gap: 40px;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.products-grid .card {
  padding: 32px;
}

.card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-link:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.products-grid img {
  max-height: 300px;
  width: 100%;
  object-fit: cover;
}

.card {
  background: var(--white);
  border: 1px solid #eee;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card h3 {
  margin-bottom: 10px;
}

.stat {
  font-size: 36px;
  font-weight: 700;
  color: var(--red);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--charcoal);
  background: var(--white);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.brand-card {
  background: var(--white);
  border: 1px solid #eee;
  border-top: 4px solid var(--red);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.brand-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.brand-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  margin-bottom: 12px;
  align-self: flex-start;
}

.brand-card p {
  font-size: 14px;
  color: #555;
  flex: 1;
  margin: 0;
}

.brand-card .tag {
  align-self: flex-start;
}

.map-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.map-modal-overlay.active {
  display: flex;
}

.map-modal {
  background: var(--white);
  width: 100%;
  max-width: 720px;
  padding: 24px;
  position: relative;
}

.map-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.map-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--charcoal);
  line-height: 1;
}

.map-modal-close:hover {
  color: var(--red);
}

.btn-map {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}

.btn-map:hover {
  background: var(--red);
  border-color: var(--red);
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
}

footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 60px 0 30px;
}

footer h4 {
  color: var(--white);
}

footer p, footer a {
  color: #cfcfcf;
}

.trust-bar {
  background: var(--charcoal);
  padding: 24px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
}

.trust-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.trust-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  margin-top: 4px;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ── BLOG ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.blog-card {
  background: var(--white);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--charcoal);
}

.blog-card-desc {
  font-size: 14px;
  color: #555;
  flex: 1;
  margin: 0;
}

.blog-card-footer {
  margin-top: 8px;
}

/* Article page */
.article-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body h2 {
  margin-top: 40px;
}

.article-body h3 {
  margin-top: 32px;
}

.article-body ul {
  padding-left: 20px;
  line-height: 2;
}

.article-body figure {
  margin: 32px 0;
}

.article-body figure img {
  width: 100%;
  height: auto;
}

.article-body figcaption {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
  text-align: center;
}

/* ── BLOG ARTICLE EXTRAS ── */
.tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.intro-box {
  background: #f5f5f5;
  border-left: 4px solid var(--red);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 16px;
  line-height: 1.7;
}

.warning-box {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.divider {
  border: none;
  border-top: 2px solid #eee;
  margin: 48px 0;
}

.step-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 28px 0;
}

.step-block .step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--red);
  min-width: 44px;
  line-height: 1;
  padding-top: 2px;
}

.step-block .step-content {
  flex: 1;
}

.step-block .step-content strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.product-card {
  border: 1px solid #e0e0e0;
  border-top: 4px solid var(--red);
  padding: 24px;
  margin: 28px 0;
}

.prod-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.prod-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.product-card ul {
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
}

.cta-box {
  background: var(--charcoal);
  color: var(--white);
  padding: 32px;
  margin: 48px 0 32px;
  text-align: center;
}

.cta-box p {
  color: #ccc;
  margin-bottom: 20px;
  font-size: 16px;
}

.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  margin: 6px 8px;
  font-size: 14px;
  transition: background 0.2s;
}

.cta-btn:hover {
  background: #b61f13;
}

.cta-btn.secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
}

.cta-btn.secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.article-photo {
  width: 100%;
  height: auto;
  display: block;
  margin: 28px 0 8px;
}

.article-photo-caption {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-bottom: 28px;
}

/* ── END BLOG ARTICLE EXTRAS ── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #eee;
  line-height: 1;
}

.step-item h3 {
  margin: 0;
  font-size: 18px;
}

.step-item p {
  margin: 0;
  color: #555;
}

.landing-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
}

.landing-check::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpolyline points='1,5 4,8 11,1' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.landing-form {
  background: var(--light);
  padding: 32px;
  border: 1px solid #eee;
}

.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  border-left: 3px solid var(--red);
  padding-left: 0;
}

.timeline-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 0 0 40px 32px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}

.timeline-year {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  min-width: 80px;
  padding-top: 2px;
}

.timeline-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.timeline-content p {
  margin: 0;
  color: #555;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── TABLET (≤1024px) ── */
@media (max-width: 1024px) {
  .brand {
    margin-left: 0;
  }

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

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

  .brands-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

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

  .trust-bar-inner {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .trust-divider {
    display: none;
  }
}

/* ── MÓVIL Y TABLET (≤900px) — oculta nav escritorio ── */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .brand {
    margin-left: 0;
  }

  .hero-overlay h1 {
    font-size: 30px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-parallax {
    background-attachment: scroll;
    min-height: 55vh;
    padding: 60px 0;
  }

  .about-parallax {
    background-attachment: scroll;
    min-height: 40vh;
    padding: 60px 0;
  }

  .about-title {
    font-size: 28px;
  }

  .section {
    padding: 52px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

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

  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-year {
    font-size: 18px;
  }

  .trust-bar-inner {
    gap: 20px 32px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .trust-divider {
    display: none;
  }

  .lang-switcher {
    margin-left: 8px;
    padding-left: 8px;
  }

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

  .article-body {
    max-width: 100%;
  }

  .step-block {
    flex-direction: column;
    gap: 8px;
  }

  .step-num {
    font-size: 36px;
  }

  .map-modal {
    padding: 16px;
  }

  .cta-box {
    padding: 24px 16px;
  }
}

/* ── MÓVIL (≤600px) ── */
@media (max-width: 600px) {
  .brand-text {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .brand img {
    height: 36px;
  }

  .hero-overlay h1 {
    font-size: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  .section {
    padding: 40px 0;
  }

  .hero-parallax {
    min-height: 70vh;
    padding: 50px 0;
  }

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

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

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

  .topbar .container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .trust-bar-inner {
    gap: 16px;
  }

  .trust-num {
    font-size: 22px;
  }

  .landing-form {
    padding: 20px 16px;
  }

  .map-modal {
    max-width: 100%;
    margin: 16px;
    padding: 16px;
  }

  .map-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .map-modal iframe {
    height: 260px;
  }

  .timeline {
    padding-left: 0;
    border-left: none;
  }

  .timeline-item {
    padding-left: 0;
    padding-bottom: 28px;
  }

  .timeline-item::before {
    display: none;
  }

  .article-hero {
    max-height: 240px;
  }

  .step-block .step-num {
    font-size: 28px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 11px;
  }

  .stat {
    font-size: 28px;
  }

  .product-card {
    padding: 16px;
  }

  .brand-card {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}
