/* =========================================================
   POLYPMG — Estilos generales
   ========================================================= */

:root {
  --color-gris: #F3F3F3;
  --color-rojo: #FF000C;
  --color-black: #000000;
  --color-white: #ffffff;
  --font-main: "Montserrat", sans-serif;
  --header-height-mobile: 76px;
  --header-height-desktop: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  text-align: center;
}

.section-title .line {
  width: 96px;
  height: 2px;
  background: var(--color-black);
  margin-bottom: 16px;
}

.section-title h1,
.section-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

@media (min-width: 768px) {
  .section-title h1,
  .section-title h2 {
    font-size: 1.5rem;
  }
}

/* Anclas de líneas de producto (compensar header fijo) */
#inyex, #eazymatic, #airsys {
  scroll-margin-top: 150px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-white);
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 14px 12px;
}

@media (min-width: 1024px) {
  .site-header {
    padding: 0 48px;
    height: var(--header-height-desktop);
    display: flex;
    align-items: center;
  }
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo img {
  height: 44px;
  width: auto;
}

@media (min-width: 768px) {
  .header-logo img { height: 56px; }
}

/* Nav desktop */
.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin-right: 20px;
  }
  .nav-desktop ul {
    display: flex;
    gap: 32px;
  }
  .nav-desktop a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
  }
  .nav-desktop a:hover {
    color: var(--color-rojo);
  }
}

/* Botón hamburguesa */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  gap: 6px;
  background: none;
  border: none;
  z-index: 60;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
}

@media (min-width: 1024px) {
  .hamburger-btn { display: none; }
}

/* Drawer móvil */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 380px;
  background: var(--color-black);
  color: var(--color-white);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 48px 24px;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  width: 32px;
  height: 32px;
}

.mobile-drawer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}

.mobile-drawer-logo img {
  height: 60px;
  width: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: right;
  margin-bottom: auto;
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.mobile-drawer-footer {
  margin-top: 32px;
}

.mobile-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.mobile-social a svg {
  width: 28px;
  height: 28px;
}

.mobile-drawer hr {
  border: none;
  border-top: 1px solid var(--color-white);
  max-width: 90%;
  margin: 0 auto 24px;
}

.mobile-copy {
  text-align: center;
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.5;
  color: #d1d1d1;
}

/* Espaciador para header fijo */
.header-spacer {
  height: var(--header-height-mobile);
}

@media (min-width: 1024px) {
  .header-spacer { height: var(--header-height-desktop); }
}

/* =========================================================
   MAIN SLIDER (Carrusel de máquinas)
   ========================================================= */

.main-slider {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  background: var(--color-white);
  touch-action: pan-y;
}

@media (min-width: 768px) {
  .main-slider { height: 80vh; }
}

@media (min-width: 1024px) {
  .main-slider { height: 90vh; }
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}

.slide.is-active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-arrow-zone {
  position: absolute;
  top: 0;
  height: 100%;
  width: 80px;
  z-index: 20;
  display: flex;
  align-items: center;
}

.slider-arrow-zone.left { left: 0; justify-content: flex-start; padding-left: 16px; }
.slider-arrow-zone.right { right: 0; justify-content: flex-end; padding-right: 16px; }

@media (min-width: 768px) {
  .slider-arrow-zone { width: 128px; }
}

.slider-arrow-zone button {
  background: none;
  border: none;
  color: var(--color-white);
  padding: 8px;
  opacity: 0.6;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: all 0.3s ease;
}

.slider-arrow-zone button svg {
  width: 32px;
  height: 32px;
}

@media (min-width: 768px) {
  .slider-arrow-zone button svg { width: 48px; height: 48px; }
}

.slider-arrow-zone button:hover {
  color: var(--color-rojo);
  opacity: 1;
}

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

.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-white);
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dots button.is-active {
  background: var(--color-rojo);
  width: 24px;
}

/* =========================================================
   BENEFICIOS
   ========================================================= */

