/* ==========================================================================
   SERCOTUR - Impeccable Craft & Design System
   Architecture: Deep Blueprint Slate (#0F172A), Copper Amber (#D97706), Concrete (#F8FAFC)
   Typography: Outfit (Headings) + Plus Jakarta Sans (Body) + JetBrains Mono (Technical)
   ========================================================================== */

:root {
  /* Color Tokens */
  --clr-bg: #f8fafc;
  --clr-bg-alt: #f1f5f9;
  --clr-surface: #ffffff;
  --clr-surface-dark: #0b1120;
  --clr-surface-navy: #1e293b;
  --clr-surface-card: rgba(30, 41, 59, 0.82);
  
  --clr-primary: #0f172a;
  --clr-primary-light: #1e293b;
  
  --clr-accent: #d97706;          /* AA Accessible Amber Accent */
  --clr-accent-bright: #f59e0b;
  --clr-accent-hover: #b45309;
  --clr-accent-glow: rgba(217, 119, 6, 0.28);
  --clr-accent-light: #fef3c7;
  
  --clr-text-main: #0f172a;
  --clr-text-muted: #475569;
  --clr-text-light: #94a3b8;
  --clr-text-inverse: #f8fafc;
  
  --clr-border: #e2e8f0;
  --clr-border-dark: #334155;
  --clr-blueprint-line: rgba(217, 119, 6, 0.15);

  --clr-whatsapp: #25d366;
  --clr-whatsapp-hover: #1da851;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevations & Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 20px -2px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 40px -4px rgba(15, 23, 42, 0.18);
  --shadow-accent: 0 8px 24px -4px rgba(217, 119, 6, 0.4);

  /* Radius System */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  /* Motion & Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Keyboard Focus Rings */
:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Touch Targets Standard (Min 44px) */
button, a, input, select, textarea {
  min-height: 44px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Elements */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent-bright);
  background-color: rgba(217, 119, 6, 0.12);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(217, 119, 6, 0.3);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 900;
  color: var(--clr-primary);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  max-width: 700px;
  line-height: 1.7;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.85rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: normal;
  user-select: none;
  min-height: 48px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--clr-accent);
  color: #ffffff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background-color: var(--clr-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(217, 119, 6, 0.5);
}

.btn-secondary {
  background-color: var(--clr-surface-navy);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background-color: var(--clr-primary);
  border-color: var(--clr-accent);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.btn-outline:hover {
  background-color: var(--clr-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  min-height: 40px;
}

/* Header & Glass Navigation */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  z-index: 10001; /* Above header */
}

.scroll-progress-bar {
  height: 100%;
  background-color: var(--clr-accent);
  width: 0%;
  transition: width 0.1s ease-out;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(11, 17, 32, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.brand-logo img {
  height: 54px;
  width: auto;
  max-width: 200px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--clr-accent);
  object-fit: contain;
  background-color: #ffffff;
  padding: 2px;
}

.brand-info {
  display: flex;
  flex-direction: column;
    gap: 0.5rem;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--clr-accent-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--clr-accent-bright);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-accent-bright);
  transition: width var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 94vh;
  padding-top: 140px;
  padding-bottom: 95px;
  background-color: var(--clr-surface-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(217, 119, 6, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 119, 6, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.24) 0%, rgba(11, 17, 32, 0) 70%);
  filter: blur(90px);
  pointer-events: none;
}

.hero-grid-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-title span {
  color: var(--clr-accent-bright);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.225rem;
  color: var(--clr-text-light);
  margin-bottom: 2.5rem;
  max-width: 630px;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.badge-icon {
  width: 26px;
  height: 26px;
  color: var(--clr-accent-bright);
  flex-shrink: 0;
}

/* Hero Showcase Card */
.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--clr-surface-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
}

.hero-card-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--clr-surface-dark);
  color: var(--clr-accent-bright);
  border: 1px solid var(--clr-accent);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.hero-card-footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-card-footer h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-card-footer p {
  font-size: 0.875rem;
  color: var(--clr-text-light);
}

/* STATS BAR */
.stats-bar {
  background-color: var(--clr-surface-navy);
  border-y: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--clr-accent-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--clr-text-light);
  font-weight: 600;
}

/* COMMON SECTIONS */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--clr-bg-alt);
}

