/* =============================================
   TAPICERÍA ENYA — Styles
   Architecture: Variables → Reset → Base → Layout → Components → Sections → Responsive
   ============================================= */

/* ─── VARIABLES ─── */
:root {
  /* Palette — blue & white brand */
  --color-primary: #0b2545;
  --color-primary-light: #13315c;
  --color-accent: #1b6ec2;
  --color-accent-light: #3a8fe2;
  --color-accent-soft: rgba(27, 110, 194, 0.08);
  --color-cream: #f4f7fb;
  --color-cream-dark: #e8eef6;
  --color-white: #ffffff;
  --color-text: #0b2545;
  --color-text-secondary: #4a6280;
  --color-text-light: #8096ad;
  --color-border: #d4dee9;
  --color-border-light: #e8eef6;

  /* Functional */
  --color-whatsapp: #25d366;
  --color-facebook: #1877f2;
  --color-instagram: #e4405f;
  --color-google: #fbbc05;

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1140px;
  --container-padding: 1.25rem;
  --header-height: 64px;

  /* Borders & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 8px 30px rgba(11, 37, 69, 0.1);
  --shadow-xl: 0 16px 48px rgba(11, 37, 69, 0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;
}

/* ─── RESET ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 600;
}

/* ─── BASE / TYPOGRAPHY ─── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}
h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}
h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-accent-soft);
  border-radius: 100px;
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-desc {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ─── COMPONENTS: Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(27, 110, 194, 0.3);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  box-shadow: 0 4px 16px rgba(27, 110, 194, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--color-white);
  background: transparent;
}
.btn-outline-light:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-small {
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
}

/* ─── COMPONENTS: Cards base ─── */

/* ─── HEADER ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-normal) ease;
}

.site-header.scrolled {
  border-bottom-color: var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1001;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-light);
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.2rem;
  background: var(--color-accent);
  color: var(--color-white) !important;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
}

.nav-cta:hover {
  background: var(--color-accent-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  -webkit-transform: rotate(-45deg) translate(5px, -5px);
  -moz-transform: rotate(-45deg) translate(5px, -5px);
  -ms-transform: rotate(-45deg) translate(5px, -5px);
  -o-transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-3xl))
    var(--container-padding) var(--space-3xl);
  background: none;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      115deg,
      rgba(50, 133, 221, 0.52) 0%,
      rgba(11, 37, 69, 0.28) 35%,
      rgba(194, 18, 18, 0.12) 100%
    ),
    url("/img/sofa-vista.jpg") center center / cover no-repeat;
  transform: scale(1.06);
  animation: heroKenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
  -webkit-animation: heroKenBurns 18s ease-in-out infinite alternate;
  -webkit-transform: scale(1.06);
  -moz-transform: scale(1.06);
  -ms-transform: scale(1.06);
  -o-transform: scale(1.06);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(245, 248, 252, 0.78) 0%,
    rgba(245, 248, 252, 0.84) 42%,
    rgba(245, 248, 252, 0.94) 100%
  );
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 80%,
      rgba(27, 110, 194, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(11, 37, 69, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 767px) {
  .hero::before {
    background-position: center 35%;
    animation-duration: 14s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 80%,
      rgba(27, 110, 194, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(11, 37, 69, 0.04) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 680px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(27, 110, 194, 0.08);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 100px;
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s var(--ease-out) both;
}

.hero-title {
  margin-bottom: var(--space-lg);
  animation: fadeInDown 0.8s var(--ease-out) 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInDown 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-3xl);
  animation: fadeInDown 0.8s var(--ease-out) 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  animation: fadeInDown 0.8s var(--ease-out) 0.4s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

/* ─── SERVICES ─── */
.services {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.service-card {
  padding: var(--space-2xl);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

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

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 0.12;
}

#servicio-hogar::before {
  background-image: url("/img/Mueble-Hogar.jpg");
}

#servicio-auto::before {
  background-image: url("/img/Tapiceria-carro.jpg");
}

#servicio-nautica::before {
  background-image: url("/img/Tapiceria-Yate.jpg");
}

#servicio-restauracion::before {
  background-image: url("/img/Restauración.jpg");
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.service-title {
  margin-bottom: var(--space-sm);
}

