/* Profloor Theme - Additional Styles */

/* Hero Slider */
.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 900px;
  min-height: 600px;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  top: 0;
  left: 0;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-image: var(--bg-desktop);
}

/* Responsive Background Images */
@media (max-width: 980px) {
  .hero-slide-bg {
    background-image: var(--bg-tablet);
  }
}

@media (max-width: 600px) {
  .hero-slide-bg {
    background-image: var(--bg-mobile);
  }
}

.hero-slide-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(14, 50, 100, 0.5) 0%,
    rgba(14, 50, 100, 0.3) 100%
  );
  z-index: 1;
}

.hero-slide-content {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-slide-text {
  max-width: 700px;
  padding: 40px;
  text-align: center;
  color: #ffffff;
}

.hero-slide-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-slide-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-slide-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-slide-buttons .btn {
  font-size: 1rem;
  padding: 14px 32px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-slide-buttons .btn-primary {
  background: var(--color-secondary);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
  border-radius: 10px !important;
}

.hero-slide-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.4);
}

.hero-slide-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 10px !important;

}

.hero-slide-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Slider Controls */
.hero-slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.2);
}

.hero-dot:hover {
  border-color: #ffffff;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  font-size: 0;
}

.hero-slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
}

.hero-slider-prev {
  left: 32px;
}

.hero-slider-next {
  right: 32px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-slider-wrapper {
    height: 70vh;
    min-height: 450px;
  }

  .hero-slide-text {
    padding: 30px 20px;
  }

  .hero-slide-title {
    margin-bottom: 16px;
  }

  .hero-slide-description {
    margin-bottom: 24px;
    font-size: 1rem;
  }

  .hero-slider-dots {
    bottom: 20px;
    gap: 8px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .hero-slider-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-slider-prev {
    left: 16px;
  }

  .hero-slider-next {
    right: 16px;
  }
}

@media (max-width: 600px) {
  .hero-slider-wrapper {
    height: 60vh;
    min-height: 350px;
  }

  .hero-slide-text {
    padding: 20px 16px;
  }

  .hero-slide-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }

  .hero-slide-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .hero-slide-buttons {
    gap: 12px;
    flex-direction: column;
  }

  .hero-slide-buttons .btn {
    width: 100%;
    padding: 12px 24px;
  }

  .hero-slider-arrow {
    width: 36px;
    height: 36px;
    display: none;
  }

  .hero-slider-dots {
    bottom: 16px;
    gap: 6px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }
}

/* Hero Slider — variante compacta (categorías, segmentos, colecciones) */
.hero-slider-section--compact .hero-slider-wrapper {
  height: 50vh;
  max-height: 560px;
  min-height: 380px;
}

.hero-slider-section--compact .hero-slide-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 16px;
}

.hero-slider-section--compact .hero-slide-description {
  margin-bottom: 24px;
}

.hero-slider-section--compact .hero-slider-dots {
  bottom: 24px;
}

@media (max-width: 768px) {
  .hero-slider-section--compact .hero-slider-wrapper {
    height: 42vh;
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  .hero-slider-section--compact .hero-slider-wrapper {
    height: 38vh;
    min-height: 280px;
  }

  .hero-slider-section--compact .hero-slide-title {
    font-size: 1.6rem;
  }
}

/* Typography */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 40px;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
}

/* Sections */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.section-head p {
  color: var(--color-text-light);
  margin: 0;
}

/* Hero */
.hero {
  padding: 100px 24px;
  text-align: center;
}

.hero h1 {
  color: var(--color-primary);
  margin-bottom: 20px;
}

.nosotros-section {
  padding: 100px 0 80px;
  background: #f8f9fb;
}

.nosotros-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.nosotros-text {
  max-width: 600px;
}

.section-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--color-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nosotros-text h2 {
  font-size: 40px;
  line-height: 1.05;
  margin: 0 0 24px;
}

.nosotros-text p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 32px;
}

.nosotros-video-wrapper {
  display: grid;
  place-items: center;
}

.nosotros-video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 35px 80px rgba(9, 30, 66, 0.12);
}

.nosotros-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.nosotros-video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* Productos Section */
.productos-section {
  padding: 100px 0 50px;
  background: var(--color-bg);
}

.productos-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.4fr;
  gap: 48px;
  align-items: start;
}

.productos-left.sticky-top {
  position: sticky;
  top: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.productos-left .section-label {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.productos-left h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--color-primary);
  margin: 0 0 12px;
}

.productos-left p {
  color: var(--color-text-light);
  max-width: 460px;
  margin-bottom: 18px;
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 18px;
  border-radius: 18px;
  align-items: flex-start;
}

.product-card h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.product-card-media {
  display: block;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--color-primary), rgba(14,50,100,0.6));
  border-radius: 12px;
  object-fit: cover;
}

.product-card p { margin: 0; color: var(--color-text-light); }

.product-card-cta {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
}

