/* ==============
   PALETA
   ============== */
:root {
  --smf-blue: #003d8c;   /* Azul principal */
  --smf-red:  #e0272b;   /* Rojo acento */
  --smf-black:#111111;   /* Negro */
  --smf-gray: #f5f5f5;
}

/* ==============
   BASE
   ============== */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--smf-gray);
  color: #222;
  line-height: 1.5;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ==============
   HEADER
   ============== */



/* Barra superior */

.top-bar {
  background: var(--smf-blue);
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-bar-item {
  color: #f3f3f3;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* Header principal */

.header-main {
  background: #ffffff;
  border-bottom: 4px solid var(--smf-red);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

/* Logo */

.header-logo img.custom-logo {
  max-height: 56px;       /* ajusta según tu header */
  height: auto;
  width: auto;
}

.header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--smf-black);
}

.logo-mark {
  background: var(--smf-red);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.6rem;
  letter-spacing: 0.05em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.logo-subtext {
  font-weight: 400;
  font-size: 0.8rem;
  color: #555;
}

/* Navegación */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--smf-red);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* CTA derecha */

.header-cta .btn-cta {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--smf-red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--smf-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-cta .btn-cta:hover {
  background: #b51e21;
  border-color: #b51e21;
}

/* Buscador en el header */

.header-search {
  flex-shrink: 0;
}

.header-search-form {
  position: relative;
  min-width: 220px;
  max-width: 260px;
}

.header-search-input {
  width: 100%;
  padding: 0.45rem 0.9rem 0.45rem 2.3rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  background: #ffffff;
  color: #222;
  outline: none;
}

.header-search-input::placeholder {
  color: #9ca3af;
}

.header-search-input:focus {
  border-color: var(--smf-blue);
  box-shadow: 0 0 0 2px rgba(0, 61, 140, 0.15);
}

/* Icono de lupa con puro CSS */
.header-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #9ca3af;
  box-sizing: border-box;
}

.header-search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #9ca3af;
  border-radius: 999px;
  right: -3px;
  bottom: -1px;
  transform: rotate(45deg);
}

/* ==============
   FOOTER
   ============== */

/* Footer siempre al final */
.site-footer {
  flex-shrink: 0;
  background: var(--smf-black);
  color: #f5f5f5;
  font-size: 0.9rem;
}

/* Franja superior tipo “banda” */

.footer-top-border {
  height: 4px;
  background: linear-gradient(
    to right,
    var(--smf-blue) 0%,
    var(--smf-blue) 30%,
    var(--smf-red) 30%,
    var(--smf-red) 70%,
    var(--smf-blue) 70%,
    var(--smf-blue) 100%
  );
}

/* Parte principal del footer */

.footer-top {
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.6fr 1.2fr;
  gap: 2rem;
}

.footer-col h4 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-col p {
  margin: 0;
  color: #d0d0d0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.35rem;
}

.footer-col a {
  color: #d0d0d0;
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffffff;
}

/* =========================
   Footer – Redes sociales
   ========================= */

.footer-col.footer-social h4 {
  margin-bottom: 1.25rem;
}

/* Contenedor de iconos */
.social-icons {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Botón base */
.social-icon {
  width: 2.7rem;              /* tamaño más discreto */
  height: 2.7rem;
  border-radius: 0.95rem;      /* esquinas redondeadas tipo “pill cuadrado” */
  background: #151515;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #262626;
}

/* SVGs: todos con el mismo estilo de trazo */
.social-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: #e4e4e4;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* El triángulo de YouTube sí va relleno */
.social-icon--youtube svg path:nth-of-type(2) {
  fill: #e4e4e4;
  stroke: none;
}

/* Hover genérico: elevación y trazo blanco */
.social-icon:hover,
.social-icon:focus-visible {
  outline: none;
}

.social-icon:hover svg,
.social-icon:focus-visible svg {
  stroke: #ffffff;
}

/* Colores de marca al hacer hover */
.social-icon--facebook:hover,
.social-icon--facebook:focus-visible {
  background-color: #1877f2;
  border-color: #1877f2;
}

.social-icon--youtube:hover,
.social-icon--youtube:focus-visible {
  background-color: #ff0000;
  border-color: #ff0000;
}

.social-icon--instagram:hover,
.social-icon--instagram:focus-visible {
  background-color: #d6249f;
  border-color: #d6249f;
}

.social-icon--tiktok:hover,
.social-icon--tiktok:focus-visible {
  background-color: #00f2ea;
  border-color: #00f2ea;
}

.social-icon--maps:hover,
.social-icon--maps:focus-visible {
  background-color: #00b894;
  border-color: #00b894;
}

/* Accesibilidad teclado */
.social-icon:focus-visible {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px #1877f2;
}

/* Responsive: en pantallas pequeñas */
@media (max-width: 768px) {
  .social-icons {
    gap: 0.7rem;
  }

  .social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
  }

  .social-icon svg {
    width: 1.3rem;
    height: 1.3rem;
  }
}

