/* ===========================================================
   SYSTEMINFORMATIC - PRUEBA1 (Modern Header & Footer)
   =========================================================== */

/* === SMOOTH SCROLL === */
html {
  scroll-behavior: smooth;
}

/* ===========================================================
   CUSTOM HEADER / FOOTER - show our new elements
   Old WX5 objects have been removed from the HTML.
   =========================================================== */

#imHeaderObjects > .py1-header-wrapper {
  display: block !important;
}

#imFooterObjects > .py1-footer-wrapper {
  display: block !important;
}

/* Override WX5 fixed width on footer objects container at ALL breakpoints */
#imFooterObjects {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.py1-footer-wrapper {
  width: 100% !important;
}

.py1-footer {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ===========================================================
   MOBILE LLAMAR BUTTON & SERVICIO LABEL (hidden on desktop)
   =========================================================== */
.py1-logo-top .py1-mob-llamar {
  display: none;
}

.py1-mob-servicio-label {
  display: none;
}

/* ===========================================================
   HEADER CONTAINER
   =========================================================== */
.py1-header {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
  z-index: 1000;
}

/* Top row: logo | descargar+phone */
.py1-top-row {
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Search bar - capsule style (replaces the decorative divider) */
.py1-search-container {
  flex: 0 1 auto;
  width: 300px;
  max-width: 300px;
  min-width: 140px;
  margin: 0 24px;
  align-self: center;
  position: relative;
}

.py1-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.py1-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.py1-search-input {
  width: 100% !important;
  height: 40px !important;
  padding: 0 16px 0 42px !important;
  background: rgba(10,30,60,0.5) !important;
  border: 2px solid rgba(79,195,247,0.6) !important;
  border-radius: 40px !important;
  color: rgba(255,255,255,0.9) !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  outline: none !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  letter-spacing: 0.2px !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  box-shadow:
    0 0 18px rgba(79,195,247,0.25),
    0 0 40px rgba(79,195,247,0.1),
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

.py1-search-input::placeholder {
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.3px;
}

.py1-search-input:hover {
  border-color: rgba(79,195,247,0.8);
  background: rgba(10,30,60,0.6);
  box-shadow:
    0 0 24px rgba(79,195,247,0.35),
    0 0 50px rgba(79,195,247,0.15),
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.py1-search-input:focus {
  border-color: rgba(79,195,247,0.9);
  background: rgba(10,30,60,0.7);
  box-shadow:
    0 0 30px rgba(79,195,247,0.4),
    0 0 60px rgba(79,195,247,0.2),
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 0 20px rgba(79,195,247,0.08);
}

/* Search results dropdown */
.py1-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(110,200,255,0.12);
  border-radius: 14px;
  padding: 6px 0;
  max-height: 340px;
  overflow-y: auto;
  z-index: 3000;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.py1-search-results.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.py1-search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.py1-search-result-item:last-child {
  border-bottom: none;
}

.py1-search-result-item:hover,
.py1-search-result-item.highlighted {
  background: rgba(79,195,247,0.1);
  color: #ffffff;
}

.py1-search-result-item .py1-sr-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.5;
  margin-top: 2px;
}

.py1-search-result-item:hover .py1-sr-icon {
  opacity: 0.8;
}

.py1-sr-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.py1-sr-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.py1-sr-title {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.py1-search-result-item:hover .py1-sr-title {
  color: #ffffff;
}

.py1-sr-cat {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  color: #4fc3f7;
  background: rgba(79,195,247,0.12);
  padding: 1px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  align-self: flex-start;
  white-space: nowrap;
}

.py1-sr-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.py1-search-result-item:hover .py1-sr-desc {
  color: rgba(255,255,255,0.55);
}

.py1-search-no-results {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-family: 'Inter', sans-serif;
}

/* On large desktop screens, expand the search bar to 500px */
@media (min-width: 1400px) {
  .py1-search-container {
    width: 500px;
    max-width: 500px;
  }
}

/* Right group: descargar + phone */
.py1-top-right-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}



.py1-logo-top {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.py1-logo-top a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.py1-logo-top img {
  height: 50px;
  width: auto;
  display: block;
}

.py1-logo-sub {
  font-size: 11px;
  font-weight: 700;
  color: #6ec8ff;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
  white-space: nowrap;
}

.py1-top-info-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-20px);
}

.py1-topinfo-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  flex-shrink: 0;
}

/* ===========================================================
   PHONE & DOWNLOAD STYLES
   =========================================================== */

.py1-topinfo-phone-label {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', sans-serif;
  text-align: right;
  letter-spacing: 0.3px;
}

.py1-topinfo-phone-number {
  font-size: 31px;
  font-weight: 900;
  color: #f1c232;
  font-family: 'Inter', sans-serif;
  text-align: right;
  line-height: 1.1;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(241,194,50,0.15);
}

.py1-topinfo-phone-sub {
  font-size: 16px;
  color: #f1c232;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-align: center;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.py1-topinfo-dl-label {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 7px;
}

.py1-topinfo-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.py1-icon-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.py1-icon-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.py1-remote-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  margin-top: 2px;
  transition: all 0.3s ease;
}

