/* ============================================
   VARIABLES GLOBALES Y RESET
   ============================================ */
:root {
  --brand: #0C5ED9;
  --text: #0b1220;
  --muted: #60718a;
  --line: rgba(11, 18, 32, .12);
  --soft: rgba(11, 18, 32, .06);
  --bg: #ffffff;
  --max: 1120px; /* Valor por defecto */

  /* Footer Variables */
  --footer-bg: #0025aa;
  --footer-text: #ffffff;
  --footer-text-light: rgba(255, 255, 255, 0.8);
  --footer-text-muted: rgba(255, 255, 255, 0.6);
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-social-bg: rgba(255, 255, 255, 0.1);
  --footer-social-hover: #ffffff;
  --footer-link-hover: #ffffff;
  --footer-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --footer-spacing-xs: 5px;
  --footer-spacing-sm: 10px;
  --footer-spacing-md: 15px;
  --footer-spacing-lg: 20px;
  --footer-spacing-xl: 25px;
  --footer-spacing-2xl: 30px;
  --footer-spacing-3xl: 40px;
  --footer-spacing-4xl: 50px;
  --footer-spacing-5xl: 60px;
  --footer-transition: 0.3s ease;
  --footer-border-width: 1px;
  --footer-max-width: 1200px;
  --footer-page-margin: 37.8px;
}

/* Estilos específicos para página de medicamentos */
.page-medicamentos {
  --max: 980px; /* Ancho específico para medicamentos */
}

.page-medicamentos .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px;
}

.page-medicamentos .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.page-medicamentos .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.2px;
  font-size: 13.5px;
}

.page-medicamentos .mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  flex: 0 0 auto;
}

.page-medicamentos h1 {
  margin: 18px 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.25px;
  font-weight: 500;
}

.page-medicamentos h2 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.1px;
  font-weight: 500;
  color: var(--text);
}

.page-medicamentos p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 400;
  font-size: 16px;
}

.page-medicamentos .divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.page-medicamentos ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 400;
}

.page-medicamentos li {
  margin: 8px 0;
}

.page-medicamentos .slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.page-medicamentos .slot {
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
  color: var(--muted);
  font-weight: 400;
}

