/* ============================================
   CORRECCIONES VISUALES - GALPOVEN
   Fecha: 2026-02-11
   Actualización: Correcciones adicionales
   ============================================ */

/* ========================================
   1. CORRECCIÓN DE OPACIDAD EN TEXTOS Y OVERLAY
   ======================================== 
   
   Problema: Las letras se ven opacas por el overlay oscuro
   Solución: Aumentar z-index de contenido sobre el overlay
*/

/* Asegurar que el overlay esté detrás del contenido */
.section__background-overlay,
.hero__overlay,
.page-banner-pro::before {
  z-index: 1 !important;
}

/* Elevar todo el contenido de las secciones sobre el overlay */
.section .container,
.page-banner-pro .container {
  position: relative;
  z-index: 10 !important;
}

/* Asegurar que títulos y textos estén sobre el overlay */
.section__title,
.page-banner-pro__title {
  position: relative;
  z-index: 15 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.page-banner-pro__subtitle {
  position: relative;
  z-index: 15 !important;
  color: #e8e8e8 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.section p,
.section .text-center {
  position: relative;
  z-index: 12 !important;
}

/* Contenedores específicos de secciones */
.about__container,
.services__container,
.projects__container,
.testimonials__container,
.faq__container,
.core-values {
  position: relative;
  z-index: 10 !important;
}

/* Mejorar legibilidad de subtítulos en project cards */
.project-card__subtitle {
  color: #e0e0e0 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Mejorar legibilidad de títulos en project cards */
.project-card__title {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  font-weight: 700;
}

/* Mejorar overlay de project cards para mejor contraste */
.project-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 20%,
    rgba(0, 0, 0, 0.75) 50%,
    rgba(0, 0, 0, 0.3) 80%,
    transparent 100%
  ) !important;
}

/* Restaurar icono de cámara en project cards */
.project-card__icon-gallery {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  opacity: 1 !important;
  transition: transform 0.3s ease;
}

.project-card:hover .project-card__icon-gallery {
  transform: translateX(5px);
}

.project-card__icon-gallery i {
  font-size: 1.2rem;
  color: #FFA500 !important;
}

.project-card__icon-gallery span {
  color: #FFA500 !important;
  font-weight: 600;
}

/* Mejorar overlay general para mejor contraste */
.hero__overlay {
  background: radial-gradient(
    ellipse at center,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.7) 60%
  ) !important;
}

/* Corrección específica para page-banner-pro */
.page-banner-pro {
  position: relative;
}

.page-banner-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35) !important;
  z-index: 1;
}

.page-banner-pro .container,
.page-banner-pro .container * {
  position: relative;
  z-index: 10 !important;
}

/* ========================================
   2. CORRECCIÓN DE EFECTO SCROLL EN SERVICIOS Y OBRAS
   ======================================== 
   
   Problema: En móvil, las tarjetas deben activarse con fondo amarillo al hacer scroll
   Solución: Activar el efecto is-active correctamente en móvil
*/

/* Efecto de activación en móvil para service-card */
@media screen and (max-width: 768px) {
  .service-card.is-active {
    background: linear-gradient(135deg, #D4AF37 0%, #FFA500 100%) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4) !important;
  }

  .service-card.is-active .service-card__title {
    color: #0a0a0a !important;
  }

  .service-card.is-active .service-card__description {
    color: #1a1a1a !important;
  }

  .service-card.is-active .service-card__icon-img {
    filter: brightness(0) saturate(100%) invert(0%) !important;
  }
  
  /* Corrección para el CTA card - icono y botón en negro cuando está activo */
  .service-card--cta.is-active .service-card__icon,
  .service-card--cta.is-active i {
    color: #0a0a0a !important;
  }
  
  .service-card--cta.is-active .btn--cta-main {
    background: #0a0a0a !important;
    color: #FFA500 !important;
    border: 2px solid #0a0a0a !important;
  }
}

/* Desactivar el efecto de scroll en project-card en móvil */
@media screen and (max-width: 768px) {
  .project-card.is-active {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  }

  .project-card.is-active .project-card__img {
    transform: none !important;
  }
}

/* Mantener el hover funcional solo en desktop */
@media screen and (min-width: 769px) {
  .service-card:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #FFA500 100%) !important;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
  }

  .service-card:hover .service-card__title {
    color: #0a0a0a !important;
  }

  .service-card:hover .service-card__description {
    color: #1a1a1a !important;
  }

  .service-card:hover .service-card__icon-img {
    filter: brightness(0) saturate(100%) invert(0%) !important;
  }
  
  /* Corrección para el CTA card - icono y botón en negro en hover */
  .service-card--cta:hover .service-card__icon,
  .service-card--cta:hover i {
    color: #0a0a0a !important;
  }
  
  .service-card--cta:hover .btn--cta-main {
    background: #0a0a0a !important;
    color: #FFA500 !important;
    border: 2px solid #0a0a0a !important;
  }

  .project-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.3) !important;
  }

  .project-card:hover .project-card__img {
    transform: scale(1.05) !important;
  }
}

