/* Servicios Page Specific Styles */

/* Prevent horizontal scroll on mobile only */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* Import main variables */
@import url('./variables.css');

/* CSS Variables for Servicios Page */
:root {
  --servicios-color-bg: #e8e8e8; /* Light gray background */
  --servicios-color-white: #fff;
  --servicios-color-btn-bg: #f0f0f0;
  --servicios-color-btn-text: #333;
  --servicios-color-btn-hover-bg: #e0e0e0;
  --servicios-font-main: "ParkinSans", Arial, sans-serif;
  --servicios-color-primary-green: #90d624;

  --servicios-font-size-h1-hero: 50px;
  --servicios-font-size-desc-hero: 20px;
  --servicios-font-size-btn-cta: 16px;
  --servicios-btn-primary-width: 400px;
  --servicios-font-size-nav: 14px;

  --servicios-radius: 8px;
  --servicios-spacing-md: 1.5rem;
  --servicios-spacing-sm: 1rem;
  --servicios-spacing-lg: 2rem;
  --servicios-spacing-xl: 3rem;
  --servicios-spacing-xxl: 4rem;
  --servicios-spacing-xxxl: 5rem;

  --servicios-section-spacing: 8rem;

  --servicios-margin-text-x: 64px;
  --servicios-margin-box-x: 26px;
  --servicios-hero-content-margin-bottom: 60px;
  --servicios-btn-primary-height: 55px;

  --servicios-mobile-menu-bg: #f8f5f0;
  --servicios-mobile-menu-text: #333;
  --servicios-hamburger-bar-color: #333; /* Dark hamburger for light background */

  --servicios-page-bg-color: #ffffff;
  --servicios-hero-visible-height: 100vh;

  --servicios-color-btn-green-bg: #90d624;
  --servicios-color-btn-green-text: #ffffff;

  --servicios-footer-bg-color: #ffffff;
  --servicios-footer-bottom-bg-color: #ffffff;
  --servicios-footer-text-color: #161616;
  --servicios-footer-bottom-text-color: #4b4b4b;
  --servicios-footer-btn-bg: #90d624;
  --servicios-footer-btn-text: #ffffff;


  --servicios-animation-duration: 0.8s;
  --servicios-animation-delay-base: 0.1s;

  /* Blue placeholder color */
  --servicios-placeholder-blue: #2c4a52;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body.page-body {
  margin: 0;
  font-family: var(--servicios-font-main);
  background: var(--servicios-page-bg-color);
  color: var(--servicios-color-btn-text);
}

/* Hero Header - Transparent background like other pages */
.hero-header {
  background: transparent;
  border-radius: 0;
  margin: var(--margin-box-x);
  margin-bottom: var(--margin-box-x);
  min-height: auto;
}

.servicios-hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--servicios-spacing-md) var(--servicios-margin-text-x) 0 var(--servicios-margin-text-x);
  width: 100%;
  box-sizing: border-box;
  min-height: 64px;
  position: relative;
  flex-shrink: 0;
}

.servicios-logo-link {
  display: flex;
  align-items: center;
  height: 50px; /* Increased logo size */
}

.servicios-logo-img {
  height: 50px; /* Increased logo size */
  width: auto;
}

.servicios-nav-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.servicios-nav-actions .servicios-nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.servicios-nav-actions .servicios-nav-list li a {
  color: #333; /* Dark text for light background */
  text-decoration: none;
  font-weight: 400;
  font-size: var(--servicios-font-size-nav);
  transition: font-weight 0.3s ease, color 0.2s;
  padding: 0.25em 0.5em;
  position: relative;
  display: inline-block;
}

.servicios-nav-actions .servicios-nav-list li a:hover,
.servicios-nav-actions .servicios-nav-list li a.active {
  color: #333;
  font-weight: 600;
}

/* Remove the custom leaf icon and restore original active state */
.servicios-nav-actions .servicios-nav-list li a::after {
  content: "";
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 25px;
  height: 25px;
  background-color: lightgray;
}

.servicios-nav-actions .servicios-nav-list li a:hover::after,
.servicios-nav-actions .servicios-nav-list li a.active::after {
  opacity: 1;
}

.servicios-nav-actions .servicios-contact-btn {
  background: var(--servicios-color-primary-green);
  color: #1B3A00;
  border: none;
  border-radius: 4px;
  padding: 0.6em 1.2em;
  font-weight: 400;
  font-size: var(--servicios-font-size-nav);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.servicios-nav-actions .servicios-contact-btn:hover {
  background-color: rgba(27, 58, 0, 0.9);
}

.servicios-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  gap: 6px;
}