.page-medicamentos .meta {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.page-medicamentos footer {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .page-medicamentos .slots {
    grid-template-columns: 1fr;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, 'Helvetica Neue', Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 18px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  z-index: 9999;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

header .container,
header .nav,
header .brand,
header .actions,
header .burger {
  pointer-events: auto;
}

header > .container {
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-width: 280px;
}

.brand-logo {
  height: 70px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  flex: 0 0 auto;
}

.brand .title {
  font-size: 13.5px;
  letter-spacing: .2px;
  font-weight: 500;
}

.brand .tag {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mexico-flag {
  display: flex;
  align-items: center;
  padding: 4px 0 0 !important;
  margin-left: 5px;
}

.mexico-flag svg {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.mexico-flag:hover svg {
  transform: scale(1.1);
}

.mexico-flag:hover {
  text-decoration: none !important;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-ghost {
  background: #fff;
  color: var(--brand);
}

.btn-ghost:hover {
  background: var(--brand);
  color: #fff;
}

.btn:focus {
  outline: 3px solid rgba(12, 94, 217, .22);
  outline-offset: 2px;
}

.burger {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10001 !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
}

.burger:hover {
  background: var(--soft);
}

.burger:active {
  transform: scale(0.95);
}

/* ============================================
   MENÚ MÓVIL
   ============================================ */
.mobile {
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 9999;
  width: 100%;
  left: 0;
  animation: slideDown 0.3s ease-out;
}

.mobile .container {
  padding: 10px 18px;
}

.mobile a {
  display: block;
  padding: 16px 0;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--soft);
  transition: all 0.2s ease;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

.mobile a:active {
  background: var(--soft);
  padding-left: 8px;
}

.mobile a:last-child {
  border-bottom: none;
}

.mobile a:hover {
  color: var(--brand);
  padding-left: 8px;
  background: var(--soft);
  border-radius: 6px;
}

.mobile .mexico-flag {
  justify-content: flex-start;
  padding: 14px 0 !important;
  margin-left: 0;
  border-bottom: 1px solid var(--soft);
  display: flex;
}

.mobile .mexico-flag svg {
  width: 32px;
  height: 21px;
  margin-right: 10px;
}

.mobile .mexico-flag:hover {
  padding-left: 8px !important;
}

/* ============================================
   NOTA: LA SOMBRA NEGRA HA SIDO ELIMINADA
   El bloque body.menu-open::before ya no existe
   ============================================ */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */
main {
  padding: 30px 0 24px;
}

section {
  padding: 28px 0;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

h1 {
  margin: 10px 0 10px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -.3px;
  font-weight: 500;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  letter-spacing: -.2px;
  font-weight: 500;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  max-width: 76ch;
  font-size: 16.5px;
}

/* ============================================
   HERO - MODIFICADO
   ============================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 400px;
}

.hero-content {
  padding-right: 20px;
}

.hero-title {
  color: var(--footer-bg);
  margin: 10px 0 10px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -.3px;
  font-weight: 500;
}

.hero-video {
  width: 95%;
  height: 280px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  text-align: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image:hover {
  transform: scale(1.05);
}

.hero-video:has(img:not([src]), img[src=""])::after {
  content: "Imagen corporativa";
  opacity: 0.9;
}

/* ============================================
   VALORES - MODIFICADO (ICONOS MÁS GRANDES)
   ============================================ */
.values {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.value {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft);
}

.vicon {
  width: 44px;
  height: 44px;
  color: var(--brand);
  flex: 0 0 auto;
  margin-top: 2px;
}

.vtitle {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -.1px;
}

.vtext {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============================================
   BRANDS SHOWCASE - MODIFICADO (ICONOS 30% MÁS PEQUEÑOS)
   ============================================ */
.brands-showcase {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.brand-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: center;
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none; /* Borde eliminado */
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.brand-card-logo {
  width: auto;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  font-size: 24px;
  font-weight: bold;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none; /* Borde eliminado */
}

.brand-card-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-card-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.brand-card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.3px;
}

.brand-card-slogan {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  max-width: 500px;
}

.brand-card-social {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* ICONOS REDUCIDOS EN UN 30% */
.brand-card-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;  /* Reducido de 88px a 62px (30% más pequeño) */
  height: 62px; /* Reducido de 88px a 62px (30% más pequeño) */
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  transition: all 0.3s ease;
  text-decoration: none;
}

.brand-card-social .social-icon:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-5px) scale(1.1);
}

.brand-card-social .social-icon svg {
  width: 31px;  /* Reducido de 44px a 31px (30% más pequeño) */
  height: 31px; /* Reducido de 44px a 31px (30% más pequeño) */
  fill: currentColor;
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  margin-top: 20px;
}

.contact-info-section {
  padding: 40px;
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.contact-main-title {
  font-size: 42px;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 30px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-info-text h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 30px;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--brand);
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
  font-size: 2rem;
  color: var(--brand);
  margin-top: 5px;
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}

.contact-item p {
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.5;
  font-size: 15px;
  font-weight: 400;
}

.contact-item p:last-child {
  margin-bottom: 0;
}

.contact-item a {
  color: inherit !important;
  text-decoration: none !important;
}

.contact-item a:hover {
  color: var(--brand) !important;
}

.contact-form-section {
  padding: 40px;
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.contact-form-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 30px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--bg);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(12, 94, 217, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.form-message {
  padding: 15px;
  border-radius: 6px;
  margin-top: 20px;
  text-align: center;
  font-weight: 500;
  display: none;
  transition: all 0.3s ease;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============================================
   PÁGINA NOSOTROS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: var(--brand);
  text-transform: uppercase;
}

.section-header .lead {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 18px;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.mission-card,
.vision-card {
  background: #fff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.subsection-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 10px;
}

.subsection-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
}

.subsection-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  font-weight: 400;
}

.values-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.values-section .section-subtitle {
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.values-lead {
  text-align: center;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 18px;
}

.values-grid-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.value-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--soft);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--brand);
}

.value-icon-svg {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--brand);
  margin-top: 4px;
}

.value-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}

.value-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
  margin: 0;
}

/* ============================================
   PÁGINAS LEGALES
   ============================================ */
.legal-page {
  padding: 40px 0;
  min-height: 60vh;
}

.legal-page h1 {
  margin-bottom: 24px;
  font-size: clamp(28px, 3vw, 38px);
}

.legal-page h3 {
  margin: 20px 0 10px;
  font-size: 18px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-page li {
  margin-bottom: 6px;
}

.back {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer-generic {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--footer-spacing-5xl) 0 var(--footer-spacing-2xl) 0;
  width: 100%;
  font-family: var(--footer-font-family);
  margin-top: 60px;
  border-top: var(--footer-border-width) solid var(--footer-border);
}

.footer-container-generic {
  width: calc(100% - (var(--footer-page-margin) * 2));
  max-width: var(--footer-max-width);
  margin: 0 auto;
  padding: 0;
}

.footer-grid-generic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--footer-spacing-4xl);
  margin-bottom: var(--footer-spacing-3xl);
}