/* ========================================
   3. CORRECCIÓN DE TESTIMONIOS (CLIENTES)
   ======================================== 
   
   Problema: Containers tapan botones de navegación
   Solución: Centrar y mejorar posicionamiento
*/

.testimonials__container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-card-slider {
  position: relative;
  min-height: 350px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card {
  position: absolute;
  width: 100%;
  max-width: 700px;
  padding: 2.5rem 2rem;
  background-color: rgba(10, 10, 10, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  left: 50%;
  margin-left: -350px;
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
  pointer-events: auto;
}

.testimonial-card.prev,
.testimonial-card.next {
  opacity: 0.3;
  transform: scale(0.85);
  z-index: 1;
}

.testimonial-card.prev {
  transform: translateX(-30%) scale(0.85);
}

.testimonial-card.next {
  transform: translateX(30%) scale(0.85);
}

/* Botones de navegación del slider */
.slider__nav {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.slider__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #FFA500);
  border: none;
  color: #0a0a0a;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.slider__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.slider__btn:active {
  transform: scale(0.95);
}

/* Mejorar legibilidad del texto de testimonios */
.testimonial__text {
  color: #e8e8e8 !important;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial__author {
  color: #FFA500 !important;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial__company {
  color: #cccccc !important;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ========================================
   4. CORRECCIÓN DE SUBTÍTULOS OSCUROS
   ======================================== */

.section p {
  color: #d0d0d0 !important;
}

.faq__intro {
  color: #d5d5d5 !important;
  font-size: 1.05rem;
}

.about__text-content p {
  color: #d8d8d8 !important;
  line-height: 1.8;
}

.projects__text-content p {
  color: #d8d8d8 !important;
  line-height: 1.8;
}

/* ========================================
   5. MENÚ MÓVIL MEJORADO
   ======================================== */

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(
      135deg,
      rgba(10, 10, 10, 0.98) 0%,
      rgba(26, 26, 26, 0.98) 50%,
      rgba(15, 20, 25, 0.98) 100%
    ) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav__menu.show-menu {
    right: 0;
  }

  /* Decoración del menú */
  .nav__menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: radial-gradient(
      ellipse at top,
      rgba(212, 175, 55, 0.15) 0%,
      transparent 70%
    );
    pointer-events: none;
  }

  .nav__menu::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: radial-gradient(
      ellipse at bottom,
      rgba(255, 165, 0, 0.1) 0%,
      transparent 70%
    );
    pointer-events: none;
  }

  .nav__list {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 2rem;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
  }

  .nav__item {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Animación secuencial de arriba a abajo */
  .nav__menu.show-menu .nav__item:nth-child(1) { 
    animation: slideDownMenu 0.4s ease forwards;
    animation-delay: 0.1s;
  }
  .nav__menu.show-menu .nav__item:nth-child(2) { 
    animation: slideDownMenu 0.4s ease forwards;
    animation-delay: 0.2s;
  }
  .nav__menu.show-menu .nav__item:nth-child(3) { 
    animation: slideDownMenu 0.4s ease forwards;
    animation-delay: 0.3s;
  }
  .nav__menu.show-menu .nav__item:nth-child(4) { 
    animation: slideDownMenu 0.4s ease forwards;
    animation-delay: 0.4s;
  }
  .nav__menu.show-menu .nav__item:nth-child(5) { 
    animation: slideDownMenu 0.4s ease forwards;
    animation-delay: 0.5s;
  }
  .nav__menu.show-menu .nav__item:nth-child(6) { 
    animation: slideDownMenu 0.4s ease forwards;
    animation-delay: 0.6s;
  }

  @keyframes slideDownMenu {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav__link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
  }

  .nav__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #D4AF37, #FFA500);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
  }

  .nav__link:hover,
  .nav__link:focus {
    color: #FFA500 !important;
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(8px);
  }

  .nav__link:hover::before,
  .nav__link:focus::before {
    height: 60%;
  }

  /* Botón de toggle mejorado con icono centrado y rotación */
  .nav__toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    padding: 0;
  }

  .nav__toggle:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.05);
  }

  .nav__toggle i {
    color: #FFA500;
    font-size: 1.3rem;
    transition: transform 0.4s ease;
  }

  /* Rotación del icono cuando el menú está abierto */
  .nav__toggle.active i {
    transform: rotate(90deg);
  }
}

