/* ==========================================================================
   TeleSol Custom Styles - Professional Hero Section
   Fluid, responsive design for all devices and resolutions
   ========================================================================== */

/* Prevent horizontal scroll on all devices (clip instead of hidden to preserve sticky nav) */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

/* Contain the nav dropdown so it never overflows the viewport */
.nav_big-menu {
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

/* Nav: Páginas to the right of Agendar evaluación */
.nav-menu-links > .nav-link-wrap {
  order: 2 !important;
}

.nav-menu-links > .nav_buttons-wrap {
  order: 1 !important;
}

/* Nav: desktop shows text, mobile shows hamburger icon */
.nav-hamburger-icon {
  display: none;
}

.nav-paginas-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media screen and (max-width: 767px) {
  .nav-paginas-text {
    display: none !important;
  }

  .nav-hamburger-icon {
    display: flex !important;
    align-items: center;
  }

  .nav-menu-links {
    display: flex !important;
    align-items: stretch !important;
  }

  .nav-menu-links .w-dropdown-toggle {
    padding: 0.4rem 0.6rem !important;
    min-height: 0 !important;
  }

  .nav-hamburger-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* --------------------------------------------------------------------------
   CSS Custom Properties - Easy to customize
   -------------------------------------------------------------------------- */
:root {
  --hero-title-size: clamp(1.75rem, 5vw + 1rem, 4.5rem);
  --hero-subtitle-size: clamp(0.875rem, 1.5vw + 0.5rem, 1.25rem);
  --hero-padding-bottom: clamp(3rem, 10vh, 8rem);
  --hero-content-max-width: min(90%, 1200px);
  --hero-button-gap: clamp(0.5rem, 2vw, 1rem);
}

/* --------------------------------------------------------------------------
   Hero Section - Full viewport coverage
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  /* Dynamic viewport height for mobile */
  overflow: hidden;
}

/* Fix gap between hero and next section */
.width-full.mode-light-base:first-of-type {
  margin-bottom: -1px;
}

.header-wrapper.mode-light-base {
  position: relative;
  margin-top: -1px;
}

/* --------------------------------------------------------------------------
   Hero Video/Image Background
   -------------------------------------------------------------------------- */
.hero-video,
.hero .hero-home-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  display: block;
}

.cta-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Hero Overlay - Gradient for text readability
   -------------------------------------------------------------------------- */
.hero-overlay-enhanced {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.5) 100%);
}

/* --------------------------------------------------------------------------
   Hero Content Container - Centered like Tesla
   -------------------------------------------------------------------------- */
.hero-content-tesla {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4rem 1.5rem 24rem;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Video Pause Button - Transparent style
   -------------------------------------------------------------------------- */
.hero-video-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
}

.hero-pause-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-pause-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-pause-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.hero-pause-btn .play-icon {
  display: none;
}

.hero-pause-btn.paused .pause-icon {
  display: none;
}

.hero-pause-btn.paused .play-icon {
  display: block;
}

/* --------------------------------------------------------------------------
   Hero Typography - Fluid sizing
   -------------------------------------------------------------------------- */
.hero-title {
  font-size: var(--hero-title-size);
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 0.2em 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
  max-width: var(--hero-content-max-width);
}

.hero-subtitle {
  font-size: var(--hero-subtitle-size);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.5em 0;
  line-height: 1.6;
  max-width: var(--hero-content-max-width);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Hero CTA Buttons
   -------------------------------------------------------------------------- */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--hero-button-gap);
  width: 100%;
  max-width: var(--hero-content-max-width);
}

.hero-cta-group .button-holders {
  margin: 0;
  flex-shrink: 0;
}

.hero-cta-group .button,
.hero-cta-group .button.is-secondary {
  min-width: 160px;
  white-space: nowrap;
}

/* Learn More button - Glass/transparent style like nav and pause button */
.hero-cta-group .button.is-secondary {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hero-cta-group .button.is-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  filter: none !important;
}

.hero-cta-group .button.is-secondary .text-simple {
  color: #fff !important;
}

.hero-cta-group .button.is-secondary .button-secondary-bg {
  display: none;
}