.section-dark {
  background-color: var(--clr-surface-dark);
  color: #ffffff;
}

.section-header {
  margin-bottom: 3.75rem;
}

/* Reveal Observer */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* QUIÉNES SOMOS SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

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

.about-experience-badge {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background-color: var(--clr-surface-dark);
  color: #ffffff;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--clr-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 290px;
}

.about-experience-badge .badge-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--clr-accent-bright);
  line-height: 1;
}

.about-experience-badge .badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.about-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.25rem 0;
}

.about-checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--clr-primary);
  font-size: 0.975rem;
}

.about-checklist-item svg {
  width: 22px;
  height: 22px;
  color: var(--clr-accent);
  flex-shrink: 0;
}

/* SERVICIOS SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.25rem;
}

.service-card {
  background-color: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal), border-radius 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-accent);
  border-radius: 40px;
}

.service-card:hover::before {
  inset: 12px;
  border-color: rgba(217, 119, 6, 0.5);
  border-radius: 28px;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  z-index: 1;
  pointer-events: none;
}

@keyframes flareShine {
  0% { left: -150%; }
  100% { left: 200%; }
}

.service-card:hover::after {
  animation: flareShine 1s ease-in-out;
}

.service-icon {
  width: 64px;
  height: 64px;
  background-color: var(--clr-accent-light);
  color: var(--clr-accent-hover);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 1.75rem;
  transition: transform var(--transition-bounce);
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1.1) rotate(4deg);
  }
  50% {
    transform: scale(1.2) rotate(0deg);
  }
}

.service-card:hover .service-icon {
  background-color: var(--clr-accent);
  color: #ffffff;
  animation: iconPulse 2s ease-in-out infinite;
}

/* Touch device active (long-press) state */
@media (hover: none) and (pointer: coarse) {
  .service-card {
    -webkit-tap-highlight-color: transparent;
  }
  
  .service-card:active {
    transform: scale(1.03);
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
  }
  
  .service-card:active .service-icon {
    background-color: var(--clr-accent);
    color: #ffffff;
    transform: scale(1.05);
  }
}

/* Skeleton Loading Animation */
@keyframes skeletonPulse {
  0% { background-color: var(--clr-border); }
  50% { background-color: var(--clr-surface-dark); }
  100% { background-color: var(--clr-border); }
}

.service-card.loading {
  pointer-events: none;
}

.service-card.loading .service-icon,
.service-card.loading .service-title,
.service-card.loading .service-description,
.service-card.loading .service-link {
  color: transparent !important;
  background-color: var(--clr-border);
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  border: none;
  background-image: none !important;
  box-shadow: none;
}

.service-card.loading .service-icon svg,
.service-card.loading .service-link svg {
  display: none;
}

.service-card.loading .service-title {
  height: 28px;
  width: 70%;
  margin-bottom: 0.85rem;
}

.service-card.loading .service-description {
  height: 72px;
  width: 100%;
  margin-bottom: 2rem;
}

.service-card.loading .service-link {
  height: 24px;
  width: 40%;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clr-primary);
  margin-bottom: 0.85rem;
}

.service-description {
  color: var(--clr-text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  line-height: 1.65;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: 0.85rem;
  color: var(--clr-accent-hover);
}
  margin: 0 auto;
}

.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 56px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--clr-accent);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.75rem;
  color: var(--clr-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 1.5rem;
}

/* TESTIMONIALS CARDS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.testimonial-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
    gap: 0.5rem;
  justify-content: space-between;
}

.testimonial-stars {
  color: var(--clr-accent-bright);
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--clr-text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--clr-surface-navy);
  color: var(--clr-accent-bright);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.testimonial-info h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--clr-primary);
}

.testimonial-info p {
  font-size: 0.85rem;
  color: var(--clr-text-light);
}

/* GALERÍA DE PROYECTOS SECTION */
.gallery-filters {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.filter-btn .filter-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background-color: var(--clr-bg-alt);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  color: var(--clr-text-main);
  transition: background-color var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--clr-primary);
  color: #ffffff;
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
}

.filter-btn.active .filter-count {
  background-color: var(--clr-accent);
  color: #ffffff;
}

.gallery-swiper {
  padding-bottom: 3rem; /* Space for pagination */
  overflow: hidden;
}