.footer-col-generic {
  display: flex;
  flex-direction: column;
}

.footer-title-generic {
  font-size: 18px;
  color: var(--footer-text);
  margin-bottom: var(--footer-spacing-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-text-generic {
  color: var(--footer-text-light);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--footer-spacing-xl);
  font-weight: 400;
}

.footer-social-generic {
  display: flex;
  gap: var(--footer-spacing-md);
  flex-wrap: wrap;
}

.social-link-generic {
  color: var(--footer-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--footer-social-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--footer-transition);
  text-decoration: none;
}

.social-link-generic:hover {
  background: var(--footer-social-hover);
  color: var(--footer-bg);
  transform: translateY(-5px);
}

.social-link-generic svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-links-generic {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-generic li {
  margin-bottom: var(--footer-spacing-sm);
}

.footer-links-generic a {
  color: var(--footer-text-light);
  font-size: 15px;
  text-decoration: none;
  transition: all var(--footer-transition);
  display: inline-block;
  font-weight: 400;
}

.footer-links-generic a:hover {
  color: var(--footer-link-hover);
  padding-left: var(--footer-spacing-xs);
}

.footer-address-generic {
  font-style: normal;
}

.footer-address-generic p {
  color: var(--footer-text-light);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--footer-spacing-sm);
  font-weight: 400;
}

.footer-address-generic a {
  color: var(--footer-text-light);
  text-decoration: none;
  transition: color var(--footer-transition);
  font-weight: 400;
}

.footer-address-generic a:hover {
  color: var(--footer-link-hover);
}

.footer-bottom-generic {
  text-align: center;
  padding-top: var(--footer-spacing-2xl);
  border-top: var(--footer-border-width) solid var(--footer-border);
}

.footer-bottom-generic p {
  color: var(--footer-text-muted);
  font-size: 13px;
  font-weight: 400;
  margin: 0;
}

/* ============================================
   UTILIDADES
   ============================================ */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.img-placeholder,
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  color: #666;
  font-size: 2rem;
  min-height: 200px;
  border-radius: 10px;
}