/* --------------------------------------------------------------------------
   Mobile-specific adjustments
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .hero-content-tesla {
    justify-content: flex-start;
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  .hero-video-controls {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .hero-pause-btn {
    width: 40px;
    height: 40px;
  }

  .hero-pause-btn svg {
    width: 16px;
    height: 16px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
  }

  .hero-cta-group .button-holders {
    width: 100%;
  }

  .hero-cta-group .button,
  .hero-cta-group .button.is-secondary {
    width: 100%;
    min-width: unset;
    justify-content: center;
    min-height: 48px;
    /* Touch-friendly */
  }
}

/* --------------------------------------------------------------------------
   Landscape mobile (short screens)
   -------------------------------------------------------------------------- */
@media screen and (max-height: 600px) {
  .hero-content-tesla {
    justify-content: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-subtitle {
    margin-bottom: 1em;
  }

  .hero-video-controls {
    bottom: 1rem;
    right: 1rem;
  }

  .hero-pause-btn {
    width: 36px;
    height: 36px;
  }

  .hero-cta-group {
    flex-direction: row;
    max-width: none;
  }

  .hero-cta-group .button-holders {
    width: auto;
  }

  .hero-cta-group .button,
  .hero-cta-group .button.is-secondary {
    width: auto;
    min-width: 140px;
  }
}

/* --------------------------------------------------------------------------
   Very small screens (320px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 360px) {
  .hero-content-tesla {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-cta-group {
    max-width: 100%;
  }

  .hero-cta-group .button,
  .hero-cta-group .button.is-secondary {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   Large screens (4K, ultrawide)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1920px) {
  :root {
    --hero-content-max-width: min(80%, 1000px);
  }

  .hero-content-tesla {
    padding-bottom: 10vh;
  }
}

/* --------------------------------------------------------------------------
   Proceso Tab Navigation - Layout Fixes
   -------------------------------------------------------------------------- */
/* Ensure header has enough width to be on 2 lines */
.features-28-main .heading-style-h2 {
  max-width: 100% !important;
  width: auto !important;
  /* Responsively scale font size to prevent overflow if too wide */
  font-size: clamp(1.5rem, 5vw, 3.5rem) !important;
}

/* Force lines to not wrap inside themselves */
.features-28-main .heading-style-h2 .heading-line {
  display: inline-block;
  white-space: nowrap;
}

/* Offset sticky content to align with text */
.features-28-main .sticky-content {
  margin-top: 6rem;
  top: 8rem;
  padding-top: 0;
}

/* Ensure anchors are layout-visible for JS calculation */
.proceso-anchor {
  display: block;
  position: relative;
  visibility: hidden;
  height: 1px;
  width: 1px;
  margin-top: -1px;
}

.tab_links-cms.vertical .tab-link {
  opacity: 0.7;
  border-left: none;
  /* Removed border */
  padding: 0.75rem 1rem;
  /* Added horizontal padding for button look */
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 0;
  /* Square corners */
  width: 100%;
  /* Ensure full block width */
}

.tab_links-cms.vertical .tab-link:hover {
  opacity: 1;
  background-color: black !important;
  color: white !important;
}

.tab_links-cms.vertical .tab-link.active {
  opacity: 1;
  background-color: black !important;
  /* Active is same as hover */
  color: white !important;
  border-left: none;
  /* Consistency */
}

/* Keep Schedule button visible on mobile */
@media screen and (max-width: 479px) {
  .nav-button {
    display: block !important;
  }

  .nav_buttons-wrap {
    display: flex !important;
  }

  .nav_buttons-wrap .button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   Accessibility - Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .hero-poster-fallback {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* --------------------------------------------------------------------------
   Responsive Fixes for Proceso Section
   -------------------------------------------------------------------------- */

/* Tablet & Mobile (Standard Breakpoint < 991px) */
@media screen and (max-width: 991px) {

  /* Disable sticky behavior on smaller screens */
  .features-28-main .sticky-content {
    position: static !important;
    margin-top: 0 !important;
    top: auto !important;
    margin-bottom: 2rem;
    /* Spacing below tabs */
  }

  /* Reset container height to auto (content-based) */
  .features-28-main>.fade-in-move-from-left {
    height: auto !important;
  }

  /* Tabs stacking */
  .tab_links-cms.vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .tab_links-cms.vertical .tab-link {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   High Resolution (Large Screens > 1920px)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1920px) {
  .features-28-main .heading-style-h2 {
    font-size: 4rem !important;
    /* Larger font for 4K */
  }

  .container-medium {
    max-width: 1400px !important;
    /* Allow wider content on huge screens */
  }
}

/* --------------------------------------------------------------------------
   High contrast mode support
   -------------------------------------------------------------------------- */
@media (prefers-contrast: high) {
  .hero-overlay-enhanced {
    background: rgba(0, 0, 0, 0.6);
  }

  .hero-title,
  .hero-subtitle {
    text-shadow: none;
  }
}

/* --------------------------------------------------------------------------
   Print styles
   -------------------------------------------------------------------------- */
@media print {
  .hero {
    min-height: auto;
    page-break-inside: avoid;
  }

  .hero-video,
  .hero-overlay-enhanced {
    display: none;
  }

  .hero-title,
  .hero-subtitle {
    color: #000;
    text-shadow: none;
  }
}

/* Increase logo size in navigation */
.nav-logo-wrap {
  height: 3.5rem !important;
}

@media screen and (max-width: 479px) {
  .nav-logo-wrap {
    height: 2.8rem !important;
  }
}

/* --------------------------------------------------------------------------
   Savings Chart - Pure CSS Bar Chart
   -------------------------------------------------------------------------- */

/* Standardize text container height to prevent tab switching offset jumps */
.features-30-grid .content-flex-vertical {
  min-height: 160px;
  /* Ensure space for the tallest text content */
  justify-content: flex-start;
}

/* Target the container div inside grid */
.features-30-grid>div:last-child {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}

.savings-chart {
  display: flex !important;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  /* Stretch vertical to fill height */
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Match aspect ratio of .image-full-height-radius */
  height: auto;
  padding: 1.5rem;
  background-color: #ffffff !important;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  gap: 1rem;
}

.savings-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  /* Align bottom padding with chart bars' padding-bottom */
  padding-bottom: 2.5rem;
  /* Slight top margin to align 100% with top of bars area roughly */
  margin-top: 5px;
  height: auto;
  /* Fluid height */
  min-width: 35px;
  color: #999;
  font-size: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.savings-chart-bars {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-around;
  gap: 1.5rem;
  height: auto;
  /* Fluid height */
  width: 100%;
  flex: 1;
  /* Take remaining space */
  position: relative;
  padding-bottom: 2.5rem;
  border-bottom: none;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

/* Grid lines background on pseudo-element to align with chart area excluding padding */
.savings-chart-bars::before {
  display: none;
}

.savings-bar-group {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  height: 100%;
  position: relative;
  min-width: 40px;
  z-index: 2;
  /* Lift above grid */
}

.savings-bar-group::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  background-color: rgba(34, 34, 34, 0.05);
  border-radius: 4px;
  z-index: -1;
}

.savings-bar-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #111;
  margin-bottom: 0.75rem;
  text-align: center;
  display: block;
}

.savings-bar {
  width: 50px;
  /* Fixed width for consistency */
  border-radius: 4px;
  /* Rounded all corners slightly */
  background-color: #222 !important;
  /* Solid dark color */
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  /* Smoother springy animation */
  min-height: 4px;
  display: block !important;
}

.savings-bar-label {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
  /* Muted text */
  text-align: center;
  white-space: nowrap;
  display: block;
  width: 100%;
}


/* Responsive adjustments */
@media screen and (max-width: 767px) {
  .features-30-grid>div:last-child {
    min-height: 300px;
  }

  .savings-chart {
    padding: 1rem;
  }
}

@media screen and (max-width: 479px) {
  .features-30-grid>div:last-child {
    min-height: 250px;
  }

  .savings-chart-bars {
    height: 180px !important;
    gap: 0.5rem;
    padding-bottom: 2rem;
  }

  .savings-bar-group {
    min-width: auto;
  }

  .savings-bar-value {
    font-size: 0.8rem;
  }

  .savings-bar-label {
    font-size: 0.7rem;
    bottom: -2rem;
  }

  /* Reset text container height on mobile where vertical stacking happens */
  .features-30-grid .content-flex-vertical {
    min-height: auto;
  }
}

/* --------------------------------------------------------------------------
   Feature 26 Width Adjustment
   -------------------------------------------------------------------------- */
.features-26-item.features-26-first-item {
  width: 100% !important;
  flex-basis: 100% !important;
  max-width: 100% !important;
}

/* --------------------------------------------------------------------------
   Feature List Icon Sizing & Alignment
   -------------------------------------------------------------------------- */
.features-card .list_item-icon-dark svg {
  width: 32px !important;
  height: 32px !important;
}

.features-card .list_item-icon-dark {
  height: auto !important;
  margin-top: -2px;
  /* Optically align with text line-height */
}

/* --------------------------------------------------------------------------
   Slider Slides - Force visibility for all content
   -------------------------------------------------------------------------- */
.w-slider .slide .features-top .content-flex-vertical h2,
.w-slider .slide .features-top .content-flex-vertical p {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  -webkit-transform: none !important;
}

.w-slider .slide .features-top .fade-in-move-from-left,
.w-slider .slide .features-top .fade-in-move-from-right,
.w-slider .slide .features-content .fade-in-move-from-left,
.w-slider .slide .features-content .fade-in-move-from-right {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  -webkit-transform: none !important;
}

/* --------------------------------------------------------------------------
   Testimonial Cards
   -------------------------------------------------------------------------- */
.slider-mask-features-32th .features-card {
  box-sizing: border-box;
  padding: 1.5rem 2rem !important;
}

.slider-mask-features-32th .features-card .margin-small.margin-top {
  margin: 1rem 0 0 0 !important;
}

.slider-mask-features-32th .features-card .text-size-small {
  text-align: left !important;
  text-wrap: pretty;
}

.slider-mask-features-32th .features-content .features-grid-content:first-child {
  width: 39% !important;
}

.slider-mask-features-32th .features-content .features-grid-content:last-child {
  width: 30% !important;
}

@media screen and (max-width: 991px) {

  .slider-mask-features-32th .features-content .features-grid-content:first-child,
  .slider-mask-features-32th .features-content .features-grid-content:last-child {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   Footer middle-column underline hover effect
   -------------------------------------------------------------------------- */
@media screen and (min-width: 992px) {
  .footer_09-content-holder {
    grid-template-columns: .52fr 1fr !important;
    grid-column-gap: 2.5rem !important;
  }
}

.footer_09-grid {
  grid-template-columns: max-content max-content !important;
  grid-column-gap: 5.0rem !important;
  place-items: start start !important;
  justify-content: flex-start !important;
}

.footer_09-grid .footer_09-content-grid:nth-child(2) .footer_list-wrap {
  row-gap: .2rem;
  align-items: stretch;
}

.footer_09-wrapper .text-style-link[href*="google.com/maps"] {
  display: inline-block !important;
}

.footer_09-wrapper .text-style-link[data-footer-map-link="true"] .text-size-regular {
  margin: 0;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: #fff;
}

.footer_09-wrapper .text-style-link[data-footer-map-link="true"]:hover .text-size-regular,
.footer_09-wrapper .text-style-link[data-footer-map-link="true"]:focus-visible .text-size-regular {
  text-decoration: underline;
}

.footer_09-grid .footer-address-social-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5.7rem;
  width: 100%;
}

.footer_09-grid .footer-address-social-row [data-footer-map-link="true"] {
  flex: 1 1 auto;
  min-width: 0;
}

.footer_09-grid .footer-social-links {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 0;
  flex-shrink: 0;
  margin-left: auto;
}

.footer_09-grid .footer-social-link {
  display: inline-flex;
  color: #fff;
  transition: transform .25s ease, opacity .25s ease;
}

.footer_09-grid .footer-social-link:hover,
.footer_09-grid .footer-social-link:focus-visible {
  transform: translateY(-1px) scale(1.06);
  opacity: .85;
}

.footer_09-grid .footer-social-icon {
  width: 32px;
  height: 32px;
  display: block;
}

#teledata .footer_09-copyright-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: .65rem !important;
  height: auto !important;
}

#teledata .footer-left-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 1.2rem !important;
  height: auto !important;
}

#teledata #w-node-_65f996f5-95a8-befe-1367-be1682da7695-33eb6c47 {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

#teledata .footer_09-copyright-content .heading-style-h4,
#teledata .footer-left-stack .heading-style-h4 {
  margin: 0 !important;
}

#teledata .footer-cta-row {
  display: block !important;
  margin-top: 0 !important;
}