.gallery-swiper .swiper-pagination-bullet-active {
  background-color: var(--clr-accent);
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
  color: var(--clr-accent);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--clr-surface-dark);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.45) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
    gap: 0.5rem;
  justify-content: flex-end;
  padding: 1.85rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.gallery-zoom-icon {
  align-self: flex-start;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--clr-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0.75rem;
  box-shadow: var(--shadow-accent);
}

/* ENHANCED LIGHTBOX MODAL WITH THUMBNAIL STRIP */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 1050px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
    gap: 0.5rem;
  align-items: center;
}

.lightbox-header-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  margin-bottom: 1rem;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--clr-accent-bright);
}

.lightbox-img-wrapper {
  width: 100%;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  background-color: #000000;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1.25rem;
  text-align: center;
  color: #ffffff;
}

.lightbox-caption h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--clr-accent-bright);
}

.lightbox-caption p {
  color: var(--clr-text-light);
  font-size: 0.975rem;
}

.lightbox-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  overflow-x: auto;
  max-width: 100%;
  padding: 0.5rem 0;
}

.lightbox-thumb {
  width: 60px;
  height: 45px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.lightbox-thumb.active, .lightbox-thumb:hover {
  opacity: 1;
  border-color: var(--clr-accent-bright);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.25rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lightbox-close:hover {
  color: var(--clr-accent-bright);
}

.lightbox-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.lightbox-nav:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
}

.lightbox-prev {
  left: -75px;
}

.lightbox-next {
  right: -75px;
}

/* CONTACT & COTIZADOR SECTION */
.contact-grid {
    grid-template-columns: 1fr;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-card {
  background-color: var(--clr-surface-navy);
  border-radius: var(--radius-lg);
  padding: 3.25rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

.contact-card .section-title {
  color: #ffffff;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
    gap: 0.5rem;
  gap: 2.25rem;
  margin: 2.75rem 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
}

.contact-info-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(217, 119, 6, 0.16);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: var(--clr-accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.contact-info-text p, .contact-info-text a {
  color: var(--clr-text-light);
  font-size: 1.025rem;
  transition: color var(--transition-fast);
}

.contact-info-text a:hover {
  color: var(--clr-accent-bright);
}

/* Form System */
.quote-form-wrapper {
  background-color: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 3.25rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-lg);
}

.quote-form-wrapper.reveal-on-scroll {
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-form-wrapper.reveal-on-scroll.revealed {
  transform: translateY(0);
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--clr-primary);
  margin-bottom: 0.6rem;
}

.form-control {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--clr-border);
  background-color: var(--clr-bg);
  color: var(--clr-text-main);
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--clr-accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.16);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 998;
  width: 50px;
  height: 50px;
  background-color: var(--clr-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--clr-primary-hover);
  transform: translateY(-3px);
}

/* FLOATING WHATSAPP WIDGET */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background-color: var(--clr-whatsapp);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition-bounce), background-color var(--transition-fast);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--clr-whatsapp-hover);
}

.whatsapp-online-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #ffffff;
  border: 3px solid var(--clr-whatsapp);
  border-radius: 50%;
}

/* FOOTER */
.footer {
  background-color: var(--clr-surface-dark);
  color: #ffffff;
  padding-top: 5.5rem;
  padding-bottom: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
}

.footer-brand p {
  color: var(--clr-text-light);
  margin-top: 1.35rem;
  font-size: 0.975rem;
  max-width: 340px;
  line-height: 1.65;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
    gap: 0.5rem;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--clr-text-light);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--clr-accent-bright);
}

.footer-bottom {
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--clr-text-light);
}

