/* LentesDigitales.css */
.digital-lenses-page {
  font-family: "GeneralSans", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f0f2f5;
  width: 100%;
  overflow-x: hidden;
}

.digital-lenses-page * {
  box-sizing: border-box;
}

/* Hero Section Refined */
.digital-hero {
  position: relative;
  background:
    linear-gradient(rgba(100, 100, 100, 0.7), rgba(80, 80, 80, 0.8)),
    url("/img/pexels-designecologist-975668.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 20px;
  /* Reduced from 120px */
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 60px),
    50% 100%,
    0 calc(100% - 60px)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.digital-hero .container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-badge,
.section-accent-badge {
  display: inline-block;
  background: #421515;
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 25px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(66, 21, 21, 0.2);
}

.section-accent-badge {
  margin-bottom: 40px;
}

.digital-hero h1 {
  font-size: 4rem;
  margin-bottom: 10px; /* Reducido de 25px */
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1; /* Agregado para reducir espacio vertical de línea */
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.95;
  font-weight: 300;
}

.franklin-logo-main {
  max-width: 420px;
  width: 90%;
  height: auto;
  margin-bottom: 35px;
}

/* Section Styling */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px; /* Reducido padding superior para acercar a la sección anterior */
}

.section-title {
  text-align: center;
  margin-top: 40px; /* Reducido de 80px */
  margin-bottom: 30px;
  /* Reduced from 50px */
}

.section-accent {
  color: #421515;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}

.section-title h2 {
  font-size: 2.75rem;
  color: #1a1a1a;
  margin-bottom: 25px;
  line-height: 1.2;
  font-weight: 800;
  /* Strengthened */
}

.title-underline {
  width: 80px;
  height: 4px;
  background: #421515;
  margin: 0 auto 40px;
}

/* Tech Features - Elegant Grid */

.tech-intro-box {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  margin: 0 auto 60px;
  /* Centered */
  max-width: 900px;
  /* Compact width for better readability */
  border: 1px solid #eef0f2;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.tech-card {
  position: relative;
  padding: 40px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* Sombra un poco más definida */
  transition: all 0.4s ease;
  border: 1px solid #f0f2f4;
  overflow: hidden;
  text-align: center;
}

.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: #421515;
  transition: height 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(66, 21, 21, 0.08);
}

.tech-card:hover::before {
  height: 100%;
}

.tech-card h3 {
  color: #1a1a1a;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.card-icon {
  color: #421515;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.tech-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Product Slider - Swiper Integration */
.product-showcase-section {
  background-color: #f0f2f5;
}

.product-showcase {
  padding-top: 60px; /* Suficiente para despejar la punta del clip-path del hero */
  padding-bottom: 20px; 
}

.product-showcase .section-title {
  margin-top: 10px; /* Reduce notablemente el espacio después de la punta del hero */
}

.product-slider-container {
  width: 100%;
  padding: 20px 0; /* Ajustado */
  position: relative;
}

.productSwiper {
  padding: 40px 10px 80px !important; /* Aumentado padding inferior para separar puntos */
  margin: -40px -10px !important;
  overflow: visible !important;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  width: 100%;
  max-width: 450px; /* Evita que ocupe todo el ancho en escritorio */
  margin: 0 auto; /* Centra la tarjeta en su slide */
  border: 1px solid #f0f2f4;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  flex: 1;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(66, 21, 21, 0.1);
  border-color: #421515;
}

.product-card h3 {
  font-size: 1.6rem;
  color: #421515;
  margin-bottom: 20px;
  font-weight: 700;
}

.product-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
}

/* Swiper Navigation Custom */
.swiper-button-next,
.swiper-button-prev {
  color: #421515 !important;
  background: white;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
  font-weight: 900;
}

.swiper-pagination-bullet-active {
  background: #421515 !important;
}

.product-item {
  display: flex;
  height: auto;
  padding: 0;
  margin: 0;
}

/* CTA Section Branded */
.digital-cta {
  background: #f0f2f5;
  /* Removed red, matching brand grey */
  color: #1a1a1a;
  /* Dark text */
  text-align: center;
  padding: 40px 20px; /* Reducido de 80px a 40px */
}

.digital-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.digital-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 10px; /* Reducido de 20px a 10px */
  font-weight: 800;
}

.digital-cta p {
  opacity: 0.8;
  margin-top: 0; /* Asegurar que no haya espacio extra arriba */
  margin-bottom: 30px; /* Reducido de 40px para acercar al botón también */
  font-size: 1.1rem;
}

.cta-button {
  background: #421515;
  /* Brand red */
  color: #fff;
  /* White text */
  padding: 18px 45px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(66, 21, 21, 0.2);
}

.cta-button:hover {
  background: #5a1d1d;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(66, 21, 21, 0.3);
}

@media (max-width: 1024px) {
  .digital-hero h1 {
    font-size: 2.8rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .section-title {
    margin-bottom: 60px;
  }

  .product-card {
    width: 85% !important; /* No ocupa todo el ancho */
    max-width: 320px !important; /* Tamaño máximo controlado */
    margin: 0 auto !important; /* Centrado */
    min-height: 320px;
  }

  .product-item {
    justify-content: center !important; /* Centra la tarjeta dentro del slide */
  }

  .productSwiper {
    padding: 40px 5px 100px !important;
    overflow: hidden !important;
  }

  .swiper-pagination {
    margin-top: 50px; /* Aumentado para mayor separación */
    position: relative !important;
    bottom: -10px !important;
  }

  .tech-section {
    padding-bottom: 20px !important; /* Reducido de 60px para acercar al CTA */
  }
}