.servicios-hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--servicios-hamburger-bar-color);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease;
  border-radius: 3px;
}

.servicios-hamburger.active span {
  background-color: #ffffff; /* White color when menu is active */
}

.servicios-hamburger.active span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
  background-color: #ffffff;
}

.servicios-hamburger.active span:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
  background-color: #ffffff;
}

/* Mobile menu now inherits from main styles.css */

/* Hero Content */
.servicios-hero-content {
  margin-top: 100px;
  margin-bottom: var(--servicios-spacing-xl); /* Reduce from var(--servicios-hero-content-margin-bottom) */
  padding-left: var(--servicios-margin-text-x);
  padding-right: var(--servicios-margin-text-x);
  max-width: 1200px; /* Cambiado de 900px a 1200px */
  color: #333;
  box-sizing: border-box;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servicios-hero-content h1 {
  font-size: var(--servicios-font-size-h1-hero);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.5em 0;
  color: #333;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-align: center;
  /* Remove line-clamp to show full text */
}

.servicios-hero-cta-btn {
  background: var(--servicios-color-primary-green);
  color: #1B3A00;
  border: none;
  border-radius: var(--servicios-radius);
  padding: 0 2em;
  height: var(--servicios-btn-primary-height);
  font-size: var(--servicios-font-size-btn-cta);
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: var(--servicios-font-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  min-width: 250px;
}

.servicios-hero-cta-btn:hover {
  background-color: rgba(27, 58, 0, 0.9);
}

/* Blue Placeholder Rectangle */
.servicios-hero-image-placeholder {
  width: calc(100% - 2 * var(--servicios-margin-text-x));
  height: 350px;
  margin: 0 var(--servicios-margin-text-x) var(--servicios-spacing-xl) var(--servicios-margin-text-x);
  border-radius: var(--servicios-radius);
  flex-shrink: 0;
  margin-bottom: var(--servicios-spacing-xl); /* Add bottom margin for spacing */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicios-hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Main Services Section */
.servicios-main-section {
  background-color: var(--servicios-page-bg-color);
  padding: var(--servicios-section-spacing) 0;
  box-sizing: border-box;
}

.servicios-container {
  width: 100%;
  margin: 0;
  padding: 0 var(--servicios-margin-text-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--servicios-spacing-lg);
  box-sizing: border-box;
}

.servicios-service-card {
  border-radius: var(--servicios-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 500px;
  width: 100%;
  box-sizing: border-box;
  background: var(--servicios-color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* All cards now have consistent vertical layout */

.servicios-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--servicios-spacing-lg); /* Agregar padding */
  box-sizing: border-box;
}

.servicios-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--servicios-radius); /* Agregar border radius a la imagen */
}

.servicios-card-content {
  padding: var(--servicios-spacing-xxl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.servicios-card-content h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--servicios-spacing-xl) 0;
  color: #333333;
}

.servicios-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--servicios-spacing-xl) 0;
  flex-grow: 1;
}

.servicios-features-list li {
  display: flex;
  align-items: center;
  gap: var(--servicios-spacing-md);
  margin-bottom: var(--servicios-spacing-lg);
  font-size: 16px;
  line-height: 1.5;
  color: #666666;
}

.servicios-feature-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 45px;
  height: 45px;
  border-radius: 4px;
}

/* All buttons now have consistent green styling with enhanced hover effects */
.servicios-specialty-btn {
  background: var(--servicios-color-primary-green);
  color: #1B3A00;
  border: 1px solid var(--servicios-color-primary-green);
  border-radius: var(--servicios-radius);
  padding: 0 var(--servicios-spacing-xxxl);
  height: 54px;
  font-family: var(--servicios-font-main);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  align-self: flex-start;
}

.servicios-specialty-btn:hover {
  background: #7bb820;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 214, 36, 0.3);
  transition: all 0.3s ease;
}

/* Use Cases Section */
.servicios-use-cases-section {
  background: var(--servicios-color-primary-green);
  padding: var(--servicios-section-spacing) var(--servicios-margin-text-x);
  color: #1B3A00;
  position: relative;
  overflow: hidden;
}

.servicios-use-cases-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('/assets/verde_pattern.png');
  background-repeat: repeat;
  background-size: 500px;
  z-index: 0;
  opacity: 0.3;
}

.servicios-use-cases-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--servicios-spacing-xxl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.servicios-use-cases-content h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 var(--servicios-spacing-xl) 0;
  color: #1B3A00;
}