.service-desc {
  font-size: 0.92rem;
  margin-bottom: var(--space-lg);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.service-list li {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  padding-left: var(--space-lg);
  position: relative;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ─── ABOUT ─── */
.about {
  padding: var(--space-5xl) 0;
  background: var(--color-cream);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-cream-dark), #c8d6e8);
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  height: 100%;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.about-experience-badge {
  position: absolute;
  bottom: -16px;
  right: 16px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.experience-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.experience-text {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.9;
}

.about-content .section-tag {
  display: inline-block;
}

.about-text {
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
}

.about-feature svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

/* ─── PROCESS ─── */
.process {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.process-connector {
  display: none;
}

.process-step {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-cream);
  border-radius: var(--radius-lg);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.4;
  margin-bottom: var(--space-sm);
}

.step-title {
  margin-bottom: var(--space-sm);
}

.step-desc {
  font-size: 0.9rem;
  max-width: 280px;
  margin: 0 auto;
}

/* ─── REVIEWS ─── */
.reviews {
  padding: var(--space-5xl) 0;
  background: var(--color-cream);
}

.reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--color-google);
}

.reviews-score {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.review-card {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.review-stars {
  color: var(--color-google);
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.review-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.review-avatar {
  width: 40px;
  height: 40px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.review-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}

.review-source {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.reviews-cta {
  text-align: center;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  padding: var(--space-5xl) 0;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(27, 110, 194, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  text-align: center;
}

.cta-title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-text {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ─── CONTACT ─── */
.contact {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.contact-item {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.contact-item p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--color-accent);
}

.contact-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) ease;
}

.social-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: var(--color-whatsapp);
}
.social-whatsapp:hover {
  background: var(--color-whatsapp);
  color: white;
}

.social-facebook {
  background: rgba(24, 119, 242, 0.1);
  color: var(--color-facebook);
}
.social-facebook:hover {
  background: var(--color-facebook);
  color: white;
}

.social-instagram {
  background: rgba(228, 64, 95, 0.1);
  color: var(--color-instagram);
}
.social-instagram:hover {
  background: var(--color-instagram);
  color: white;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 350px;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.footer-logo .logo-name {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-logo .logo-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  margin-bottom: var(--space-md);
  font-size: 0.78rem;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--duration-fast) ease;
}

.footer-col a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--duration-fast) ease;
}

.footer-social a:hover {
  color: var(--color-accent-light);
}

/* ─── WHATSAPP FLOATING ─── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  background: var(--color-whatsapp);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all var(--duration-normal) var(--ease-out);
}

.whatsapp-float:hover {
  width: auto;
  border-radius: 28px;
  padding: 0 var(--space-xl) 0 var(--space-lg);
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-label {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-whatsapp);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-right: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-float:hover .whatsapp-label {
  opacity: 1;
}

.whatsapp-float:hover .whatsapp-label {
  max-width: 120px;
  opacity: 1;
}

@keyframes whatsappPulse {
  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),
      0 0 0 12px rgba(37, 211, 102, 0.1);
  }
}

.whatsapp-float {
  animation: whatsappPulse 3s ease-in-out infinite;
  -webkit-animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  animation: none;
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--color-white);
  border-top: 1px solid var(--color-border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: var(--space-lg) var(--container-padding);
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cookie-content p {
  font-size: 0.82rem;
  line-height: 1.6;
}

.cookie-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ─── GALLERY ─── */
.gallery {
  padding: var(--space-5xl) 0;
  background: var(--color-cream);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.gallery-filter {
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  transition: all var(--duration-fast) ease;
  cursor: pointer;
}

.gallery-filter:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.gallery-filter.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  transition: all var(--duration-normal) var(--ease-out);
}

.gallery-item.hidden {
  display: none;
}

.gallery-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    var(--color-cream-dark),
    var(--color-cream)
  );
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 69, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.gallery-thumb:hover .gallery-overlay,
.gallery-thumb:focus-visible .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  padding: var(--space-lg);
}

.gallery-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.gallery-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.gallery-caption {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-light);
}

.gallery-note {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-light);
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(11, 37, 69, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.8rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
  z-index: 10;
}

.lightbox-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: all var(--duration-fast) ease;
  z-index: 10;
}

.lightbox-prev {
  left: var(--space-md);
}
.lightbox-next {
  right: var(--space-md);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  width: calc(100% - 3rem);
  max-height: calc(100vh - 6rem);
}

.lightbox-image-area {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.lightbox-placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
  text-align: center;
  padding: var(--space-xl) var(--space-md) 0;
  color: white;
}

.lightbox-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-light);
  margin-bottom: var(--space-xs);
  display: block;
}

.lightbox-title {
  font-size: 1.2rem;
  color: white;
  margin-bottom: var(--space-xs);
}

.lightbox-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-sm);
}

.lightbox-counter {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── MODALS ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 37, 69, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  display: none;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.modal.active {
  display: flex;
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-xl) var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.2rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
}

.modal-close:hover {
  background: var(--color-cream);
  color: var(--color-primary);
}

.modal-body {
  padding: var(--space-xl);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-body h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  font-size: 0.88rem;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.modal-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ─── REVEAL ANIMATIONS ─── */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── BODY LOCK (when menu or modal open) ─── */
body.menu-open,
body.modal-open {
  overflow: hidden;
}

/* ─── RESPONSIVE ─── */

/* Mobile: up to 767px */
@media (max-width: 767px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--color-white);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-2xl);
    text-align: center;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .nav-cta {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
    z-index: 1200;
  }

  .header-logo {
    z-index: 1200;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .hero-stats {
    gap: var(--space-lg);
  }

  .hero-stat-divider {
    height: 28px;
  }

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

  .service-list {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .whatsapp-float {
    bottom: 88px; /* above cookie banner */
  }

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

  .gallery-filters {
    gap: 6px;
  }

  .gallery-filter {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
  }

  .lightbox-prev {
    left: var(--space-sm);
  }
  .lightbox-next {
    right: var(--space-sm);
  }

  body.menu-open .site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
    transition: none;
  }
}

/* Tablet: 768px – 1023px */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

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

  .about-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .about-features {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .reviews-grid .review-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
  }

  .footer-top {
    grid-template-columns: 1fr 2fr;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-actions {
    flex-shrink: 0;
  }

  .modal {
    border-radius: var(--radius-xl);
    margin: auto;
    max-height: 80vh;
  }

  .modal-overlay {
    align-items: center;
    padding: var(--space-xl);
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    .service-card {
      padding: var(--space-xl) var(--space-lg);
    }

    .service-list {
      grid-template-columns: 1fr;
      gap: 6px;
      padding-top: var(--space-md);
      border-top: 1px solid var(--color-border-light);
    }

    .service-list li {
      font-size: 0.78rem;
    }

    .service-desc {
      font-size: 0.85rem;
    }
  }

  .service-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
  }

  .service-list li {
    font-size: 0.78rem;
  }

  .service-desc {
    font-size: 0.85rem;
  }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-grid .review-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Print */
@media print {
  .site-header,
  .whatsapp-float,
  .cookie-banner {
    display: none;
  }

  body {
    font-size: 12pt;
  }
}