.beneficios {
  background: var(--color-gris);
  padding: 64px 16px;
}

@media (min-width: 768px) {
  .beneficios { padding: 64px 32px; }
}

.beneficios-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .beneficios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .beneficios-grid { grid-template-columns: repeat(4, 1fr); }
}

.beneficio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border-radius: 8px;
  transition: all 0.5s ease;
  z-index: 0;
}

.beneficio-card.is-active {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  background: #f5f5f5;
  z-index: 10;
}

.beneficio-card:hover {
  transform: scale(1.03);
  background: rgba(255,255,255,0.5);
  z-index: 10;
}

.beneficio-sep-h {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 2px;
  background: rgba(177,171,171,0.5);
}

@media (min-width: 768px) {
  .beneficio-sep-h { display: none; }
}

.beneficio-sep-v {
  display: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .beneficio-sep-v.tablet {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 75%;
    background: rgba(177,171,171,0.5);
  }
}

@media (min-width: 1024px) {
  .beneficio-sep-v.desktop {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 75%;
    background: rgba(177,171,171,0.5);
  }
}

.beneficio-icon {
  width: 80px;
  height: 80px;
  background: var(--color-black);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.beneficio-icon svg {
  width: 50px;
  height: 50px;
  color: var(--color-white);
  fill: currentColor;
}

.beneficio-card.is-active .beneficio-icon {
  transform: scale(1.1);
}

.beneficio-card p {
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

@media (min-width: 768px) {
  .beneficio-card p { font-size: 0.875rem; }
}

.beneficio-card strong {
  font-weight: 700;
  color: #111;
}

/* =========================================================
   NUESTRAS LÍNEAS
   ========================================================= */

.lineas {
  background: var(--color-gris);
  padding: 0 16px 64px;
}

@media (min-width: 768px) {
  .lineas { padding: 0 32px 64px; }
}

.lineas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto 64px;
}

@media (min-width: 768px) {
  .lineas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .lineas-grid { grid-template-columns: repeat(3, 1fr); }
}

.linea-card {
  display: flex;
  flex-direction: column;
}

.linea-card .sep {
  width: 40px;
  height: 2px;
  background: var(--color-black);
  margin-bottom: 4px;
}

.linea-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.linea-card-title h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
}

.linea-card-title img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.linea-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-white);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.linea-media:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.linea-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s ease;
}

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

.linea-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 0, 12, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.linea-media:hover .linea-overlay,
.linea-media:focus-within .linea-overlay {
  opacity: 1;
}

.linea-overlay p {
  color: var(--color-white);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.lineas-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .lineas-logos { gap: 32px; }
}

.lineas-logos .logo-item {
  display: flex;
  width: 64px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .lineas-logos .logo-item { width: 96px; }
}

.lineas-logos .logo-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.15s ease;
  cursor: zoom-in;
}

@media (min-width: 768px) {
  .lineas-logos .logo-item img { width: 80px; height: 80px; }
}

.lineas-logos .logo-item img:hover {
  transform: scale(1.1);
}

.lineas-logos .logo-item span {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(0,0,0,0.65);
  text-align: center;
}

@media (min-width: 768px) {
  .lineas-logos .logo-item span { font-size: 0.75rem; }
}

.pmg-logo-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pmg-logo-wrap img {
  width: 200px;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.15s ease;
}

.pmg-logo-wrap img:hover {
  transform: scale(1.1);
}

/* =========================================================
   TESTIMONIOS
   ========================================================= */

.testimonios {
  width: 100%;
  padding: 80px 16px;
  background: var(--color-white);
}

.testimonios-grid {
  max-width: 768px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  justify-items: center;
}

@media (min-width: 768px) {
  .testimonios-grid { grid-template-columns: repeat(2, 1fr); }
}

.testimonio-card {
  width: 100%;
  max-width: 280px;
  transition: transform 0.3s ease;
}

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