/* ========================================
   6. CORRECCIÓN DE PROVEEDORES (CAROUSEL INFINITO)
   ======================================== */

.partners__container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 2rem 0;
}

.partners__carousel-track {
  display: flex;
  width: fit-content;
  gap: 6rem;
  animation: scroll-partners 20s linear infinite;
}

.partners__carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 3rem));
  }
}

.partner__logo {
  height: 70px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.partner__logo:hover {
  opacity: 1;
}

/* ========================================
   7. CORRECCIÓN DE GRACIAS.PHP
   ======================================== */

.thank-you-card {
  background: rgba(15, 20, 25, 0.9) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.thank-you-card__icon {
  color: #4ade80 !important;
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.thank-you-card__title {
  color: #ffffff !important;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.thank-you-card__text {
  color: #e0e0e0 !important;
  font-size: 1.1rem;
  line-height: 1.8;
}

.thank-you-card strong {
  color: #FFA500 !important;
}

.thank-you-card a {
  color: #FFA500 !important;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.thank-you-card a:hover {
  color: #D4AF37 !important;
}

.thank-you-card ul li {
  color: #d8d8d8 !important;
}

/* ========================================
   8. MEJORAS GENERALES DE CONTRASTE
   ======================================== */

.page-banner-pro__title {
  color: #ffffff !important;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9);
  font-weight: 700;
}

.page-banner-pro__subtitle {
  color: #e8e8e8 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Corrección para todas las secciones con fondo de imagen */
.about__text-content h2,
.about__text-content h3,
.about__text-content p {
  position: relative;
  z-index: 15 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* Corrección para galería de obras */
.gallery__item,
.project-card {
  position: relative;
}

/* Asegurar que la imagen esté en la capa base */
.project-card__img {
  position: relative;
  z-index: 1 !important;
}

/* Asegurar que el overlay y su contenido estén sobre la imagen */
.project-card__overlay {
  position: absolute !important;
  z-index: 2 !important;
}

.project-card__title,
.project-card__subtitle,
.project-card__icon-gallery {
  position: relative;
  z-index: 3 !important;
}

/* Mejorar contraste en todas las secciones theme */
.theme-blue,
.theme-gold,
.theme-indigo {
  position: relative;
}

.theme-blue .section__title,
.theme-gold .section__title,
.theme-indigo .section__title {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.theme-blue p,
.theme-gold p,
.theme-indigo p {
  color: #e0e0e0 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ========================================
   9. RESPONSIVE PARA PROYECTOS Y TESTIMONIOS
   ======================================== */

/* Banner Obras (page-banner): más alto y imagen que cubra más espacio */
.page-banner {
  min-height: 55vh;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  animation: none; /* en desktop imagen fija y grande; en móvil usamos pageBannerZoomMobile */
}

/* En móvil mantiene cover; la animación de zoom se aplica en el @media */
@media screen and (max-width: 768px) {
  .page-banner {
    min-height: 50vh !important;
  }
}

/* Banner Obras (page-banner): en móvil una sola imagen con zoom suave, sin verse 3 veces */
@keyframes pageBannerZoomMobile {
  0% { background-size: 100%; background-position: center center; }
  100% { background-size: 115%; background-position: center center; }
}

@media screen and (max-width: 768px) {
  /* Obras: banner con imagen única y zoom leve en móvil */
  .page-banner {
    background-size: 100% !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    animation: pageBannerZoomMobile 25s ease-in-out infinite alternate !important;
    padding: 6rem 0 4rem !important;
  }

  .page-banner__title {
    font-size: 1.75rem !important;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .page-banner__subtitle {
    font-size: 0.95rem !important;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Hero index – móvil: video igual de grande; solo textos y CTAs más pequeños */
  .hero {
    min-height: 85vh !important;
    padding: 2rem 0 2.5rem !important;
    justify-content: flex-end;
    align-items: center;
  }

  .hero__content {
    padding: 0 1.25rem;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding-bottom: 2rem;
  }

  .hero__logo {
    margin-bottom: 0.6rem !important;
    width: 160px !important;
    max-width: 60%;
  }

  .hero__title {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem !important;
    max-width: 100%;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  }

  .hero__divider {
    width: 48px !important;
    height: 2px !important;
    margin: 0.5rem auto 0.6rem !important;
    border-radius: 1px;
  }

  .hero__slogan {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem !important;
    line-height: 1.4;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  }

  .hero__buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-top: 0 !important;
    width: 100%;
  }

  .hero__buttons .btn {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 0.65rem 1.25rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: 100%;
    justify-content: center;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .hero__buttons .btn:active {
    transform: scale(0.98);
  }

  .hero__buttons .btn i {
    font-size: 0.7rem !important;
    margin-left: 0.35rem;
  }

  /* Reducir espacio de la sección de estadísticas en móvil */
  .stats.section {
    padding: 1.5rem 0 !important;
  }

  /* Menos espacio entre stats y la sección siguiente en móvil */
  .about.section {
    padding-top: 2.5rem !important;
  }

  /* Optimizar espacio de metadatos del proyecto */
  .project-meta-pro {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    padding: 1.5rem 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .meta-item {
    padding: 0.75rem !important;
    margin: 0 !important;
  }

  .meta-item__key {
    font-size: 0.8rem !important;
    margin-bottom: 0.25rem !important;
  }

  .meta-item__value {
    font-size: 0.9rem !important;
  }

  /* Flecha indicadora para scroll - sticky en cada proyecto */
  .scroll-indicator {
    position: sticky;
    bottom: 2rem;
    left: 2rem;
    width: fit-content;
    margin-left: 2rem;
    margin-top: -3rem;
    z-index: 100;
    animation: bounce 2s infinite;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }

  .scroll-indicator.hidden {
    opacity: 0;
  }

  .scroll-indicator i {
    font-size: 2.5rem;
    color: #FFA500;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
  }

  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-15px);
    }
    60% {
      transform: translateY(-10px);
    }
  }

  /* Estadísticas en horizontal en móvil - menos espacio */
  .stats__container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    gap: 0.5rem !important;
    padding: 1.25rem 0.75rem !important;
  }

  .stat-item {
    flex: 1;
    min-width: 0;
  }

  .stats__number {
    font-size: 2rem !important;
  }

  .stats__description {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
  }

  /* Optimizar espacio de información del proyecto */
  .core-values {
    padding: 2rem 1rem !important;
  }

  .core-values .grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  .value-item {
    padding: 1rem !important;
    margin: 0 !important;
  }

  .value-item h3 {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
  }

  .value-item p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }

  /* Testimonios responsive */
  .testimonials__container {
    padding: 0 60px;
  }

  .slider__btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .testimonial-card {
    max-width: 100%;
    padding: 2rem 1.5rem;
    left: 0;
    margin-left: 0;
  }

  .testimonial__text {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .stats__number {
    font-size: 1.75rem !important;
  }

  .stats__description {
    font-size: 0.7rem !important;
  }

  .testimonials__container {
    padding: 0 50px;
  }

  .slider__btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .testimonial-card {
    padding: 1.5rem 1rem;
  }

  .testimonial__text {
    font-size: 0.95rem;
  }
}

/* ========================================
   Hint en lightbox: desliza a la derecha para más fotos (todas las resoluciones)
   ======================================== */
.glightbox-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.75);
  color: #FFA500;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  pointer-events: none;
  animation: glightboxHintFade 4s ease-out forwards;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.glightbox-scroll-hint i {
  font-size: 1rem;
}
@keyframes glightboxHintFade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

/* WhatsApp flotante: tamaño reducido 50px en toda la web */
.whatsapp-flotante {
  width: 50px !important;
  height: 50px !important;
}
.whatsapp-flotante img {
  width: 100%;
  height: 100%;
}

/* ========================================
   10. REDISENO OBRAS (UX/UI 2026-02-23)
   ======================================== */

.obras-showcase .container {
  max-width: 1240px;
}

.obras-showcase__intro {
  max-width: 780px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.obras-showcase__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: #ffd978 !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.obras-showcase__title {
  margin-bottom: 0.8rem;
  color: #ffffff !important;
  font-family: var(--font-montserrat);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.2;
  text-wrap: balance;
}

.obras-showcase__description {
  margin: 0 auto;
  color: #d9d9d9 !important;
  line-height: 1.65;
  max-width: 68ch;
}

.obras-showcase .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 1.55rem !important;
  padding: 0.4rem 0 0 !important;
}

.obras-showcase .project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.96) 0%, rgba(22, 22, 22, 0.98) 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.obras-showcase .project-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.14);
}

.obras-showcase .project-card:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
}

