/* ============================================
   PowerWindows.net — Design System & Styles
   Paleta: Navy / Blanco / Celeste / Dorado
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy: #0A1628;
  --navy-mid: #1B2D4A;
  --navy-light: #243B5E;
  --blue: #003D8F;
  --blue-hover: #0050B8;
  --sky: #4DA8DA;
  --sky-light: #7CC4E8;
  --gold: #C8A84E;
  --gold-light: #E8D48B;
  --gold-glow: rgba(200, 168, 78, 0.3);
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --gray-100: #E8ECF1;
  --gray-200: #CDD3DC;
  --gray-400: #8B95A5;
  --gray-600: #6B7280;
  --gray-800: #374151;
  --text-dark: #1F2937;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.18);
  --shadow-gold: 0 4px 20px rgba(200, 168, 78, 0.25);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;
  --max-width: 1280px;
  --header-height: 80px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.section-title--light {
  color: var(--white);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--navy-mid));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--blue-hover), var(--blue));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), #D4B85A);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  background: linear-gradient(135deg, #D4B85A, var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200, 168, 78, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200, 168, 78, 0.1);
}

.btn--full { width: 100%; }

.btn svg {
  width: 18px;
  height: 18px;
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition);
  padding: 0.5rem 0;
}

.header--scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.header--scrolled .nav__gold-line {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
  position: relative;
}

.nav__gold-line {
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.nav__logo-img {
  height: 48px;
  width: auto;
  transition: height var(--transition);
}

.header--scrolled .nav__logo-img {
  height: 40px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  width: 60%;
}

.nav__link--active {
  color: var(--gold);
}

.nav__link--active::after {
  width: 60%;
}

.nav__cta {
  margin-left: 1.5rem;
}

.nav__cta .btn {
  padding: 0.6rem 1.6rem;
  font-size: 0.8rem;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  gap: 5px;
}

.nav__hamburger-line {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav__hamburger.is-open .nav__hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__hamburger.is-open .nav__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.is-open .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.nav__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(30px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.nav__mobile-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1.5rem;
}

.nav__mobile-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.nav__mobile-overlay.is-visible .nav__mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile-overlay.is-visible .nav__mobile-link:nth-child(1) { transition-delay: 0.1s; }
.nav__mobile-overlay.is-visible .nav__mobile-link:nth-child(2) { transition-delay: 0.15s; }
.nav__mobile-overlay.is-visible .nav__mobile-link:nth-child(3) { transition-delay: 0.2s; }
.nav__mobile-overlay.is-visible .nav__mobile-link:nth-child(4) { transition-delay: 0.25s; }
.nav__mobile-overlay.is-visible .nav__mobile-link:nth-child(5) { transition-delay: 0.3s; }
.nav__mobile-overlay.is-visible .nav__mobile-link:nth-child(6) { transition-delay: 0.35s; }
.nav__mobile-overlay.is-visible .nav__mobile-link:nth-child(7) { transition-delay: 0.4s; }

.nav__mobile-link:hover {
  color: var(--gold);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease, transform 8s ease;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.85) 0%,
    rgba(10, 22, 40, 0.6) 40%,
    rgba(10, 22, 40, 0.4) 70%,
    rgba(0, 61, 143, 0.3) 100%
  );
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  max-width: 900px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(200, 168, 78, 0.15);
  border: 1px solid rgba(200, 168, 78, 0.3);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.hero__title span {
  background: linear-gradient(135deg, var(--sky-light), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero__scroll-indicator svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

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

/* =========================================
   SERVICES
   ========================================= */
.services {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--off-white);
}

.services__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.service-card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.05);
}

.service-card__img-wrapper {
  overflow: hidden;
  position: relative;
}

.service-card__img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--white));
}

.service-card__body {
  padding: 2rem 2.5rem 2.5rem;
  text-align: center;
}

.service-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card__text {
  color: var(--gray-600);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.service-card__text strong {
  color: var(--navy);
}

/* =========================================
   ABOUT / QUIÉNES SOMOS
   ========================================= */
.about {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__label {
  color: var(--gold);
}

.about__title {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about__title strong {
  font-weight: 800;
}

.about__text {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.about__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.about__stat {
  text-align: center;
}

.about__stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.about__stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.7;
  margin-top: 0.3rem;
}

.about__image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.3) 0%,
    transparent 50%,
    rgba(10, 22, 40, 0.5) 100%
  );
  border-radius: var(--radius-lg);
}

.about__image-wrapper::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(10, 22, 40, 0.6));
  z-index: 1;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.about__gold-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border: 3px solid var(--gold);
  border-radius: var(--radius-md);
  z-index: 2;
  opacity: 0.5;
}

/* =========================================
   PROCESS
   ========================================= */
.process {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.process__header {
  text-align: center;
  margin-bottom: 4rem;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Connector line */
.process__grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--sky), var(--gold));
  opacity: 0.3;
  z-index: 0;
}

.process__item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--gray-100);
}

.process__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.process__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.process__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(77, 168, 218, 0.1), rgba(0, 61, 143, 0.1));
  color: var(--blue);
}

.process__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.process__item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.process__item-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* =========================================
   FOLIADOS GALLERY
   ========================================= */
.gallery {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--navy);
  color: var(--white);
}