.testimonio-inner {
  background: var(--color-white);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--color-rojo);
  border-bottom-width: 6px;
  box-shadow: 0 1px 2px rgba(255,0,12,0.15);
  transition: all 0.3s ease;
}

.testimonio-card:hover .testimonio-inner {
  box-shadow: 0 10px 20px rgba(255,0,12,0.25);
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--color-black);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.testimonio-card:hover .video-wrap video {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.video-wrap.is-playing .video-play-overlay {
  display: none;
}

.video-play-overlay div {
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  padding: 12px;
  border-radius: 999px;
  border: 1px solid #93c5fd;
  box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.video-play-overlay svg {
  width: 32px;
  height: 32px;
  color: var(--color-white);
  fill: currentColor;
}

.testimonio-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-rojo);
  text-align: center;
}

.testimonio-footer h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #111;
}

.testimonio-footer p {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 4px 0 0;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  width: 100%;
  background: var(--color-black);
  color: var(--color-white);
}

.footer-video {
  position: relative;
  width: 100%;
  height: 40vh;
  background: #111827;
  overflow: hidden;
}

@media (min-width: 768px) {
  .footer-video { height: 70vh; }
}

.footer-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-info {
  width: 100%;
  padding: 48px 16px;
}

@media (min-width: 768px) {
  .footer-info { padding: 64px 32px; }
}

.footer-info-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.footer-logo {
  order: 1;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-logo {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    margin-bottom: 0;
  }
}

.footer-logo img {
  height: 72px;
  width: auto;
}

@media (min-width: 1024px) {
  .footer-logo img { height: 96px; }
}

.footer-social {
  order: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-social {
    grid-column: 2;
    grid-row: 1;
    order: 2;
    justify-content: flex-end;
    margin-bottom: 0;
    gap: 32px;
  }
}

.footer-social a svg {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
}

.footer-social a:hover svg {
  color: var(--color-rojo);
  transform: scale(1.1);
}

.footer-sep {
  order: 3;
  width: 70%;
  height: 2px;
  background: var(--color-white);
  margin: 0 auto 32px;
}

@media (min-width: 768px) {
  .footer-sep {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 100%;
    height: 1px;
    margin: 24px 0;
  }
}

.footer-contact {
  order: 2;
  text-align: center;
  margin-bottom: 32px;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-contact {
    grid-column: 1;
    grid-row: 3;
    order: 4;
    text-align: left;
    margin-bottom: 0;
  }
}

.footer-contact p:first-child {
  margin-bottom: 16px;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-contact-links {
    align-items: flex-start;
    gap: 4px;
  }
}

.footer-contact-links a {
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-contact-links a:hover {
  color: var(--color-rojo);
}

.footer-copy {
  order: 5;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-copy {
    grid-column: 2;
    grid-row: 3;
    justify-content: flex-end;
  }
}

.footer-copy p {
  font-size: 0.75rem;
  text-align: center;
  font-style: italic;
  line-height: 1.6;
  color: #d1d1d1;
}

@media (min-width: 768px) {
  .footer-copy p { text-align: right; }
}

/* =========================================================
   BOTONES FLOTANTES
   ========================================================= */

.float-buttons {
  position: fixed;
  bottom: 16px;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.float-buttons a {
  background: var(--color-rojo);
  border-radius: 999px 0 0 999px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.float-buttons a:hover {
  transform: scale(1.1);
}

.float-buttons a svg {
  width: 32px;
  height: 32px;
  color: var(--color-white);
  fill: currentColor;
}

.float-buttons .whatsapp-btn {
  animation: pulse 2s infinite;
}

.float-buttons .location-btn {
  display: none;
}

@media (min-width: 1024px) {
  .float-buttons .location-btn { display: flex; }
  .float-buttons a { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.5; }
}

/* =========================================================
   PÁGINA NOSOTROS
   ========================================================= */

.page-nosotros {
  background: var(--color-gris);
  padding-bottom: 80px;
  min-height: 100vh;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 64px auto 48px;
  padding: 0 16px;
}

.page-header .line {
  width: 96px;
  height: 2px;
  background: var(--color-black);
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0;
}

@media (min-width: 768px) {
  .page-header h1 { font-size: 1.5rem; }
}

.nosotros-intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .nosotros-intro { padding: 0 32px; }
}

@media (min-width: 1024px) {
  .nosotros-intro {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
  }
}

.traits-panel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-black);
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .traits-panel { padding: 28px; }
}