.video-placeholder {
  font-size: 1.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* ============================================
   BOTÓN FLOTANTE HAMBURGUESA
   ============================================ */
.floating-burger {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: var(--brand, #0C5ED9);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.floating-burger:hover {
  transform: scale(1.1);
  background: #0a4eb0;
}

.floating-burger:active {
  transform: scale(0.95);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Desktop - Ocultar botón hamburguesa */
@media (min-width: 769px) {
  .burger,
  button.burger,
  #burger,
  [id="burger"],
  [class="burger"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    z-index: -9999 !important;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .burger,
  button.burger,
  #burger,
  [id="burger"],
  [class="burger"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 44px !important;
    height: 44px !important;
    position: static !important;
    z-index: auto !important;
  }

  nav {
    display: none;
  }

  header .mexico-flag {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
  }

  .hero-content {
    padding-right: 0;
    text-align: center;
  }

  .hero-title {
    text-align: center;
  }

  .hero-video {
    width: 100%;
    height: 220px;
  }

  .brand-card {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
    padding: 25px;
  }

  .brand-card-logo {
    width: 100%;
    height: 350px;
    margin: 0 auto;
    max-width: 350px;
  }

  .brand-card-slogan {
    margin: 0 auto;
  }

  .brand-card-social {
    justify-content: center;
    gap: 15px;
  }

  /* ICONOS REDUCIDOS - VERSIÓN MÓVIL */
  .brand-card-social .social-icon {
    width: 44px;  /* Reducido proporcionalmente (62px * 0.7 ≈ 44px) */
    height: 44px;
  }

  .brand-card-social .social-icon svg {
    width: 22px;  /* Reducido proporcionalmente (31px * 0.7 ≈ 22px) */
    height: 22px;
  }

  /* Ocultar títulos de marcas en móvil */
  .brand-card-title {
    display: none;
  }

  .values {
    grid-template-columns: 1fr;
  }
  
  .value {
    gap: 15px;
  }
  
  .vicon {
    width: 36px;
    height: 36px;
  }

  .footer-grid-generic {
    grid-template-columns: 1fr;
    gap: var(--footer-spacing-3xl);
  }

  .footer-social-generic {
    justify-content: center;
  }

  .footer-col-generic {
    text-align: center;
  }

  .footer-links-generic {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-title-generic {
    text-align: center;
  }

  .footer-address-generic p {
    text-align: center;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0;
  }

  .contact-main-title {
    font-size: 32px;
    text-align: center;
  }

  .contact-info-text h2,
  .contact-form-title {
    font-size: 22px;
    text-align: center;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .contact-info-section,
  .contact-form-section {
    padding: 25px;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mission-card,
  .vision-card {
    padding: 25px;
    text-align: center;
  }

  .subsection-title {
    font-size: 24px;
  }

  .subsection-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
  }

  .section-header h1 {
    font-size: 32px;
  }

  .values-section .section-subtitle {
    font-size: 26px;
  }

  .values-grid-custom {
    grid-template-columns: 1fr;
  }

  .value-card {
    padding: 20px;
  }

  :root {
    --footer-page-margin: 25px;
  }

  .floating-burger {
    display: none;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .brand .tag {
    display: none;
  }

  .brand {
    min-width: auto;
  }

  .burger {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .brand-logo {
    height: 50px;
  }

  .hero-video {
    height: 200px;
  }

  .brand-card {
    padding: 20px;
  }

  .brand-card-logo {
    height: 300px;
    padding: 15px;
    font-size: 20px;
  }

  .brand-card-title {
    font-size: 20px;
  }

  .brand-card-slogan {
    font-size: 14px;
  }

  .brand-card-social {
    gap: 12px;
  }

  /* ICONOS REDUCIDOS - VERSIÓN MÓVIL PEQUEÑA */
  .brand-card-social .social-icon {
    width: 38px;  /* Ajuste para móviles pequeños */
    height: 38px;
  }

  .brand-card-social .social-icon svg {
    width: 19px;  /* Ajuste para móviles pequeños */
    height: 19px;
  }
  
  .vicon {
    width: 32px;
    height: 32px;
  }

  .footer-title-generic {
    font-size: 16px;
  }

  .footer-text-generic,
  .footer-links-generic a,
  .footer-address-generic p {
    font-size: 14px;
  }

  .footer-bottom-generic p {
    font-size: 12px;
  }

  .contact-layout {
    gap: 25px;
    padding: 25px 0;
  }

  .contact-main-title {
    font-size: 28px;
  }

  .contact-info-text h2 {
    font-size: 18px;
  }

  .contact-form-title {
    font-size: 20px;
  }

  .contact-item {
    padding: 18px;
  }

  .contact-item i {
    font-size: 1.8rem;
  }

  .contact-item h3 {
    font-size: 16px;
  }

  .contact-item p {
    font-size: 14px;
  }

  .contact-info-section,
  .contact-form-section {
    padding: 20px;
  }

  .value-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .value-icon-svg {
    width: 40px;
    height: 40px;
  }

  .value-card-title {
    font-size: 18px;
  }

  .value-card-text {
    font-size: 13px;
  }

  .mission-card,
  .vision-card {
    padding: 20px;
  }

  .subsection-title {
    font-size: 22px;
  }

  .subsection-text {
    font-size: 15px;
  }

  :root {
    --footer-page-margin: 20px;
  }
}

@media (max-width: 360px) {
  .brand .title {
    font-size: 12px;
  }

  .hero-video {
    height: 160px;
  }

  .brand-card-social .social-icon {
    width: 32px;  /* Ajuste para móviles muy pequeños */
    height: 32px;
  }

  .brand-card-social .social-icon svg {
    width: 16px;  /* Ajuste para móviles muy pequeños */
    height: 16px;
  }
  
  .vicon {
    width: 28px;
    height: 28px;
  }

  :root {
    --footer-page-margin: 15px;
  }
}

/* ============================================
   ACCESIBILIDAD - REDUCIR MOVIMIENTO
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .social-link-generic,
  .footer-links-generic a,
  .brand-card,
  .contact-item,
  .mexico-flag svg,
  .burger,
  .mobile,
  .btn,
  nav a,
  .brand-card:hover,
  .contact-item:hover,
  .social-link-generic:hover,
  .btn:hover,
  .mexico-flag:hover svg {
    transition: none;
    animation: none;
    transform: none;
  }

  .mobile {
    animation: none;
  }

  /* La referencia a body.menu-open::before ha sido eliminada */
  .floating-burger {
    transition: none;
  }
}
/* ============================================
   PÁGINA DE MEDICAMENTOS - HERO SECTION
   ============================================ */
.medical-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 20px;
}

.medical-logo {
  width: 500px;
  height: 500px;
  object-fit: contain;
  margin-bottom: 30px;
}

.medical-hero h1 {
  margin: 10px 0 15px;
  max-width: 800px;
}

.medical-hero p {
  max-width: 700px;
  margin: 0 auto 15px;
}

@media (max-width: 768px) {
  .medical-logo {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .medical-logo {
    width: 300px;
    height: 300px;
  }
}
/* ============================================
   ESTILOS PARA LOS NUEVOS ICONOS DE VALORES
   ============================================ */
.value-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-top: 2px;
}

/* Colores de fondo para cada icono - basados en los originales */
.value:nth-child(1) .value-icon { /* Compromiso - azul */
  background-color: #e6f0ff;
  color: #0C5ED9;
}

.value:nth-child(2) .value-icon { /* Calidad - rosa */
  background-color: #fee7f1;
  color: #ec4899;
}

.value:nth-child(3) .value-icon { /* Innovación - ámbar */
  background-color: #fff3e0;
  color: #f59e0b;
}

.value:nth-child(4) .value-icon { /* Responsabilidad - verde */
  background-color: #e6f7e6;
  color: #22c55e;
}

.value:nth-child(5) .value-icon { /* Trabajo en Equipo - índigo */
  background-color: #eef2ff;
  color: #6366f1;
}

.value:nth-child(6) .value-icon { /* Integridad - teal */
  background-color: #e6fffa;
  color: #14b8a6;
}