#teledata .footer-cta-row .text-simple {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Victron image effect (match feature image feel)
   -------------------------------------------------------------------------- */
.features-30-grid>div:last-child {
  overflow: hidden;
}

.victron-image-effect {
  transition: transform .45s ease, filter .45s ease;
  will-change: transform;
}

.card-gray:hover .victron-image-effect {
  transform: scale(1.04);
  filter: brightness(1.03);
}

/* --------------------------------------------------------------------------
   Proceso tab anchor alignment
   -------------------------------------------------------------------------- */
.proceso-anchor {
  display: block;
  height: 10rem;
  margin-top: -10rem;
  visibility: hidden;
  pointer-events: none;
}

@media screen and (max-width: 991px) {
  .proceso-anchor {
    height: 8rem;
    margin-top: -8rem;
  }
}

/* Scroll offset for anchor links on mobile — clear sticky navbar */
@media screen and (max-width: 767px) {
  #proceso, #casos, #teledata, #inicio {
    scroll-margin-top: 7rem !important;
    padding-top: 3rem !important;
    margin-top: -3rem !important;
  }
}

/* "Tecnología limpia" heading — responsive */

@media screen and (max-width: 767px) {
  .features-26-title {
    white-space: normal !important;
    font-size: 1.4rem !important;
  }

  .features-26-content,
  .features_26-inside,
  .features-26-item {
    overflow: hidden !important;
    max-width: 100% !important;
  }

  br.desktop-only {
    display: none;
  }
}