.obras-showcase .project-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto !important;
  min-height: 220px;
  object-fit: cover;
  object-position: center center !important;
  background: #0f0f0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: none !important;
}

.obras-showcase .project-card__overlay {
  position: static !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 1.15rem !important;
  background: transparent !important;
}

.obras-showcase .project-card__title {
  margin: 0 0 0.35rem;
  color: #ffffff !important;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.35;
  text-shadow: none !important;
}

.obras-showcase .project-card__subtitle {
  margin: 0;
  color: #cfcfcf !important;
  font-size: 0.9rem;
  line-height: 1.35;
  text-shadow: none !important;
}

.obras-showcase .project-card__icon-gallery {
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  background: rgba(212, 175, 55, 0.12);
  color: #ffd978 !important;
}

.obras-showcase .project-card__icon {
  font-size: 1.1rem;
  line-height: 1;
}

.obras-showcase .project-card--static {
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .obras-showcase__intro {
    margin-bottom: 1.5rem;
  }

  .obras-showcase .project-grid {
    gap: 1.2rem !important;
  }

  .obras-showcase .project-card__img {
    min-height: 205px;
  }
}

/* ========================================
   11. TARJETAS PROYECTOS DESTACADOS (INDEX)
   ======================================== */

.projects-featured .projects__gallery {
  gap: 1.3rem;
}