.product-card-cta:hover {
  color: var(--color-secondary);
}

/* Hover effect: subtle shadow on card hover */
.product-card {
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.product-card:hover {
  box-shadow: 0 22px 50px rgba(9, 30, 66, 0.08);
}

.product-card a.product-card-link { display: block; width: 100%; }
.product-card a.product-card-link img { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }

@media (max-width: 960px) {
  .nosotros-inner {
    grid-template-columns: 1fr;
  }

  .nosotros-video {
    min-height: 320px;
  }
}

/* Mobile: productos stack (left above right) */
@media (max-width: 960px) {
  .productos-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 20px 0;  
  }

  .productos-left.sticky-top {
    position: static;
    top: auto;
  }

  .product-card-media,
  .product-card a.product-card-link img {
    height: 180px;
  }
}

/* Segmentos section */
.segmentos-section {
  padding: 100px 0;
  background: var(--color-bg);
}

.segmentos-header h2 {
  font-size: 40px;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 36px;
}

.segmentos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.segment-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(9, 30, 66, 0.04);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.segment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(9, 30, 66, 0.09);
}

.segment-card-image {
  width: 100%;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.segment-card-body {
  padding: 28px;
}

.segment-card-title {
  margin: 0 0 18px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.segment-card-body p {
  margin: 0;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 22px;
}

.segment-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segment-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: rgba(14, 50, 100, 0.08);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease;
  font-size: 14px !important;
}

.segment-pill:hover {
  background: rgba(14, 50, 100, 0.16);
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .segmentos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 50px 24px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .nosotros-section {
    padding: 50px 0;
  }

  .nosotros-text h2 {
    font-size: 2rem;
  }

  .productos-section {
    padding: 50px 0;
  }

  .segmentos-section {
    padding: 50px 0;
  }
}

.hero p {
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

/* Nuestros Trabajos — carrusel de proyectos destacados */
.trabajos-section {
  padding: 100px 0;
  background: var(--color-bg-light);
}

.trabajos-layout {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.trabajos-col-left {
  flex: 1 1 320px;
  max-width: 380px;
}

.trabajos-col-left h2 {
  font-size: 40px;
  color: var(--color-primary);
  margin: 0 0 16px;
}

.trabajos-col-left p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.trabajos-col-right {
  flex: 2 1 500px;
  min-width: 0;
  width: 100%;
}

.trabajos-swiper-mask {
  overflow: hidden;
}

.trabajos-swiper {
  overflow: visible;
}

.trabajos-swiper .swiper-wrapper {
  align-items: stretch;
}

.trabajo-slide {
  height: auto;
}

.trabajo-slide-inner {
  padding: 10px;
  height: 100%;
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, opacity;
}

.trabajo-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.trabajo-card:hover {
  box-shadow: var(--shadow-md);
}

.trabajo-card-img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 325 / 200;
  overflow: hidden;
  background: var(--color-bg-light);
}

.trabajo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.trabajo-card:hover .trabajo-card-img img {
  transform: scale(1.06);
}

.trabajo-card-body {
  padding: 20px;
}

.trabajo-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
}

.trabajos-pagination {
  position: relative !important;
  width: 100%;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.trabajos-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: var(--color-primary);
  opacity: 0.3;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin: 0 !important;
}

.trabajos-pagination .swiper-pagination-bullet-active {
  width: 20px;
  border-radius: 3.5px;
  opacity: 1;
}

@media (max-width: 900px) {
  .trabajos-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }

  .trabajos-col-left {
    max-width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 768px) {
  .trabajos-section {
    padding: 50px 0;
  }
}

/* Partners — marquee de logos */
.partners-section {
  display: none;
  padding: 80px 0;
  background: var(--color-bg);
}

.section-head-center {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head-center h2 {
  font-size: 40px;
  color: var(--color-primary);
  margin-top: 12px;
}

.partners-marquee {
  overflow: hidden;
  margin-top: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: partners-scroll 30s linear infinite;
}

.partners-track img {
  height: 64px;
  width: auto;
  object-fit: contain;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 22px;
}

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .partners-section {
    padding: 50px 0;
  }

  .partners-track {
    gap: 16px;
  }

  .partners-track img {
    height: 44px;
    padding: 10px 16px;
  }
}

/* CTA Banner */
.cta-banner-section {
  display: none;
  padding: 80px 0 100px;
}

.cta-banner {
  background: linear-gradient(160deg, var(--color-primary) 0%, #163f7a 100%);
  border-radius: 32px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(30px, 4vw, 48px);
  color: #fff;
  max-width: 720px;
  margin: 0 auto;
}

.cta-banner p {
  margin: 20px auto 36px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-banner .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-banner .btn-Cta {
  background: #fff;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .cta-banner-section {
    padding: 50px 0;
  }

  .cta-banner {
    padding: 56px 24px;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

/* Archive Page */
.archive-title {
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(14, 50, 100, 0.05) 0%, transparent 100%);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 50px 24px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
