/* =================================
   ESTILOS PERSONALIZADOS INDEX
   Archivo CSS para index.html
   ================================= */

/* === TARJETAS DE SERVICIOS === */
.service-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 40px 25px;
  box-shadow: 0 8px 30px rgba(36, 79, 110, 0.15);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #209475 0%, #244f6e 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(36, 79, 110, 0.25);
  border-color: #ffffff;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #209475 0%, #1a7a60 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
}

.service-card .icon::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border: 2px solid #244f6e;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.service-card:hover .icon::after {
  opacity: 0.3;
  transform: scale(1);
}

.service-card .icon i {
  font-size: 35px;
  color: #ffffff;
  transition: all 0.4s ease;
}

.service-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card .title {
  font-size: 20px;
  font-weight: 700;
  color: #244f6e;
  margin-bottom: 20px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-card:hover .title {
  color: #209475;
}

.service-card .description {
  color: #666666;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.service-card .btn {
  background: linear-gradient(135deg, #244f6e 0%, #1e3f56 100%);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.service-card .btn:hover {
  background: linear-gradient(135deg, #209475 0%, #1a7a60 100%);
  transform: scale(1.05);
  color: #ffffff;
}

/* === TARJETAS DE CONSTRUCCIÓN === */
.card-item {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(36, 79, 110, 0.15);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

.card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(32, 148, 117, 0.1), transparent);
  transition: left 0.6s ease;
}

.card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(36, 79, 110, 0.25);
}

.card-item:hover::before {
  left: 100%;
}

.card-item .card-bg {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin: 20px;
}

.card-item .card-bg img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.4s ease;
  border-radius: 15px;
}

.card-item:hover .card-bg img {
  transform: scale(1.05);
}

.card-item .card-body {
  padding: 20px;
}

.card-item .card-title {
  font-size: 22px;
  font-weight: 700;
  color: #244f6e;
  margin-bottom: 15px;
  line-height: 1.3;
  position: relative;
}

.card-item .card-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #8c8d8d;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.card-item:hover .card-title::after {
  width: 80px;
}

.card-item p {
  color: #666666;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 0;
}

/* === TARJETAS DE PROYECTOS === */
.portfolio-content {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(36, 79, 110, 0.15);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(32, 148, 117, 0.05) 0%, rgba(36, 79, 110, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(36, 79, 110, 0.25);
  text-decoration: none;
  color: inherit;
}

.portfolio-content:hover::before {
  opacity: 1;
}

.portfolio-content .carousel {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.portfolio-content .carousel-item img {
  height: 250px;
  object-fit: cover;
  transition: all 0.4s ease;

  width: 100%;
}

.portfolio-content:hover .carousel-item img {
  transform: scale(1.03);
}

.portfolio-info {
  padding: 25px;
  position: relative;
}

.portfolio-info h4 {
  font-size: 20px;
  font-weight: 700;
  color: #244f6e;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.portfolio-content:hover .portfolio-info h4 {
  color: #f7f8f8;
}

.portfolio-info p {
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

/* === RESPONSIVIDAD === */
@media (max-width: 768px) {
  .service-card {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .service-card .icon {
    width: 70px;
    height: 70px;
  }

  .service-card .icon i {
    font-size: 30px;
  }

  .service-card .title {
    font-size: 18px;
  }

  .card-item .card-body {
    padding: 15px;
  }

  .card-item .card-title {
    font-size: 19px;
  }

  .portfolio-content .carousel-item img {
    height: 250px;
    min-height: 250px;
  }

  .portfolio-info {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .service-card {
    padding: 25px 15px;
  }

  .card-item .card-bg {
    margin: 15px;
  }

  .card-item .card-bg img {
    height: 180px;
  }

  .portfolio-content .carousel-item img {
    height: 280px;
    min-height: 280px;
  }

  .portfolio-info {
    padding: 15px;
    text-align: center;
  }

  .portfolio-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .portfolio-info p {
    font-size: 13px;
    margin-bottom: 15px;
  }
}

/* === MEDIA QUERY ADICIONAL PARA PANTALLAS MUY PEQUEÑAS === */
@media (max-width: 480px) {
  .portfolio-content .carousel-item img {
    height: 300px;
    min-height: 300px;
  }
  
  .portfolio-content {
    margin-bottom: 25px;
  }
  
  .portfolio-info {
    padding: 12px;
  }
  
  .portfolio-info h4 {
    font-size: 16px;
    line-height: 1.3;
  }
  
  .portfolio-info p {
    font-size: 12px;
  }
}

/* === MEJORAS PARA CARRUSEL EN MÓVILES === */
@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 8%;
    opacity: 0.9;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 25px;
    height: 25px;
  }
}

/* === NUEVAS SECCIONES === */

/* Tarjetas de Tipos de Proyectos */
.service-type-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(36, 79, 110, 0.1);
}

.service-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(36, 79, 110, 0.2) !important;
  border-color: #209475;
}

.service-type-card .icon-wrapper {
  transition: transform 0.3s ease;
}

.service-type-card:hover .icon-wrapper {
  transform: scale(1.1);
}

/* Proceso de Trabajo */
.process-step {
  position: relative;
}

.process-step .step-number {
  position: relative;
  z-index: 2;
}

.process-step .badge {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(32, 148, 117, 0.3);
}

/* Responsividad para nuevas secciones */
@media (max-width: 768px) {
  .service-type-card {
    margin-bottom: 20px;
  }
  
  .process-step {
    margin-bottom: 30px;
  }
  
  #cta-proyectos .d-flex {
  flex-direction: column;
  gap: 15px !important;
  align-items: center; /* centra los hijos horizontalmente en columna */
  }
  
  #cta-proyectos .btn {
  width: 100%;
  max-width: 300px;
  margin: 0 auto; /* asegura centrado aún sin align-items */
  display: inline-flex; /* para centrar el contenido interno */
  justify-content: center;
  }
}