.servicios-client-types {
  margin-bottom: var(--servicios-spacing-xl);
}

.servicios-client-type {
  background: rgba(255, 255, 255, 0.1);
  color: #1B3A00;
  padding: var(--servicios-spacing-sm) var(--servicios-spacing-md);
  margin-bottom: var(--servicios-spacing-sm);
  border-radius: var(--servicios-radius);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.servicios-client-type.servicios-active {
  background: var(--servicios-color-white);
  color: #1B3A00;
}

.servicios-client-type:hover {
  background: rgba(255, 255, 255, 0.2);
}

.servicios-client-type.servicios-active:hover {
  background: var(--servicios-color-white);
}

.servicios-use-case-details {
  display: flex;
  flex-direction: column;
  gap: var(--servicios-spacing-lg);
}

.servicios-use-case-item {
  display: flex;
  align-items: flex-start;
  gap: var(--servicios-spacing-lg);
}

.servicios-step-number {
  flex-shrink: 0;
  font-size: 48px;
  font-weight: 400;
  color: #1B3A00;
  line-height: 1;
  opacity: 0.9;
}

.servicios-step-content p {
  font-size: 16px;
  font-weight: 300;
  color: #1B3A00;
  line-height: 1.5;
  margin: 0;
  padding-top: 8px;
}

.servicios-use-cases-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicios-use-cases-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--servicios-radius);
}

/* Companies Trust Section */
.servicios-companies-trust-section {
  background-color: #ffffff;
  padding: var(--servicios-section-spacing) var(--servicios-margin-text-x);
  text-align: center;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.servicios-companies-trust-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servicios-companies-trust-content {
  margin-bottom: var(--servicios-spacing-xxl);
}

.servicios-companies-trust-content h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 var(--servicios-spacing-lg) 0;
  color: #333333;
  text-align: center;
}

.servicios-companies-trust-content p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  color: #666666;
  text-align: center;
  max-width: 600px;
}

.servicios-companies-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--servicios-spacing-xxl);
  flex-wrap: wrap;
  width: 100vw;
  background-color: var(--servicios-color-white);
  padding: var(--servicios-spacing-xl) var(--servicios-spacing-lg);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  box-sizing: border-box;
}

.servicios-company-logo {
  flex-shrink: 0;
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--servicios-spacing-sm);
  box-sizing: border-box;
}

.servicios-company-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.servicios-company-logo img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Navigation Links now inherit from main styles.css */

/* Contact Button now inherits from main styles.css */

/* Social Icons now inherit from main styles.css */

/* Mobile Menu now inherits from main styles.css */

/* Back to Top Button - Ensure it's above footer */
.back-to-top {
  z-index: 3000;
}

/* Footer - Basic styles to ensure visibility */
.main-footer {
  background-color: #90d624;
  color: #1B3A00;
  position: relative;
  z-index: 1002;
  display: block;
  visibility: visible;
  margin-top: auto;
  width: 100%;
  opacity: 1;
  overflow: visible;
  min-height: 300px;
  transform: none;
  filter: none;
}


/* Animation Classes */
.servicios-animate-fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--servicios-animation-duration) ease-out, transform var(--servicios-animation-duration)
    ease-out;
}

.servicios-animate-fade-in {
  opacity: 0;
  transition: opacity var(--servicios-animation-duration) ease-out;
}

.servicios-is-visible {
  opacity: 1;
  transform: translateY(0);
}

.servicios-animate-delay-1 {
  transition-delay: calc(var(--servicios-animation-delay-base) * 1);
}
.servicios-animate-delay-2 {
  transition-delay: calc(var(--servicios-animation-delay-base) * 2);
}
.servicios-animate-delay-3 {
  transition-delay: calc(var(--servicios-animation-delay-base) * 3);
}

/* Companies Trust Section */
.servicios-companies-trust-section {
  background-color: #ffffff;
  padding: var(--servicios-section-spacing) var(--servicios-margin-text-x);
  text-align: center;
  margin-bottom: var(--servicios-section-spacing);
}

.servicios-companies-trust-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servicios-companies-trust-content {
  margin-bottom: var(--servicios-spacing-xxl);
}

.servicios-companies-trust-content h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 var(--servicios-spacing-lg) 0;
  color: #333333;
  text-align: center;
}

.servicios-companies-trust-content p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  color: #666666;
  text-align: center;
  max-width: 600px;
}