/* Franja inferior */

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 0.9rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #bbbbbb;
}

.footer-tagline {
  font-style: italic;
  color: #e0e0e0;
}

/* ==============
   RESPONSIVE
   ============== */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .header-cta {
    order: 2;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .header-search-form {
    max-width: 100%;
  }

  .main-nav {
    order: 4;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}


@media (max-width: 600px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === CORRECCIÓN FOOTER PEGADO AL FONDO === */
/* === Estructura para que el footer quede abajo en todas las páginas === */

html {
  height: 100%;
  background: var(--smf-gray);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--smf-gray);
  color: #222;
  line-height: 1.5;
}

/* Wrapper general de WordPress */
#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Contenido principal */
.site-main {
  flex: 1;
}


/* =========================
   HOME – HERO + SECCIONES
   ========================= */

.home-section {
  padding: 2.5rem 0 3rem;
}

.home-section + .home-section {
  padding-top: 1rem;
}

.home-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.home-section-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.home-section-header p {
  margin: 0;
  max-width: 36rem;
  color: #555;
  font-size: 0.95rem;
}

.home-section-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--smf-blue);
  font-weight: 600;
}

.home-section-link:hover {
  text-decoration: underline;
}

/* HERO */

.home-hero {
  position: relative;
  color: #ffffff;
  background: #000;
  overflow: hidden;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-media picture,
.home-hero-media img,
.home-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* capa oscura para contraste */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* negro semitransparente */
  z-index: 1;
  pointer-events: none; /* evita bloquear clics */  
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 3.8rem;
  max-width: 40rem;
}

.home-hero-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.home-hero h1 {
  margin: 0 0 0.6rem;
  font-size: 2.1rem;
}

.home-hero-text {
  margin: 0 0 1.3rem;
  font-size: 1rem;
  max-width: 36rem;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.home-hero-btn--primary {
  background: var(--smf-red);
  border-color: var(--smf-red);
  color: #ffffff;
}

.home-hero-btn--primary:hover {
  background: #b51e21;
  border-color: #b51e21;
}

.home-hero-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.home-hero-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.home-hero-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #e5e5e5;
}

/* =========================
   HOME – MÁQUINAS DESTACADAS
   ========================= */

.home-featured {
  background: #f8f8f8;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.machine-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
}

.machine-card-media img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 190px;
}

.machine-card-placeholder {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e5e5;
  color: #555;
  font-size: 0.9rem;
}

.machine-card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.machine-card-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.machine-card-title a {
  text-decoration: none;
  color: #111;
}

.machine-card-title a:hover {
  color: var(--smf-blue);
}

.machine-card-excerpt {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: #555;
}

.machine-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--smf-blue);
  text-decoration: none;
}

.machine-card-link:hover {
  text-decoration: underline;
}

/* =========================
   HOME – SOBRE LA EMPRESA
   ========================= */

.home-about {
  background: #ffffff;
}

.home-about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.home-about-text p {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.home-about-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.home-about-list li {
  margin-bottom: 0.25rem;
}

.home-about-highlight {
  display: flex;
  justify-content: flex-end;
}

.home-about-card {
  background: #f3f4ff;
  border-radius: 8px;
  padding: 1.5rem 1.6rem;
  border: 1px solid #d0d4ff;
  box-shadow: 0 6px 18px rgba(0, 61, 140, 0.12);
}

.home-about-card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.home-about-card p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
}

.home-about-btn {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: var(--smf-blue);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.home-about-btn:hover {
  background: #022c65;
}

/* =========================
   HOME – CATEGORÍAS
   ========================= */

.home-categories {
  background: #f5f5f5;
}

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-category-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.home-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}

.home-category-media img,
.home-category-placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.home-category-placeholder {
  background: linear-gradient(135deg, #003d8c 0%, #e0272b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.home-category-body {
  padding: 0.9rem 1rem 1.1rem;
}

.home-category-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.home-category-body p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #555;
}

.home-category-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--smf-blue);
}

/* =========================
   HOME – RESPONSIVE
   ========================= */