@media screen and (max-width: 479px) {
  .features-26-title {
    font-size: 1.2rem !important;
  }
}

/* CTA "Energía y Calma" heading — responsive */
@media screen and (max-width: 767px) {
  .cta-title {
    white-space: normal !important;
    font-size: 1.6rem !important;
  }
}

@media screen and (max-width: 479px) {
  .cta-title {
    font-size: 1.4rem !important;
  }
}

/* Casos y Referencias — mobile improvements */
@media screen and (max-width: 767px) {
  /* Balanced height for background image visibility */
  .features-item {
    min-height: 75vh !important;
    min-height: 75dvh !important;
    padding: 1.25rem !important;
    gap: 1rem !important;
  }

  /* Stack title and button vertically, reduce gap */
  .features-top {
    gap: 0.75rem !important;
  }

  /* Testimonial cards — compact padding */
  .slider-mask-features-32th .features-card {
    padding: 1rem 1.25rem !important;
  }

  /* Reduce gap between the two stacked cards */
  .features-content {
    gap: 0.75rem !important;
  }

  /* Hide feature list card on mobile */
  .features-content .features-grid-content:last-child {
    display: none !important;
  }

  /* Testimonial text — smaller on mobile */
  .testimonial_person-detail-holder {
    gap: 0.75rem !important;
  }

  .testimonial_person-small-image {
    width: 42px !important;
    height: 42px !important;
  }

  /* Feature list items — tighter spacing */
  .list-item-grid {
    gap: 0.75rem !important;
  }

  .list_item-icon-dark {
    width: 28px !important;
    min-width: 28px !important;
  }

  .list_item-icon-dark svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Footer — responsive */
@media screen and (max-width: 767px) {
  #footer {
    padding: 1.5rem 1.25rem !important;
  }

  /* Stack footer content vertically */
  #footer > div {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.25rem !important;
    text-align: center !important;
  }

  /* Nav links: wrap in centered rows */
  #footer nav {
    justify-content: center !important;
    gap: 1rem !important;
  }

  /* Right side: wrap address above icons row */
  #footer > div > div:last-child {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.75rem !important;
  }

  /* Address takes full width so icons wrap to next row together */
  #footer a[data-footer-map-link="true"] {
    flex-basis: 100% !important;
  }

  /* Allow address to wrap */
  #footer a[data-footer-map-link="true"] {
    white-space: normal !important;
    text-align: center !important;
  }

  /* Hide the vertical divider */
  #footer > div > div:last-child > span {
    display: none !important;
  }

  /* Social icons row */
  #footer a[aria-label] {
    padding: 0.5rem !important;
  }
}

/* Teledata logo — responsive */
@media screen and (max-width: 767px) {
  .teledata-logo-wrapper {
    margin-top: -18rem !important;
  }

  .footer_09-big-content-top {
    margin-left: -2rem !important;
    justify-content: flex-start !important;
  }

  .footer_09-big-content-top img {
    height: 180px !important;
  }
}

@media screen and (max-width: 479px) {
  .teledata-logo-wrapper {
    margin-top: -20rem !important;
  }

  .footer_09-big-content-top img {
    height: 140px !important;
  }
}