.servicios-companies-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--servicios-spacing-xxl);
  flex-wrap: wrap;
  width: 100%;
  background-color: var(--servicios-color-white); /* Agregar fondo blanco solo aquí */
  padding: var(--servicios-spacing-xl) var(--servicios-spacing-lg); /* Agregar padding para crear la barra */
  border-radius: var(--servicios-radius); /* Opcional: agregar border radius */
}

.servicios-company-logo {
  flex-shrink: 0;
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--servicios-spacing-sm);
  box-sizing: border-box;
}

.servicios-company-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.servicios-company-logo img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Responsive Design */
@media (max-width: 1000px) {
  :root {
    --servicios-hero-visible-height: 90vh;
    --servicios-font-size-h1-hero: 42px;
    --servicios-margin-text-x: 16px;
    --servicios-section-spacing: 6rem;
    --servicios-spacing-xxxl: 4rem;
  }

  .servicios-nav-actions {
    display: none;
  }

  .servicios-hamburger {
    display: flex;
  }

  .servicios-use-cases-container {
    grid-template-columns: 1fr;
    gap: var(--servicios-spacing-xl);
  }

  .servicios-use-cases-content h2 {
    font-size: 36px;
  }

  /* Footer responsive - DISABLED */
  /*
  .servicios-footer-content {
    grid-template-columns: 1fr;
    gap: var(--servicios-spacing-xl);
    align-items: flex-start;
  }

  .servicios-footer-right {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .servicios-footer-cta h3 {
    font-size: 28px;
  }
  */


  .servicios-hero-image-placeholder {
    height: auto;
  }

  .servicios-service-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .servicios-service-card:nth-child(1) .servicios-card-image,
  .servicios-service-card:nth-child(2) .servicios-card-image,
  .servicios-service-card:nth-child(3) .servicios-card-image {
    order: 1;
    height: 250px;
  }

  .servicios-service-card:nth-child(1) .servicios-card-content,
  .servicios-service-card:nth-child(2) .servicios-card-content,
  .servicios-service-card:nth-child(3) .servicios-card-content {
    order: 2;
  }

  .servicios-card-content {
    padding: var(--servicios-spacing-xl);
  }

  .servicios-card-content h2 {
    font-size: 24px;
  }

  .servicios-features-list li {
    font-size: 15px;
    margin-bottom: var(--servicios-spacing-md);
  }

  .servicios-companies-trust-content h2 {
    font-size: 36px;
  }

  .servicios-companies-trust-content p {
    font-size: 16px;
  }

  .servicios-companies-logos {
    gap: var(--servicios-spacing-xl);
  }

  .servicios-company-logo {
    width: 130px;
    height: 70px;
  }

  /* Footer responsive - DISABLED */
  /*
  .servicios-main-footer::after {
    width: 100%;
    height: 50%;
    opacity: 0.3;
  }
  */
}