@media (max-width: 960px) {
  .home-featured-grid,
  .home-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-about-inner {
    grid-template-columns: 1fr;
  }

  .home-about-highlight {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .home-hero-inner {
    padding: 2.6rem 0 2.9rem;
  }

  .home-hero h1 {
    font-size: 1.7rem;
  }

  .home-hero-text {
    font-size: 0.95rem;
  }

  .home-hero-video--desktop {
    display: none;
  }

  .home-hero-video--mobile {
    display: block;
  }

  .home-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-featured-grid,
  .home-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================
   PÁGINA DE MÁQUINA (single-maquina)
   ============================ */

.product-page {
  padding: 2rem 0 2rem;
}

.product-page .product {
  margin: 0;
}

/* Sección principal: galería + resumen */

.product-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
}

/* Galería */

/* Galería */

.product-gallery {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
}

.product-main-image {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.75rem;
  /* opcional, pero ayuda a que todo se vea limpio */
  overflow: hidden;
}

/* Imagen principal 4:4 con cover */
.product-main-image img,
.product-main-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4;   /* relación 4:4 */
  object-fit: cover;     /* recorta para llenar el cuadro */
}

.product-main-image-placeholder {
  aspect-ratio: 4 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  color: #777;
  font-size: 0.9rem;
  border-radius: 6px;
}

.product-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fff;
}

.product-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-thumb {
  cursor: pointer;
}

.product-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fff;
}

.product-thumb:hover img {
  border-color: #999;
}

.product-thumb--active img {
  border-color: var(--smf-red);
  box-shadow: 0 0 0 2px var(--smf-red);
}

/* Resumen */

.product-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-title {
  font-size: 1.6rem;
  margin: 0;
}

.product-brand {
  font-size: 0.95rem;
  color: #555;
}

.product-rating-placeholder {
  font-size: 0.85rem;
  color: #777;
}

.product-short-description {
  font-size: 0.95rem;
  color: #333;
}

.product-key-specs {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.9rem;
  color: #333;
}

.product-key-specs li {
  margin-bottom: 0.15rem;
}

.product-whatsapp-cta {
  margin-top: 0.5rem;
}

.product-cta-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: var(--smf-red);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

.product-cta-btn:hover {
  background: #b51e21;
}

.product-cta-note {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.35rem;
}

/* Secciones inferiores (tipo Amazon tabs) */

.product-extra {
  margin-bottom: 3rem;
}


/* ============================================
   Pestañas inferiores: estilo tipo botones
   ============================================ */

/* Contenedor de pestañas */
.product-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid #dddddd;        /* quitamos la línea vieja */
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dddddd;
  overflow-x: auto;

  /* 👇 NUEVO: comportamiento sticky */
  position: sticky;
  top: 0px;           /* ajusta según la altura de tu header */
  z-index: 50;
  background: #f8f8f8; /* para que no se transparente el contenido de debajo */
}

/* Botones de pestañas */
.product-tabs-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f3f4f6;
  color: #444;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Hover */
.product-tabs-nav a:hover {
  background: #e5e7eb;
  color: var(--smf-blue);
  border-color: #d1d5db;
}

/* Activo */
.product-tabs-nav a.active {
  background: var(--smf-blue);
  color: #ffffff;
  border-color: var(--smf-blue);
  box-shadow: 0 2px 6px rgba(0, 61, 140, 0.35);
}