.py1-remote-icon:hover {
  background: rgba(0,229,255,0.15);
  border-color: rgba(0,229,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,229,255,0.2);
}

.py1-remote-icon {
  overflow: hidden;
}

.py1-remote-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.py1-remote-icon:hover img {
  transform: scale(1.1);
}

/* ===========================================================
   MAIN NAV (uses original WX5 header background)
   =========================================================== */
.py1-mainnav {
  padding: 8px 24px 8px 4px;
  margin-top: -4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Navigation menu - Desktop */
.py1-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.py1-nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  position: relative;
}

.py1-nav a:hover,
.py1-nav a.active {
  color: #ffffff;
  background: rgba(0,229,255,0.08);
}

.py1-nav a::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 50%;
  height: 2px;
  background: #00e5ff;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.py1-nav a:hover::after,
.py1-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Header actions */
.py1-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.py1-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.py1-action-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.py1-action-btn.primary {
  background: transparent;
  border: none;
  color: #4fc3f7;
  font-size: 15px;
}

.py1-action-btn.primary:hover {
  background: transparent;
  color: #00e5ff;
  transform: translateY(-1px);
}

.py1-action-btn.secondary {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 15px;
}

.py1-action-btn.secondary:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-1px);
}

.py1-cart-action {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 16px !important;
  background: transparent !important;
  border: none !important;
  color: #f1c232 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.py1-cart-action:hover {
  background: transparent !important;
  color: #ffd54f !important;
  transform: translateY(-1px);
}

.py1-cart-action img {
  height: 18px;
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(83%) sepia(41%) saturate(498%) hue-rotate(354deg) brightness(101%) contrast(96%);
}

.py1-reserva-img img {
  height: 20px;
  width: auto;
  display: block;
}

.py1-domicilio-img img {
  height: 23px;
  width: auto;
  display: block;
}

.mob-reserva img {
  height: 22px;
  width: auto;
  display: block;
}

.mob-domicilio img {
  height: 25px;
  width: auto;
  display: block;
}