.footer-bottom-creator {
  color: var(--clr-accent-bright);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-creator:hover {
  color: #ffffff;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-grid-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }


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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

.contact-info-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .quote-form-wrapper {
    padding: 1.5rem;
  }
  .contact-info-wrapper {
    padding: 2rem;
  }
  .contact-info-item {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .contact-card {
    padding: 1.5rem;
  }
}

iframe {
  max-width: 100%;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .contact-card {
    padding: 1.25rem;
  }
  .quote-form-wrapper {
    padding: 1.25rem;
  }
}

/* UX Improvements */
.btn {
  padding: 1rem 2rem;
  letter-spacing: 0.02em;
}

.form-control {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
}

.form-control::placeholder {
  color: #94a3b8; /* Tailwind slate-400 */
}

.form-control:hover {
  border-color: #cbd5e1; /* Tailwind slate-300 */
}

.form-control:focus {
  border-color: var(--clr-accent);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--clr-accent);
  transition: width 0.3s ease;
}

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

.service-card {
  padding: 3rem 2.5rem;
}

.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-checklist-item {
  transition: transform 0.2s ease;
}
.about-checklist-item:hover {
  transform: translateX(4px);
}

.faq-question:hover {
  background-color: var(--clr-bg-alt);
}
.faq-item {
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(217, 119, 6, 0.4);
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}
.quote-form-grid .form-group:nth-child(3),
.quote-form-grid .form-group:nth-child(4),
.quote-form-grid button {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .quote-form-grid {
    grid-template-columns: 1fr;
  }
}

.stat-item {
  transition: transform 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {

@keyframes subtlePulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

  transition: transform 0.3s ease, border-color 0.3s ease;
}

}

.whatsapp-float {
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  animation: floatPulse 3s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(-5deg);
  background-color: #128c7e;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

@keyframes floatPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.footer {
  border-top: 2px solid rgba(255, 255, 255, 0.05);
}

.footer-links a:hover {
  transform: translateX(3px);
  display: inline-block;
  color: var(--clr-accent-bright);
}

/* Additional subtle global enhancements */
::selection {
  background-color: var(--clr-accent);
  color: white;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--clr-surface-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lazy-image {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.lazy-image.loaded {
  opacity: 1;
}

/* =========================================
   DISEÑO MÓVIL FIRST DE GOOGLE (MATERIAL 3)
   ========================================= */

/* 1. Touch Targets (Min 48px) */
@media (max-width: 768px) {
  button, a, input, select, textarea, .btn {
    min-height: 48px;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    border-radius: 100px; /* Fully rounded buttons are a Google pattern */
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.5rem 1rem;
    width: 100%;
  }
}

/* 2. Side Navigation Drawer (Material Design Pattern) */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--clr-surface); /* Light or Dark surface */
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1000;
  }

  /* When nav menu is active */
  .nav-menu.active {
    transform: translateX(0);
  }

  /* Scrim/Backdrop */
  .nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Color adjustments for nav menu on light surface */
  .nav-menu .nav-link {
    color: var(--clr-text-main);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
  }
  .nav-menu .nav-link.active {
    color: var(--clr-accent-hover);
    background-color: var(--clr-accent-glow);
  }
}

/* 3. Material Cards & Spacing */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0; /* Reduced padding on mobile */
  }
  
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .service-card, .testimonial-card, .quote-form-wrapper {
    padding: 1.5rem;
    border-radius: 24px; /* Material 3 large cards */
  }

  .gallery-item {
    border-radius: 24px;
  }
  
  /* Material Floating Action Button (FAB) */
  .whatsapp-float {
    bottom: 24px;
    right: 24px;
    width: 56px; /* Material FAB size */
    height: 56px;
    border-radius: 16px; /* Material 3 rounded square FAB */
  }

  .back-to-top {
    bottom: 96px;
    right: 24px;
    width: 48px;
    height: 48px;
  }
}

/* 4. Fluid Typography Base for Mobile */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  .section-subtitle {
    font-size: 1rem;
  }
}

html {
  overflow-x: hidden;
}

/* Prevent long text from overflowing */
p, a, h1, h2, h3, h4, h5, h6, span {
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .nav-menu {
    right: auto;
  }
}

@media (max-width: 768px) {
  .nav-menu li {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-actions .btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.2rem;
  }
  .brand-tag {
    font-size: 0.65rem;
  }
  .brand-logo img {
    height: 36px;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  text-align: center;
    width: 48px;
    height: 48px;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .about-experience-badge {
    bottom: -45px;
    right: 15px;
    max-width: 250px;
    padding: 1rem 1.25rem;
  }
  
  .about-experience-badge .badge-num {
    font-size: 2rem;
  }
  
  .about-experience-badge .badge-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .about-grid {
    gap: 5rem;
  }
}

.contact-card, .quote-form-wrapper {
  max-width: 100%;
  overflow-x: hidden;
}