@media (max-width: 768px) {
  :root {
    --servicios-hero-visible-height: 70vh; /* Reducido de default */
    --servicios-font-size-h1-hero: 36px;
    --servicios-margin-text-x: 16px;
    --servicios-hero-content-margin-bottom: 20px; /* Reducido de 40px */
    --servicios-section-spacing: 5rem;
    --servicios-spacing-xxxl: 3rem;
  }

  .servicios-hero-header {
    min-height: auto;
    padding-bottom: var(--servicios-spacing-md);
    overflow: visible;
  }

  .servicios-hero-nav {
    padding: 0;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-header .nav-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-header .nav-list {
    flex-wrap: wrap;
    gap: 5px;
  }

  /* Nav list styles now inherit from main styles.css */

  .servicios-hero-content {
    margin-top: var(--servicios-spacing-xl);
    margin-bottom: var(--servicios-hero-content-margin-bottom);
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .servicios-hero-content h1 {
    text-align: center;
    max-width: 100%;
    font-size: 28px;
    padding: 0 10px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
  }

  .servicios-hero-content p {
    text-align: center;
  }

  .servicios-hero-cta-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto var(--servicios-spacing-md) auto; /* Centrado */
    display: block;
  }

  .servicios-container {
    grid-template-columns: 1fr;
    gap: var(--servicios-spacing-md);
    padding: 0 var(--servicios-margin-text-x);
  }

  .servicios-service-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .servicios-hero-image-placeholder {
    height: 250px;
    margin-bottom: var(--servicios-spacing-lg); /* Reducido el margin bottom */
  }

  .servicios-hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .servicios-card-image {
    height: 200px;
  }

  .servicios-card-content {
    padding: var(--servicios-spacing-lg);
  }

  .servicios-card-content h2 {
    font-size: 22px;
    margin-bottom: var(--servicios-spacing-lg);
  }

  .servicios-features-list li {
    font-size: 14px;
    gap: var(--servicios-spacing-sm);
  }

  .servicios-feature-icon {
    width: 18px;
    height: 18px;
  }

  .servicios-companies-trust-content h2 {
    font-size: 32px;
  }

  .servicios-companies-trust-content p {
    font-size: 16px;
    line-height: 1.4;
  }

  .servicios-companies-trust-content p br {
    display: none; /* Remove line break on mobile */
  }

  .servicios-companies-logos {
    gap: var(--servicios-spacing-lg);
    justify-content: space-around;
  }

  .servicios-company-logo {
    width: 120px;
    height: 60px;
  }

  /* Footer responsive - DISABLED */
  /*
  .servicios-main-footer::after {
    height: 30%;
  }
  */
}

@media (max-width: 480px) {
  :root {
    --servicios-hero-visible-height: 70vh; /* Reducido de default */
    --servicios-font-size-h1-hero: 28px;
    --servicios-margin-text-x: 16px;
    --servicios-margin-box-x: 10px;
    --servicios-hero-content-margin-bottom: 15px; /* Reducido aún más */
    --servicios-section-spacing: 4rem;
    --servicios-spacing-xxxl: 2.5rem;
  }

  .servicios-hero-header {
    min-height: auto;
    padding-bottom: var(--servicios-spacing-sm);
    overflow: visible;
  }

  .servicios-hero-nav {
    padding: var(--servicios-spacing-sm) 16px 0 16px;
    min-height: 50px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-header .nav-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .hero-header .nav-list {
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Nav list styles now inherit from main styles.css */

  .servicios-hero-content {
    margin-top: var(--servicios-spacing-lg);
    margin-bottom: var(--servicios-hero-content-margin-bottom);
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .servicios-hero-content h1 {
    text-align: center;
    line-height: 1.3;
    margin-bottom: 0.8em;
    max-width: 100%;
    font-size: 20px;
    padding: 0 8px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .servicios-hero-content p {
    text-align: center;
  }

  .servicios-hero-cta-btn {
    width: 100%;
    max-width: none;
    margin: 0 auto var(--servicios-spacing-sm) auto; /* Centrado */
    display: block;
  }

  .servicios-container {
    grid-template-columns: 1fr;
    gap: var(--servicios-spacing-sm);
    padding: 0 var(--servicios-margin-text-x);
  }

  .servicios-service-card {
    max-width: 350px;
    margin: 0 auto;
  }

  .servicios-hero-image-placeholder {
    height: 220px;
    margin-bottom: var(--servicios-spacing-md); /* Reducido el margin bottom */
  }

  .servicios-hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .servicios-card-image {
    height: 180px;
  }

  .servicios-card-content {
    padding: var(--servicios-spacing-md);
  }

  .servicios-card-content h2 {
    font-size: 20px;
  }

  .servicios-features-list li {
    font-size: 13px;
  }

  .servicios-specialty-btn {
    font-size: 13px;
    height: 44px;
    width: 100%;
  }

  .servicios-companies-trust-content h2 {
    font-size: 28px;
    line-height: 1.3;
  }

  .servicios-companies-trust-content p {
    font-size: 15px;
  }

  .servicios-companies-logos {
    gap: var(--servicios-spacing-md);
    flex-direction: column;
    align-items: center;
  }

  .servicios-company-logo {
    width: 140px;
    height: 60px;
    margin-bottom: var(--servicios-spacing-sm);
  }

  .servicios-company-logo:last-child {
    margin-bottom: 0;
  }

  /* Footer responsive - DISABLED */
  /*
  .servicios-main-footer::after {
    height: 20%;
  }
  */
}

/* Extra small screens - 360px and below */
@media (max-width: 360px) {
  .servicios-hero-header {
    overflow: visible;
  }

  .servicios-hero-nav {
    padding: var(--servicios-spacing-xs) 12px 0 12px;
    min-height: 45px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .hero-header .nav-actions {
    flex-wrap: wrap;
    gap: 4px;
  }

  .hero-header .nav-list {
    flex-wrap: wrap;
    gap: 3px;
  }

  /* Nav list styles now inherit from main styles.css */

  .servicios-hero-content {
    padding-left: 12px;
    padding-right: 12px;
    margin-top: var(--servicios-spacing-md);
  }

  .servicios-hero-content h1 {
    font-size: 18px;
    line-height: 1.4;
    padding: 0 5px;
    margin-bottom: 0.6em;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--servicios-color-btn-text);
  outline-offset: 2px;
}