/* Mobile hamburger */
.py1-hamburger {
  display: none;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.py1-hamburger span {
  width: 48px;
  height: 6px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.py1-hamburger:hover span {
  background: #4fc3f7;
}

/* ===========================================================
   MOBILE MENU
   =========================================================== */
.py1-mobile-menu {
  display: none;
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  transform: translateY(-50%) scale(0.9);
  width: 90%;
  max-width: 420px;
  max-height: 85vh;
  background: linear-gradient(170deg, #0a1628 0%, #0d1f3c 100%);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 20px;
  z-index: 2000;
  padding: 28px 24px 24px;
  overflow-y: auto;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0,229,255,0.05);
}

.py1-mobile-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.py1-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.py1-mobile-overlay.open {
  display: block;
}

.py1-mobile-close {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.py1-mobile-close button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.py1-mobile-close button:hover {
  color: #ffffff;
}

.py1-mobile-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.py1-mobile-links li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.py1-mobile-links li a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.py1-mobile-links li a:hover,
.py1-mobile-links li a.py1-mob-active {
  color: #4fc3f7;
}

.py1-mobile-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.py1-mobile-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s;
  text-align: center;
}

.py1-mobile-actions a.mob-reserva {
  background: rgba(0,229,255,0.1);
  color: #4fc3f7;
  border: 1px solid rgba(0,229,255,0.15);
}

.py1-mobile-actions a.mob-reserva:hover {
  background: rgba(0,229,255,0.18);
}

.py1-mobile-actions a.mob-domicilio {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}

.py1-mobile-actions a.mob-domicilio:hover {
  background: rgba(255,255,255,0.1);
}

.py1-mobile-actions a.mob-tienda {
  background: rgba(0,229,255,0.08);
  color: #4fc3f7;
  border: 1px solid rgba(0,229,255,0.15);
}

.py1-mobile-actions a.mob-tienda:hover {
  background: rgba(0,229,255,0.15);
}

.py1-mobile-actions a img {
  height: 20px;
  width: auto;
}

.py1-mobile-actions a.mob-tienda img {
  filter: brightness(0) saturate(100%) invert(83%) sepia(41%) saturate(498%) hue-rotate(354deg) brightness(101%) contrast(96%);
}

/* ===========================================================
   FOOTER
   =========================================================== */
.py1-footer {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, #07070d 0%, #0a1628 50%, #07070d 100%);
  border-top: 1px solid rgba(0,229,255,0.08);
  position: relative;
  overflow: hidden;
}

/* Hide old footer background — our custom footer replaces it fully */
#imFooterBg {
  display: none !important;
}

/* Make footer span ALL grid columns - already 1/4 via pyme.css */
#imFooter {
  grid-column: 1/4 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* #imPage overflow is handled by template.css (default visible) */

/* Ensure page containers don't show old backgrounds below the footer */
#imPageExtContainer,
#imPageIntContainer {
  background: transparent !important;
}

.py1-footer::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,229,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.py1-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  position: relative;
  z-index: 1;
}

.py1-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.5fr 1fr 1.2fr 1.3fr;
  gap: 28px;
  margin-bottom: 48px;
}

.py1-footer-brand .py1-footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 16px;
}

.py1-footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 320px;
}

.py1-footer-social {
  display: flex;
  gap: 10px;
}

.py1-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s;
  text-decoration: none;
}

.py1-footer-social a:hover {
  background: rgba(0,229,255,0.1);
  border-color: rgba(0,229,255,0.2);
  transform: translateY(-2px);
}

.py1-footer-social a img {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.py1-footer-social a:hover img {
  opacity: 1;
}

.py1-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #4fc3f7;
  margin: 0 0 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.py1-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.py1-footer-col ul li {
  margin-bottom: 10px;
}

.py1-footer-col ul li a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.py1-footer-col ul li a:hover {
  color: #4fc3f7;
  padding-left: 4px;
}

.py1-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.py1-footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: #4fc3f7;
  opacity: 0.6;
}

.py1-footer-contact-item div {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.py1-footer-contact-item div strong {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  display: block;
}

.py1-footer-contact-item div a {
  color: #4fc3f7;
  text-decoration: none;
  font-weight: 600;
}

.py1-footer-contact-item div a:hover {
  color: #00e5ff;
}

.py1-footer-schedule {
  margin-top: 16px;
}

.py1-footer-schedule-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12.5px;
}

.py1-footer-schedule-item .day {
  color: rgba(255,255,255,0.45);
}

.py1-footer-schedule-item .time {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.py1-footer-schedule-item.urg {
  border-bottom: none;
  margin-top: 4px;
}

.py1-footer-schedule-item.urg .day {
  color: #4fc3f7;
  font-weight: 700;
}

.py1-footer-schedule-item.urg .time {
  color: #4fc3f7;
  font-weight: 700;
}

.py1-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.py1-footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.py1-footer-bottom-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-align: right;
}