.traits-panel::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 8px;
  background: var(--color-rojo);
}

.traits-kicker {
  position: relative;
  margin-bottom: 32px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.7);
}

.traits-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .traits-grid { grid-template-columns: repeat(2, 1fr); }
}

.trait-card {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--color-white);
  padding: 20px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.trait-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-rojo);
}

.trait-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.trait-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--color-rojo);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trait-icon svg {
  width: 28px;
  height: 28px;
}

.trait-head .rule {
  height: 1px;
  flex: 1;
  background: #e5e7eb;
}

.trait-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-rojo);
  margin: 0 0 8px;
}

.trait-card p {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: #1f2937;
  margin: 0;
}

.editorial-block .sep {
  width: 80px;
  height: 2px;
  background: var(--color-rojo);
  margin-bottom: 12px;
}

.editorial-block h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 20px;
}

@media (min-width: 640px) {
  .editorial-block h2 { font-size: 2rem; }
}

@media (min-width: 768px) {
  .editorial-block h2 { font-size: 2.5rem; }
}

.editorial-paragraphs {
  display: grid;
  gap: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: #1f2937;
}

@media (min-width: 768px) {
  .editorial-paragraphs { font-size: 1rem; }
}

.editorial-paragraphs p {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid #d1d5db;
}

.editorial-paragraphs p.last {
  border-left-color: var(--color-rojo);
  font-weight: 600;
  color: var(--color-black);
}

.mv-grid {
  max-width: 1280px;
  margin: 80px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .mv-grid { padding: 0 32px; }
}

@media (min-width: 1024px) {
  .mv-grid { grid-template-columns: 1fr 1fr; }
}

.mv-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

@media (min-width: 768px) {
  .mv-card { padding: 40px; }
}

.mv-card.mission {
  background: var(--color-white);
}

.mv-card.mission::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 8px;
  background: var(--color-rojo);
}

.mv-card.vision {
  background: var(--color-black);
  color: var(--color-white);
}

.mv-kicker {
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #6b7280;
}

.mv-card.vision .mv-kicker {
  color: rgba(255,255,255,0.6);
}

.mv-card h2 {
  margin: 0 0 24px;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-rojo);
}

@media (min-width: 640px) {
  .mv-card h2 { font-size: 2.25rem; }
}

@media (min-width: 768px) {
  .mv-card h2 { font-size: 3rem; }
}

.mv-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  color: #1f2937;
}

@media (min-width: 768px) {
  .mv-card p { font-size: 1.125rem; }
}

.mv-card.vision p {
  color: rgba(255,255,255,0.85);
}

.values-section {
  max-width: 1280px;
  margin: 80px auto 0;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .values-section { padding: 0 32px; }
}

.values-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .values-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.values-head .sep {
  width: 80px;
  height: 2px;
  background: var(--color-black);
  margin-bottom: 12px;
}

.values-head h2 {
  font-size: 1.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-rojo);
  margin: 0;
}

@media (min-width: 640px) {
  .values-head h2 { font-size: 2.25rem; }
}

@media (min-width: 768px) {
  .values-head h2 { font-size: 3rem; }
}

.values-head p {
  max-width: 480px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

@media (min-width: 768px) {
  .values-head p { text-align: right; }
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}

.value-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  border-radius: 8px;
  background: var(--color-white);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
}