/* Responsive: que las pestañas respiren mejor en móvil */
@media (max-width: 600px) {
  .product-tabs-nav {
    gap: 0.5rem;
  }

  .product-tabs-nav a {
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* Cada sección */

.product-section {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
  scroll-margin-top: 100px;
}

.product-section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.product-section-body {
  font-size: 0.95rem;
  color: #333;
}

.product-section-body p {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

/* ============================
   Galería de videos del producto
   ============================ */

.product-videos {
  padding-top: 0.5rem;
}

/* Layout principal: video grande (izquierda) + thumbs (derecha) */
.product-videos-gallery {
  display: grid;
  /* Columna izquierda igual, derecha a la mitad (de 1fr a 0.5fr) */
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.5fr);
  gap: 1.25rem;
  align-items: flex-start;
}

/* Video principal */
.product-video-main-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.product-video-main-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Thumbs a la derecha */
.product-video-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 360px;
}

.product-video-thumb {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  width: 100%;
  padding: 0.25rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.product-video-thumb-image-wrap {
  position: relative;
  width: 100%;          /* ← la mitad del ancho actual */
  border-radius: 6px;
  overflow: hidden;
}

.product-video-thumb img {
  display: block;
  width: 100%;         /* ocupa el 100% del 50% del contenedor */
  height: 80px;
  object-fit: cover;
}

.product-video-thumb-play {
  position: absolute;
  right: 0.4rem;
  bottom: 0.3rem;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.7rem;
}

.product-video-thumb-label {
  font-size: 0.8rem;
  color: #555;
}

/* Hover / activo */
.product-video-thumb:hover {
  border-color: #cccccc;
  background: #fafafa;
}

.product-video-thumb--active {
  border-color: var(--smf-red);
  background: #fff5f5;
}

/* Responsive: en pantallas pequeñas, video arriba y thumbs abajo en carrusel horizontal */
@media (max-width: 900px) {
  .product-videos-gallery {
    grid-template-columns: 1fr;
  }

  .product-video-thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }

  .product-video-thumb {
    min-width: 140px;
    flex: 0 0 auto;
  }

  .product-video-thumb img {
    height: 70px;
  }
}

/* Información de la marca */

.brand-info-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.brand-info-text p {
  margin-top: 0;
}

/* Información del producto (tabla técnica) */

.product-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.product-info-table {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.product-info-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.product-info-table th,
.product-info-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #eeeeee;
}

.product-info-table th {
  width: 40%;
  background: #f9f9f9;
  text-align: left;
  font-weight: 600;
}

.product-info-summary p {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

/* Descripción del producto */

.product-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  background: #fcfcfc;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  padding: 1.25rem 1.5rem;
}

/* párrafos más ordenados y legibles */
.product-description p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  text-align: justify;
  text-justify: inter-word;
}

.product-description p:last-child {
  margin-bottom: 0;
}

/* listas más prolijas */
.product-description ul {
  margin: 0 0 0.9rem;
  padding-left: 0;      /* quitamos el padding por defecto */
  list-style: none;     /* quitamos viñetas por defecto */
}

.product-description li {
  position: relative;
  padding-left: 1.2rem; /* espacio para la “bala” personalizada */
  margin-bottom: 0.4rem;
}

.product-description li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--smf-red);
  font-weight: 700;
}

/* subtítulos dentro de la descripción */
.product-description h3,
.product-description h4 {
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--smf-blue);
}

/* ===============================
   Sección: Descripción del producto
   =============================== */

#descripcion-producto {
  margin-top: 2rem;
}

#descripcion-producto h2 {
  margin-bottom: 1rem;
}

/* Caja de contenido */
#descripcion-producto .product-section-body {
  background: #fcfcfc;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Texto */
#descripcion-producto .product-section-body p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  text-align: justify;
  text-justify: inter-word;
  max-width: 80ch;
}

#descripcion-producto .product-section-body p:last-child {
  margin-bottom: 0;
}

/* ===============================
   Galería dentro de la descripción
   =============================== */

/* Contenedor de la galería de WP */

/* Cada ítem de la galería */
#descripcion-producto .product-section-body .blocks-gallery-item,
#descripcion-producto .product-section-body .wp-block-image {
  margin: 0;
}

/* Imágenes de la galería: formato tipo tarjeta */
#descripcion-producto .product-section-body .wp-block-gallery img,
#descripcion-producto .product-section-body .blocks-gallery-item img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Imágenes sueltas (no galería) */
#descripcion-producto .product-section-body .wp-block-image img {
  border-radius: 6px;
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  #descripcion-producto .product-section-body {
    padding: 1rem 1.1rem;
  }

  #descripcion-producto .product-section-body .wp-block-gallery img,
  #descripcion-producto .product-section-body .blocks-gallery-item img {
    height: 210px;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .product-main {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .brand-info-card,
  .product-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .product-main {
    padding: 1rem;
  }

  .product-section {
    padding: 1.1rem;
  }
}

/* ============================================
   Mejora sección "Más información del producto"
   ============================================ */

/* ============================================
   "Más información del producto" con imagen derecha
   ============================================ */

#mas-info .product-section-body {
  background: #fcfcfc;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  padding: 1.25rem 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;

  /* layout dos columnas: texto + imagen */
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 1.75rem;
  align-items: flex-start;
}

/* Columna de texto */
#mas-info .product-section-body-text {
  max-width: 80ch;
}

/* Columna de imagen */
#mas-info .product-section-body-media {
  display: flex;
  justify-content: flex-end;
}

#mas-info .product-section-body-media img.product-mas-info-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  object-fit: cover;
}

/* Párrafos ordenados y legibles */
#mas-info .product-section-body p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  text-align: justify;
  text-justify: inter-word;
}

#mas-info .product-section-body p:last-child {
  margin-bottom: 0;
}