/* ===========================================================
   RESPONSIVE - 100% responsive menu & actions
   =========================================================== */

/* --- Large screens: gradual nav shrink --- */
@media (max-width: 1300px) {
  .py1-nav a {
    font-size: 12px;
    padding: 6px 10px;
    letter-spacing: 0.3px;
  }
  .py1-action-btn {
    padding: 7px 13px;
  }
}

@media (max-width: 1280px) {
  .py1-nav {
    margin-left: -20px;
  }
  .py1-action-btn span {
    display: none;
  }
  .py1-action-btn {
    padding: 7px 10px;
    gap: 0;
  }
  .py1-action-btn svg {
    width: 17px;
    height: 17px;
  }
  .py1-cart-action {
    padding: 7px 10px !important;
  }
  .py1-cart-action img {
    height: 16px;
  }
}

@media (max-width: 1200px) {
  .py1-nav a {
    font-size: 11px;
    padding: 5px 8px;
    letter-spacing: 0.2px;
  }
  .py1-action-btn {
    padding: 6px 11px;
    font-size: 10px;
  }
  .py1-action-btn svg {
    width: 16px;
    height: 16px;
  }
  .py1-cart-action {
    padding: 6px 11px !important;
    font-size: 11px !important;
  }
  .py1-cart-action img {
    height: 16px;
  }
}

@media (max-width: 1100px) {
  .py1-nav a {
    font-size: 10px;
    padding: 4px 6px;
  }
  .py1-action-btn {
    padding: 5px 9px;
    gap: 4px;
  }
  .py1-action-btn svg {
    width: 15px;
    height: 15px;
  }
  .py1-cart-action {
    padding: 5px 9px !important;
  }
  .py1-cart-action img {
    height: 14px;
  }
}

@media (max-width: 1024px) {
  .py1-nav {
    display: none;
  }
  .py1-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3px;
  }

  .py1-action-btn span {
    display: none;
  }

  /* Reset nav overrides since nav is hidden */
  .py1-nav a {
    font-size: 13px;
    padding: 8px 12px;
  }

  /* Restore action button sizes for icon-only mode */
  .py1-action-btn {
    padding: 7px 10px;
    font-size: 11px;
  }
  .py1-action-btn svg {
    width: 18px;
    height: 18px;
  }
  .py1-cart-action {
    padding: 7px 10px !important;
  }
  .py1-cart-action img {
    height: 16px;
  }

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

  .py1-topinfo-dl-label {
    display: none;
  }
}

/* Hide search on specific tablet sizes (iPad Air, Android tablets, etc.) */
@media (min-width: 800px) and (max-width: 884px) {
  .py1-search-container {
    display: none;
  }
}

@media (max-width: 768px) {
  /* === MOBILE: keep our custom header but simplified (logo + hamburger only) === */
  .py1-top-row {
    padding: 6px 12px;
    justify-content: space-between;
  }
  .py1-top-right-group {
    display: none;
  }
  .py1-search-container {
    display: none;
  }
  .py1-logo-top {
    margin-top: 2px;
  }
  .py1-logo-top img {
    height: 36px;
  }
  .py1-logo-sub {
    display: none;
  }

  .py1-mainnav {
    padding: 4px 12px;
    margin-top: 4px;
    justify-content: flex-end;
  }
  .py1-nav {
    display: none;
  }
  .py1-actions {
    gap: 2px;
    justify-content: flex-end;
  }
  .py1-action-btn {
    display: none;
  }
  .py1-cart-action {
    display: none !important;
  }
  .py1-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    margin-top: -57px;
    margin-right: 20px;
    gap: 6px;
  }
  .py1-hamburger span {
    width: 36px;
    height: 5px;
  }

  /* === OVERRIDE WX5 FIXED CONTAINER WIDTHS ON MOBILE === */
  #imHeaderObjects,
  #imFooterObjects {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
  }
  #imContent,
  #imStickyBarContainer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #imPage,
  #imStickyBar {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  /* Prevent horizontal overflow from WX5 wide content grids */
  #imPageExtContainer,
  #imPageIntContainer,
  body {
    overflow-x: hidden !important;
  }
  #imContent {
    overflow-x: hidden !important;
  }
  /* Sticky bar: remove fade-in animation for instant appearance on mobile */
  #imStickyBarContainer {
    transition: none !important;
    animation: none !important;
  }
  /* Force sticky bar visible when JS sets body class (beats WX5 engine) */
  body.py1-sticky-on #imStickyBarContainer {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
  }

  /* === FOOTER responsive === */
  .py1-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .py1-footer-inner {
    padding: 40px 20px 30px;
  }
  .py1-footer-col {
    text-align: center;
  }
  .py1-footer-col ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .py1-footer-col ul li a:hover {
    padding-left: 0;
  }
  .py1-footer-contact-item {
    justify-content: center;
  }
  .py1-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .py1-footer-bottom-tagline {
    text-align: center;
  }
  .derechos-reservados {
    display: block;
  }
  .py1-trabaja-row {
    justify-content: center;
  }

  .py1-mobile-menu {
    width: 92%;
    padding: 22px 18px 20px;
    border-radius: 16px;
  }
}