.projects-featured .project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.96) 0%, rgba(22, 22, 22, 0.98) 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.projects-featured .project-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.14);
}

.projects-featured .project-card:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
}

.projects-featured .project-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto !important;
  min-height: 205px;
  object-fit: cover;
  object-position: center center !important;
  background: #0f0f0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: none !important;
}

.projects-featured .project-card__overlay {
  position: static !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1rem 1.1rem !important;
  background: transparent !important;
}

.projects-featured .project-card__title {
  margin: 0 0 0.32rem;
  color: #ffffff !important;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.34;
  text-shadow: none !important;
}

.projects-featured .project-card__subtitle {
  margin: 0;
  color: #cfcfcf !important;
  font-size: 0.9rem;
  line-height: 1.3;
  text-shadow: none !important;
}

.projects-featured .project-card__icon-gallery {
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  background: rgba(212, 175, 55, 0.12);
  color: #ffd978 !important;
}

@media screen and (max-width: 768px) {
  .projects-featured .projects__gallery {
    gap: 1.1rem !important;
  }

  .projects-featured .project-card__img {
    min-height: 200px;
  }
}

/* ========================================
   CLS: reservar espacio en #empresa (LCP)
   Evita salto de layout al cargar imagen/fuentes
   ======================================== */
section.about#empresa .image-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-dark-gray, #1a1a1a);
}
section.about#empresa .about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Header logo: margen blanco interno de 3px */
.nav__logo {
  display: inline-flex;
  align-items: center;
}

.nav__logo img {
  background: #ffffff;
  padding: 3px;
  border-radius: 4px;
  box-sizing: border-box;
}