/* =================================
   SLIDER 3D COVERFLOW
   Efecto deslizante con profundidad
   ================================= */

:root {
  --primary-slider: #209475;
  --white: #ffffff;
  --bg-slider: #f5f5f5;
}

/* Contenedor principal del slider */
#tranding {
  padding: 4rem 0;
  background: var(--bg-slider);
}

@media (max-width:1440px) {
  #tranding {
    padding: 7rem 0;
  }
}

#tranding .tranding-slider {
  height: 38rem;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
  touch-action: pan-y pinch-zoom; /* Mejora el touch en móviles */
}

@media (max-width:768px) {
  #tranding .tranding-slider {
    height: 38rem;
    touch-action: pan-y pinch-zoom;
  }
}

@media (max-width:500px) {
  #tranding .tranding-slider {
    height: 35rem;
    padding: 1.5rem 0;
    touch-action: pan-y pinch-zoom;
  }
}

/* Slide individual */
.tranding-slide {
  width: 26rem;
  height: 32rem;
  position: relative;
  will-change: transform; /* Optimiza para animaciones */
  transform: translateZ(0); /* Hardware acceleration */
}

@media (max-width:768px) {
  .tranding-slide {
    width: 24rem !important;
    height: 30rem !important;
  }
  .tranding-slide .tranding-slide-img img {
    width: 24rem !important;
    height: 30rem !important;
  }
}

@media (max-width:500px) {
  .tranding-slide {
    width: 22rem !important;
    height: 28rem !important;
  }
  .tranding-slide .tranding-slide-img img {
    width: 22rem !important;
    height: 28rem !important;
  }
}

.tranding-slide .tranding-slide-img img {
  width: 26rem;
  height: 32rem;
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateZ(0); /* Hardware acceleration */
  backface-visibility: hidden; /* Suaviza transiciones 3D */
}

/* Contenido superpuesto */
.tranding-slide .tranding-slide-content {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateZ(0);
}

@media (max-width:768px) {
  .tranding-slide-content {
    padding: 1.2rem;
  }
}

@media (max-width:500px) {
  .tranding-slide-content {
    padding: 1rem;
  }
}

.tranding-slide-content .project-price {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--white);
  background: rgba(32, 148, 117, 0.9);
  padding: 0.4rem 0.8rem;
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 1.2rem;
}

@media (max-width:768px) {
  .tranding-slide-content .project-price {
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
  }
}

.tranding-slide-content .tranding-slide-content-bottom {
  color: var(--white);
}

.tranding-slide-content-bottom h4 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--white);
  line-height: 1.2;
}

@media (max-width:768px) {
  .tranding-slide-content-bottom h4 {
    font-size: 1.6rem;
  }
}

@media (max-width:500px) {
  .tranding-slide-content-bottom h4 {
    font-size: 1.4rem;
  }
}