.gallery__header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.1);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(10, 22, 40, 0.85));
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}

.gallery__item-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(200, 168, 78, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition);
}

.gallery__item:hover .gallery__item-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery__item-zoom svg {
  width: 20px;
  height: 20px;
  stroke: var(--navy);
  stroke-width: 2.5;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.5rem;
}

.lightbox__close:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* =========================================
   BEFORE / AFTER SLIDER
   ========================================= */
.comparison {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--off-white);
}

.comparison__header {
  text-align: center;
  margin-bottom: 3rem;
}

.comparison__wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: ew-resize;
  user-select: none;
  aspect-ratio: 16/10;
}

.comparison__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison__img--before {
  z-index: 1;
}

.comparison__img--after {
  z-index: 2;
  clip-path: inset(0 0 0 50%);
}

.comparison__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--white);
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.comparison__handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 4;
}

.comparison__handle-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--navy);
}

.comparison__label {
  position: absolute;
  bottom: 1.5rem;
  z-index: 5;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.comparison__label--before {
  left: 1.5rem;
  background: rgba(200, 50, 50, 0.85);
  color: var(--white);
}

.comparison__label--after {
  right: 1.5rem;
  background: rgba(77, 168, 218, 0.9);
  color: var(--white);
}

/* =========================================
   WINDOW TYPES
   ========================================= */
.window-types {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--white);
}

.window-types__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.window-types__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.window-type-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-100);
  transition: all var(--transition);
  cursor: pointer;
  background: var(--white);
}

.window-type-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.window-type-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.window-type-card__icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 1.2;
  fill: none;
}

.window-type-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Color Palette */
.colors__title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
}

.colors__grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.color-swatch {
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch__circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.color-swatch:hover .color-swatch__circle {
  border-color: var(--gold);
}

.color-swatch__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
}

/* =========================================
   PROFESSIONALS
   ========================================= */
.professionals {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
}

.professionals__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.professionals__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(200, 168, 78, 0.15);
  border: 1px solid rgba(200, 168, 78, 0.3);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.professionals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.prof-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  cursor: pointer;
}

.prof-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.prof-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.prof-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  stroke-width: 2;
  fill: none;
}

.prof-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.prof-card__text {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.75;
}

.prof-card__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 0;
}

.prof-card.is-expanded .prof-card__details {
  max-height: 200px;
  margin-top: 1rem;
}

.prof-card__details-text {
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.65;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prof-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.75rem;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.prof-card__toggle:hover {
  color: var(--gold-light);
}

.prof-card__toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.prof-card.is-expanded .prof-card__toggle svg {
  transform: rotate(180deg);
}

/* =========================================
   CONTACT
   ========================================= */
.contact {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--off-white);
}

.contact__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.contact__info {
  padding: 3.5rem 3rem;
  background: linear-gradient(180deg, var(--navy), var(--navy-mid));
  color: var(--white);
}

.contact__info-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact__info-subtitle {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(77, 168, 218, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--sky);
  stroke-width: 2;
  fill: none;
}

.contact__item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact__item-value {
  font-size: 1rem;
  opacity: 0.9;
}

.contact__item-value a {
  color: var(--white);
  transition: color var(--transition-fast);
}

.contact__item-value a:hover {
  color: var(--gold);
}

.contact__whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #25D366 !important;
  font-weight: 600;
}

.contact__whatsapp-link svg {
  width: 18px;
  height: 18px;
  fill: #25D366;
  stroke: none;
}

.contact__emails {
  margin-top: 0.5rem;
}

.contact__emails a {
  display: block;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.contact__map {
  min-height: 500px;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__logo {
  height: 36px;
  width: auto;
  opacity: 0.8;
  filter: brightness(0) invert(1);
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__link {
  font-size: 0.82rem;
  opacity: 0.6;
  transition: all var(--transition-fast);
}

.footer__link:hover {
  opacity: 1;
  color: var(--gold);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.4;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================
   WHATSAPP FAB
   ========================================= */
.fab-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: all var(--transition);
  animation: fab-pulse 2s infinite;
}

.fab-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.fab-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

.fab-whatsapp__tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.fab-whatsapp:hover .fab-whatsapp__tooltip {
  opacity: 1;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .window-types__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .professionals__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Navbar mobile */
  .nav__menu {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile-overlay {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 500px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__scroll-indicator {
    display: none;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__image {
    height: 300px;
  }

  .about__stats {
    justify-content: center;
  }

  /* Process */
  .process__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .process__grid::before {
    display: none;
  }

  /* Gallery - Instagram style */
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }

  .gallery__item {
    border-radius: 0;
  }

  .gallery__item-overlay {
    display: none;
  }

  /* Comparison */
  .comparison__wrapper {
    aspect-ratio: 4/3;
  }

  /* Window Types */
  .window-types__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .colors__grid {
    gap: 1.25rem;
  }

  .color-swatch__circle {
    width: 56px;
    height: 56px;
  }

  /* Professionals */
  .professionals__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__info {
    padding: 2.5rem 2rem;
  }

  .contact__map {
    min-height: 300px;
  }

  /* Footer */
  .footer__content {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero__badge {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
  }

  .about__stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .process__grid {
    grid-template-columns: 1fr;
  }

  .window-types__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .contact__info {
    padding: 2rem 1.5rem;
  }
}