.value-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.value-card-head span.num {
  font-size: 0.875rem;
  font-weight: 700;
  color: #9ca3af;
}

.value-card-head span.bar {
  height: 8px;
  width: 48px;
  background: var(--color-rojo);
  transition: width 0.3s ease;
}

.value-card:hover .value-card-head span.bar {
  width: 80px;
}

.value-card h3 {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-rojo);
  margin: 0 0 12px;
}

.value-card p {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: #1f2937;
  margin: 0;
}

/* =========================================================
   PÁGINA CONTACTO
   ========================================================= */

.page-contacto {
  background: #f5f5f5;
  padding-bottom: 80px;
  min-height: 100vh;
}

.contacto-grid {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 768px) {
  .contacto-grid { padding: 0 32px; }
}

@media (min-width: 1024px) {
  .contacto-grid { grid-template-columns: 1fr 1fr; }
}

.contact-form-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 8px;
}

@media (min-width: 768px) {
  .contact-form-col { padding: 0 32px; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
}

.form-group label .req {
  color: var(--color-rojo);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(217,217,217,0.3);
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  color: #1f2937;
  font-family: inherit;
  font-size: 0.95rem;
  transition: box-shadow 0.2s ease;
}

.form-group textarea {
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-black);
}

.form-group textarea.limit-reached {
  box-shadow: 0 0 0 2px #dc2626;
}

.phone-row {
  display: flex;
  gap: 8px;
}

.phone-row select {
  flex: 0 0 110px;
}

.phone-row input {
  flex: 1;
}

.msg-count-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.msg-count-row span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
}

.msg-count-row span.limit-reached {
  color: #dc2626;
}

.form-submit-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .form-submit-wrap { justify-content: flex-start; }
}

.btn-submit {
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  padding: 12px 48px;
  border-radius: 999px;
  border: none;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  animation: bounce-subtle 2s infinite;
}

.btn-submit:hover {
  background: var(--color-rojo);
}

.btn-submit:active {
  transform: scale(0.95);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.contact-map-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.map-frame {
  width: 100%;
  height: 400px;
  background: rgba(217,217,217,0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

@media (min-width: 1024px) {
  .map-frame { height: 500px; }
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-countries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  font-size: 0.875rem;
  padding: 0 8px;
}

@media (min-width: 768px) {
  .contact-countries {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 32px;
  }
}

.contact-countries .sep {
  width: 80px;
  height: 2px;
  background: var(--color-black);
  margin-bottom: 8px;
}

.contact-countries h3 {
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.contact-countries a {
  display: block;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-countries a:hover {
  color: var(--color-rojo);
}

/* Popup de estado del formulario */
.status-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.status-popup-overlay.is-open {
  display: flex;
}

.status-popup {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
  padding: 32px;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon.success { background: #dcfce7; color: #16a34a; }
.status-icon.error { background: #fee2e2; color: #dc2626; }

.status-icon svg { width: 32px; height: 32px; }

.status-popup h3 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.status-popup h3.success { color: #16a34a; }
.status-popup h3.error { color: #dc2626; }

.status-popup p { margin: 0; color: #111; font-size: 0.9rem; }

.status-popup button {
  margin-top: 8px;
  padding: 10px 32px;
  border-radius: 999px;
  border: none;
  color: var(--color-white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}

.status-popup button:active { transform: scale(0.95); }

.status-popup button.success { background: #16a34a; }
.status-popup button.success:hover { background: #15803d; }
.status-popup button.error { background: #dc2626; }
.status-popup button.error:hover { background: #b91c1c; }

/* =========================================================
   404
   ========================================================= */

.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 16px;
  gap: 16px;
}

.page-404 h1 { font-size: 2rem; margin: 0; }
.page-404 p { color: #4b5563; max-width: 420px; }

.page-404 a {
  margin-top: 16px;
  background: var(--color-black);
  color: var(--color-white);
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.page-404 a:hover { background: var(--color-rojo); }