.tranding-slide-content-bottom p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width:768px) {
  .tranding-slide-content-bottom p {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

@media (max-width:500px) {
  .tranding-slide-content-bottom p {
    font-size: 1rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

.project-rating {
  padding-top: 0.8rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.rating {
  display: flex;
  gap: 0.2rem;
}

.rating i {
  color: var(--primary-slider);
  font-size: 1.4rem;
}

/* Ocultar sombras por defecto de Swiper */
.swiper-slide-shadow-left,
.swiper-slide-shadow-right {
  display: none;
}

/* Controles del slider */
.tranding-slider-control {
  position: relative;
  bottom: 0;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10;
}

/* Asegurar visibilidad en pantallas grandes */
@media (min-width: 1025px) {
  .tranding-slider-control {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(32, 148, 117, 0.1);
  }
  
  /* Debugging: hacer el contenedor más visible temporalmente */
  .tranding-slider-control {
    min-height: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 768px) {
  .tranding-slider-control {
    margin-top: 2rem;
    padding: 1rem;
    max-width: 300px;
  }
}

/* Contenedor de botones de navegación */
.tranding-slider-control .slider-navigation {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Específico para pantallas grandes */
@media (min-width: 1025px) {
  .tranding-slider-control .slider-navigation {
    display: flex !important;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .tranding-slider-control .slider-navigation {
    gap: 2.5rem;
  }
}

.tranding-slider-control .swiper-button-prev,
.tranding-slider-control .swiper-button-next {
  position: static !important;
  background: var(--white);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(32, 148, 117, 0.2);
  margin: 0 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  visibility: visible !important;
  opacity: 1 !important;
}

/* Específico para pantallas grandes */
@media (min-width: 1025px) {
  .tranding-slider-control .swiper-button-prev,
  .tranding-slider-control .swiper-button-next {
    width: 3.5rem;
    height: 3.5rem;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
  }
}

@media (max-width:768px) {
  .tranding-slider-control .swiper-button-prev,
  .tranding-slider-control .swiper-button-next {
    width: 2.8rem;
    height: 2.8rem;
  }
}

.tranding-slider-control .swiper-button-prev:hover,
.tranding-slider-control .swiper-button-next:hover {
  background: var(--primary-slider);
  border-color: var(--primary-slider);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(32, 148, 117, 0.3);
}

.tranding-slider-control .swiper-button-prev i,
.tranding-slider-control .swiper-button-next i {
  font-size: 1.4rem;
  color: #222224;
  transition: all 0.3s ease;
}

@media (max-width:768px) {
  .tranding-slider-control .swiper-button-prev i,
  .tranding-slider-control .swiper-button-next i {
    font-size: 1.2rem;
  }
}

.tranding-slider-control .swiper-button-prev:hover i,
.tranding-slider-control .swiper-button-next:hover i {
  color: white;
}

/* Ocultar los iconos por defecto de Swiper */
.tranding-slider-control .swiper-button-prev::after,
.tranding-slider-control .swiper-button-next::after {
  content: '' !important;
  display: none !important;
}

/* Sobrescribir estilos por defecto de Swiper */
.tranding-slider .swiper-button-prev,
.tranding-slider .swiper-button-next {
  display: none !important;
}

/* Solo mostrar nuestros botones personalizados */
.tranding-slider-control .swiper-button-prev,
.tranding-slider-control .swiper-button-next {
  display: flex !important;
}

.tranding-slider-control .swiper-pagination {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.5rem !important;
  bottom: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Específico para pantallas grandes */
@media (min-width: 1025px) {
  .tranding-slider-control .swiper-pagination {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 768px) {
  .tranding-slider-control .swiper-pagination {
    gap: 0.4rem !important;
  }
}

.tranding-slider-control .swiper-pagination .swiper-pagination-bullet {
  background: rgba(32, 148, 117, 0.4) !important;
  width: 10px !important;
  height: 10px !important;
  margin: 0 !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
  border-radius: 50% !important;
}

@media (max-width:768px) {
  .tranding-slider-control .swiper-pagination .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
  }
}

.tranding-slider-control .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--primary-slider) !important;
  transform: scale(1.3) !important;
  box-shadow: 0 2px 8px rgba(32, 148, 117, 0.4) !important;
}

/* Título de la sección */
.slider-section-heading {
  font-size: 3rem;
  color: var(--primary-slider);
  padding: 2rem 0;
  text-align: center;
  font-weight: 700;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .slider-section-heading {
    font-size: 2.4rem;
  }
}

/* =================================
   GALERÍA DE CARTAS 3D FLOTANTES
   Efecto de cartas apiladas y flotantes
   ================================= */

.cards-gallery {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
  position: relative;
}

.cards-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(32, 148, 117, 0.1) 0%, transparent 50%);
}

.gallery-container {
  position: relative;
  perspective: 1200px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cards-stack {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  width: 280px;
  height: 380px;
  background: white;
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
}

.floating-card:hover {
  transform: translateY(-20px) rotateX(10deg);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.15);
}

.floating-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Posicionamiento específico de cada carta */
.floating-card:nth-child(1) {
  transform: translateX(-200px) translateY(-50px) rotateY(15deg) rotateZ(-5deg);
  z-index: 1;
}

.floating-card:nth-child(2) {
  transform: translateX(-100px) translateY(20px) rotateY(8deg) rotateZ(-2deg);
  z-index: 2;
}

.floating-card:nth-child(3) {
  transform: translateX(0px) translateY(-20px) rotateY(0deg) rotateZ(0deg);
  z-index: 3;
}

.floating-card:nth-child(4) {
  transform: translateX(100px) translateY(30px) rotateY(-8deg) rotateZ(2deg);
  z-index: 2;
}

.floating-card:nth-child(5) {
  transform: translateX(200px) translateY(-40px) rotateY(-15deg) rotateZ(5deg);
  z-index: 1;
}

/* Contenido de cada carta */
.card-image {
  width: 100%;
  height: 60%;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.floating-card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 1.5rem;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #244f6e;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.card-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(32, 148, 117, 0.9);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 3;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-stars i {
  color: #f39c12;
  font-size: 0.9rem;
}

.rating-value {
  font-size: 0.9rem;
  color: #244f6e;
  font-weight: 600;
}

/* Responsividad */
@media (max-width: 768px) {
  .cards-stack {
    height: 400px;
    flex-direction: column;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
  }
  
  .floating-card {
    position: relative !important;
    transform: none !important;
    width: 260px;
    height: 340px;
    margin: 0 auto;
  }
  
  .floating-card:hover {
    transform: translateY(-10px) !important;
  }
}

/* Optimizaciones adicionales para móviles */
@media (max-width: 768px) {
  .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }
  
  .swiper-slide {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }
  
  /* Suavizar el efecto coverflow en móvil */
  .tranding-slider .swiper-slide {
    transform-style: preserve-3d;
    backface-visibility: hidden;
  }
}

/* =================================
   POSICIONAMIENTO TEXTO HERO
   Solo cambia ubicación del texto
   ================================= */

/* Mover texto del carousel más a la izquierda */
#custom-hero .carousel-caption {
  left: 30% !important;  /* Más hacia la derecha */
  right: auto !important;
  text-align: left !important;
  max-width: 500px;
}

/* Responsive para tablets */
@media (max-width: 992px) {
  #custom-hero .carousel-caption {
    left: 30% !important;
  }
}

/* Responsive para móviles - centrado */
@media (max-width: 768px) {
  #custom-hero .carousel-caption {
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    max-width: 90%;
  }
}

/* =================================
   BOTONES HERO - LLAMADA A LA ACCIÓN
   ================================= */

.hero-buttons {
  margin-top: 25px;
}

.btn-hero {
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero.btn-primary {
  background: linear-gradient(135deg, #209475 0%, #1a7a60 100%);
  border: 2px solid #209475;
  color: white;
}

.btn-hero.btn-primary:hover {
  background: linear-gradient(135deg, #1a7a60 0%, #156b50 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(32, 148, 117, 0.4);
  border-color: #1a7a60;
  color: white;
}

.btn-hero.btn-secondary {
  background: linear-gradient(135deg, #244f6e 0%, #1e3f56 100%);
  border: 2px solid #244f6e;
  color: white;
}

.btn-hero.btn-secondary:hover {
  background: linear-gradient(135deg, #1e3f56 0%, #1a3649 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(36, 79, 110, 0.4);
  border-color: #1e3f56;
  color: white;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .hero-buttons {
    text-align: center;
    margin-top: 20px;
  }
  
  .btn-hero {
    padding: 10px 25px;
    font-size: 0.9rem;
    margin: 5px;
    display: inline-block;
    width: auto;
  }
}

@media (max-width: 480px) {
  .btn-hero {
    padding: 10px 20px;
    font-size: 0.8rem;
    display: block;
    width: 100%;
    margin: 8px 0;
  }
}