/* Responsive: en móvil se apilan (texto arriba, imagen abajo) */
@media (max-width: 900px) {
  #mas-info .product-section-body {
    grid-template-columns: 1fr;
  }

  #mas-info .product-section-body-media {
    justify-content: center;
  }

  #mas-info .product-section-body-media img.product-mas-info-image {
    max-width: 360px;
  }
}

/* ============================================
   FIX móvil: "Más información del producto"
   - evita espaciado raro por justify
   - reduce padding para ganar ancho útil
   ============================================ */
@media (max-width: 600px) {
  #mas-info .product-section-body{
    padding: 1rem;
    gap: 1rem;
  }

  #mas-info .product-section-body-text{
    max-width: none;
  }

  /* En móvil, NO justificar: provoca huecos enormes */
  #mas-info .product-section-body p{
    text-align: justify;
    text-justify: auto;
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  /* Imagen: que respire y use el ancho disponible */
  #mas-info .product-section-body-media img.product-mas-info-image{
    width: 100%;
    max-width: none;
  }
}


/* =======================
   Página de contacto
   ======================= */

.contact-page {
  padding: 2rem 0 2rem;
}

.contact-page h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.9rem;
}

.contact-intro {
  max-width: 60ch;
  margin-bottom: 1.8rem;
}

/* Mensajes */
.contact-alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-alert--success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #4ade80;
}

.contact-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Layout formulario + sidebar */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-form {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.contact-form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.contact-field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-field input,
.contact-field textarea {
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--smf-blue);
  box-shadow: 0 0 0 2px rgba(0, 61, 140, 0.15);
}

.contact-submit-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: var(--smf-red);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.contact-submit-btn:hover {
  background: #b51e21;
}

.contact-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Sidebar */
.contact-sidebar h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-sidebar h3 {
  margin-top: 1.3rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.contact-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
}

.contact-sidebar li {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.25rem 1.25rem;
  }

  .contact-form-row {
    flex-direction: column;
  }
}

/* =========================
   HERO – Catálogo y categorías
   ========================= */

.archive-hero {
  position: relative;
  color: #ffffff;
  background: #000;
  overflow: hidden;
  margin-bottom: 2rem;
}

.archive-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  opacity: 0.95;
}

/* Capa oscura para mejorar contraste */
.archive-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.45)
  );
  pointer-events: none;
}

.archive-hero-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 0 3.3rem;
  max-width: 44rem;
}

.archive-hero-kicker {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-hero-title {
  margin: 0 0 0.5rem;
  font-size: 2.1rem;
}

.archive-hero-text {
  margin: 0 0 1.2rem;
  font-size: 0.98rem;
  max-width: 38rem;
  color: #e5e7eb;
}

/* Badge con número de máquinas */
.archive-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Responsive hero */
@media (max-width: 767px) {
  .archive-hero-inner {
    padding: 2.4rem 0 2.7rem;
  }

  .archive-hero-title {
    font-size: 1.7rem;
  }

  .archive-hero-text {
    font-size: 0.95rem;
  }
}

/* =========================
   ARCHIVE DE CATEGORÍAS (tipo_maquina)
   ========================= */

.archive-page {
  padding: 2rem 0 2rem;
}

/* Cabecera de categoría */
.archive-header {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.75rem;
}

.archive-header-main {
  max-width: 48rem;
}

.archive-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
}

.archive-title {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
  color: #111827;
}

.archive-description {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
}

.archive-header-meta {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.archive-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--smf-blue);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #d4d9ff;
}

/* Grid de máquinas dentro de la categoría */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Ajustes para reutilizar las cards existentes */
.machine-card-brand {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.machine-card-specs {
  list-style: none;
  margin: 0.4rem 0 0.55rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
  font-size: 0.82rem;
  color: #4b5563;
}

.machine-card-specs li {
  position: relative;
  padding-left: 0.65rem;
}

.machine-card-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--smf-red);
}

.machine-card-price {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  color: #374151;
}

.machine-card-price span {
  font-weight: 700;
}

/* Estado vacío */
.archive-empty {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.8rem 1.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  max-width: 42rem;
}

.archive-empty h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}

.archive-empty p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.archive-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.archive-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: var(--smf-red);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.archive-empty-btn:hover {
  background: #b51e21;
}

.archive-empty-link {
  font-size: 0.88rem;
  color: var(--smf-blue);
  text-decoration: none;
  font-weight: 600;
}

.archive-empty-link:hover {
  text-decoration: underline;
}

/* Paginación */
.archive-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .archive-header {
    flex-direction: column;
  }

  .archive-header-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-header {
    padding: 1.3rem 1.1rem;
  }
}