@media (max-width: 600px) {
  .py1-mob-servicio-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #6ec8ff;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: right;
    white-space: nowrap;
    margin-top: -60px;
    margin-right: 100px;
  }

  .py1-logo-top .py1-mob-llamar {
    display: block;
    margin-top: 23px;
    color: #4fc3f7;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 12px 36px;
    background: rgba(0,229,255,0.12);
    border: 1px solid rgba(0,229,255,0.25);
    border-radius: 10px;
    transition: all 0.2s;
    white-space: nowrap;
  }
  .py1-logo-top .py1-mob-llamar::before {
    content: '\260E';
    margin-right: 8px;
    font-size: 18px;
  }
  .py1-logo-top .py1-mob-llamar:active {
    background: rgba(0,229,255,0.2);
  }
}

@media (max-width: 200px) {
  .py1-top-row {
    flex-direction: column;
    align-items: center;
    padding: 4px 6px;
    gap: 2px;
  }
  .py1-logo-top {
    margin-top: 0;
    align-items: center;
    margin-left: -180px;
  }
  .py1-logo-top img {
    height: 18px;
  }
  .py1-logo-sub {
    display: none;
  }
  .py1-mob-servicio-label {
    display: none;
  }
  .py1-top-right-group {
    display: none;
  }
  .py1-mainnav {
    display: none;
  }
  .py1-logo-top .py1-mob-llamar {
    display: block;
    margin-top: 34px;
    font-size: 11px;
    font-weight: 700;
    color: #4fc3f7;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    text-align: center;
    padding: 4px 16px;
    background: rgba(0,229,255,0.12);
    border: 1px solid rgba(0,229,255,0.25);
    border-radius: 6px;
    white-space: nowrap;
  }

  a[href*="whatsapp"],
  img[alt*="whatsapp" i] {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .py1-mainnav {
    padding: 0 8px;
  }
  .py1-top-row {
    padding: 4px 10px;
    gap: 8px;
  }
  .py1-logo-top img {
    height: 32px;
  }
  .py1-logo-sub {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .py1-action-btn {
    padding: 4px 6px;
    gap: 3px;
  }
  .py1-action-btn svg {
    width: 14px;
    height: 14px;
  }
  .py1-cart-action {
    padding: 4px 6px !important;
  }
  .py1-cart-action img {
    height: 12px;
  }
  .py1-topinfo-phone-number {
    font-size: 17px;
  }
  .py1-topinfo-phone-label {
    font-size: 13px;
  }
  .py1-topinfo-phone-sub {
    font-size: 12px;
  }
  .py1-remote-icon {
    width: 34px;
    height: 34px;
    margin-top: 3px;
  }
  .py1-topinfo-icons {
    gap: 10px;
  }
  .py1-icon-label {
    font-size: 8px;
  }
  .py1-top-right-group {
    gap: 3px;
  }
}
