/* ==========================================================================
   MASAMA — CSS Premium & Rediseño Parallax
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

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

:root {
  --negro: #030303;
  --carbon: #0d0d0d;
  --grafito: #161616;
  --dorado: #C9A84C;
  --dorado-claro: #D4B85A;
  --dorado-tenue: rgba(201, 168, 76, 0.15);
  --dorado-gloria: rgba(201, 168, 76, 0.4);
  --blanco: #F0EBE3;
  --blanco-dim: rgba(240, 235, 227, 0.6);
  --blanco-faint: rgba(240, 235, 227, 0.06);
  --glass: rgba(13, 13, 13, 0.65);
  --glass-border: rgba(240, 235, 227, 0.08);
  
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* ——— General Base ——— */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--negro);
  color: var(--blanco);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-color: var(--negro);
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ——— Grain Overlay ——— */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* ——— Sticky Header (Top Bar) ——— */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(3,3,3,0.9) 0%, rgba(3,3,3,0.4) 60%, transparent 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240, 235, 227, 0.03);
  transition: background-color 0.4s var(--ease);
}

.top-bar.scrolled {
  background-color: rgba(3, 3, 3, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.top-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}

.top-logo:hover {
  transform: scale(1.02);
  filter: brightness(1.25) drop-shadow(0 0 15px rgba(201,168,76,0.35));
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-tag {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blanco-dim);
  padding: 6px 14px;
  border: 1px solid var(--blanco-faint);
  border-radius: 2px;
}

.btn-header-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dorado);
  border: 1px solid var(--dorado);
  padding: 8px 18px;
  transition: all 0.4s var(--ease);
}

.btn-header-contact:hover {
  background-color: var(--dorado);
  color: var(--negro);
  box-shadow: 0 0 15px var(--dorado-tenue);
}

.btn-header-contact svg {
  transition: transform 0.3s var(--ease);
}

.btn-header-contact:hover svg {
  transform: translateX(3px);
}

/* ——— Sticky Side Navigation ——— */
.side-nav {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 1000;
}

.side-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 20px;
  color: var(--blanco-dim);
  position: relative;
}

.side-nav .nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--blanco-dim);
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
}

.side-nav .nav-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}

.side-nav .nav-link:hover .nav-label {
  opacity: 1;
  transform: translateX(0);
}

.side-nav .nav-link:hover .nav-dot,
.side-nav .nav-link.active .nav-dot {
  background-color: var(--dorado);
  transform: scale(1.8);
  box-shadow: 0 0 10px var(--dorado-gloria);
}

.side-nav .nav-link.active .nav-label {
  opacity: 0.7;
  transform: translateX(0);
  color: var(--dorado);
}

/* ——— Scroll Progress Bar ——— */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: transparent;
  z-index: 1100;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--dorado);
  box-shadow: 0 0 10px rgba(201,168,76,0.6);
  transition: width 0.1s linear;
}

/* ——— Background Watermark (Scrollytelling letter tracking) ——— */
.watermark-bg {
  position: fixed;
  bottom: -40px;
  left: -50px;
  font-family: var(--font-display);
  font-size: 20vw;
  font-weight: 700;
  font-style: italic;
  line-height: 0.8;
  color: rgba(240, 235, 227, 0.015);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ——— Common Typography & Headings ——— */
.section-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--dorado);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-subtitle::before {
  content: '';
  width: 24px;
  height: 1px;
  background-color: var(--dorado);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 500;
  color: var(--blanco);
  margin-bottom: 24px;
  line-height: 1.1;
  text-wrap: balance;
}

/* ——— Buttons ——— */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--negro);
  background-color: var(--dorado);
  border: 1px solid var(--dorado);
  padding: 16px 36px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--blanco);
  transition: left 0.4s var(--ease);
  z-index: -1;
}

.btn-primary:hover {
  color: var(--negro);
  border-color: var(--blanco);
  box-shadow: 0 0 20px rgba(201,168,76,0.3);
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary svg {
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover svg {
  transform: translateY(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blanco);
  border: 1px solid var(--blanco-faint);
  background-color: transparent;
  padding: 16px 36px;
  transition: all 0.4s var(--ease);
}

.btn-secondary:hover {
  border-color: var(--dorado);
  color: var(--dorado);
  box-shadow: 0 0 15px rgba(240, 235, 227, 0.05);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* ——— 1. Hero Section (Parallax visual focus) ——— */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 8%;
  overflow: hidden;
}

.hero-bg-parallax {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  will-change: transform;
  filter: brightness(0.65) contrast(1.05);
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-bg-parallax {
      animation: hero-parallax-scroll linear forwards;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}

@keyframes hero-parallax-scroll {
  to { transform: translateY(12%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 24px;
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--dorado-tenue);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.05;
  color: var(--blanco);
  margin-bottom: 28px;
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
  color: var(--blanco-dim);
  margin-bottom: 40px;
  max-width: 580px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  color: var(--blanco-dim);
  opacity: 0.8;
}

.mouse-icon {
  width: 24px;
  height: 38px;
  border: 2px solid var(--blanco-dim);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--dorado);
  border-radius: 2px;
  animation: scroll-wheel 1.6s infinite ease-in-out;
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.indicator-text {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ——— 2. Firma Section ——— */
.firma-section {
  position: relative;
  background-color: var(--carbon);
  padding: 120px 0;
  border-bottom: 1px solid var(--blanco-faint);
  z-index: 2;
}

.grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.firma-text-block .text-highlight {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dorado-claro);
  margin-bottom: 24px;
}

.firma-text-block .text-body {
  font-size: 0.85rem;
  line-height: 1.8;
  font-weight: 300;
  color: var(--blanco-dim);
  margin-bottom: 18px;
}

.firma-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background-color: var(--grafito);
  border: 1px solid var(--glass-border);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--dorado);
  transition: height 0.4s var(--ease);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,168,76,0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-card:hover::before {
  height: 100%;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--dorado);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-desc {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--blanco-dim);
  letter-spacing: 0.05em;
}

/* ——— 3. Producciones Section (Introduction) ——— */
.portfolio-intro-section {
  background-color: var(--negro);
  padding: 100px 0 60px 0;
  position: relative;
  z-index: 2;
  text-align: center;
}

.portfolio-intro-section .portfolio-lead {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--blanco-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* ——— Portfolio Gallery (Scrolling Parallax Items) ——— */
.parallax-gallery {
  position: relative;
  z-index: 2;
}

.portfolio-item {
  position: relative;
  height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 10%;
  overflow: hidden;
  border-bottom: 1px solid var(--negro);
}

.portfolio-item-bg {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  will-change: transform;
  filter: brightness(0.4) grayscale(15%);
  transition: filter 0.6s var(--ease);
}

.portfolio-item:hover .portfolio-item-bg {
  filter: brightness(0.55) grayscale(0%);
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .portfolio-item-bg {
      animation: portfolio-parallax-scroll linear forwards;
      animation-timeline: view();
      animation-range: cover;
    }
  }
}

@keyframes portfolio-parallax-scroll {
  from { transform: translateY(-10%); }
  to { transform: translateY(10%); }
}

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(3, 3, 3, 0.8) 100%);
  z-index: 2;
  pointer-events: none;
}

.portfolio-item-content {
  position: relative;
  z-index: 3;
  max-width: 580px;
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .portfolio-item-content {
      animation: reveal-portfolio-text linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 45%;
    }
  }
}

@keyframes reveal-portfolio-text {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.project-tags {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 16px;
}

.portfolio-item .project-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
  color: var(--blanco);
  margin-bottom: 20px;
}

.project-desc-lead {
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--blanco);
  margin-bottom: 16px;
}

.project-desc-body {
  font-size: 0.76rem;
  line-height: 1.8;
  font-weight: 300;
  color: var(--blanco-dim);
}

/* ——— Hotspots on Parallax Canvas ——— */
.hotspots-wrapper {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none; /* Let elements beneath trigger if needed, button overrides */
}

.hotspot-item {
  position: absolute;
  pointer-events: auto;
}

.hotspot-pulse-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--dorado);
  color: var(--negro);
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s var(--ease);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.4);
}

.hotspot-pulse-btn::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--dorado);
  opacity: 0;
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}

.hotspot-pulse-btn:hover {
  background-color: var(--blanco);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.hotspot-tooltip {
  position: absolute;
  left: 45px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  width: 230px;
  background-color: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 16px;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--blanco);
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  pointer-events: none;
}

.hotspot-item:hover .hotspot-tooltip,
.hotspot-pulse-btn:focus + .hotspot-tooltip,
.hotspot-item.active .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Adjust layout for hotspots on left side to prevent overflow */
.hotspot-item[style*="left: 30%"] .hotspot-tooltip,
.hotspot-item[style*="left: 35%"] .hotspot-tooltip,
.hotspot-item[style*="left: 45%"] .hotspot-tooltip {
  left: auto;
  right: 45px;
}

/* ——— 4. Alcance Técnico Section (Services) ——— */
.alcance-section {
  position: relative;
  background-color: var(--negro);
  padding: 120px 0;
  border-bottom: 1px solid var(--blanco-faint);
  z-index: 2;
  text-align: center;
}

.alcance-lead {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--blanco-dim);
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  text-align: left;
}

.service-card {
  background-color: var(--carbon);
  border: 1px solid var(--glass-border);
  padding: 45px 35px;
  transition: all 0.4s var(--ease);
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--dorado);
  transition: width 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-card:hover::after {
  width: 100%;
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  color: var(--blanco);
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.78rem;
  line-height: 1.8;
  font-weight: 300;
  color: var(--blanco-dim);
}

/* ——— 5. Contacto Section ——— */
.contacto-section {
  position: relative;
  background-color: var(--carbon);
  padding: 120px 0;
  z-index: 2;
}

.contacto-text-block .contact-info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--blanco-dim);
}

.info-icon {
  font-size: 1.3rem;
  color: var(--dorado);
}

.contacto-form-wrapper {
  background-color: var(--grafito);
  border: 1px solid var(--glass-border);
  padding: 48px;
  position: relative;
}

.contacto-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 2px;
  background-color: var(--dorado);
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blanco-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--negro);
  border: 1px solid var(--glass-border);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--blanco);
  outline: none;
  border-radius: 0;
  transition: all 0.4s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--blanco-dim);
  opacity: 0.3;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--dorado);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.1);
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C9A84C' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 40px;
}

.select-wrapper select option {
  background-color: var(--negro);
  color: var(--blanco);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--negro);
  background-color: var(--dorado);
  border: 1px solid var(--dorado);
  padding: 18px 36px;
  transition: all 0.4s var(--ease);
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: var(--dorado-claro);
  border-color: var(--dorado-claro);
  box-shadow: 0 5px 20px rgba(201, 168, 76, 0.35);
}

.btn-loader {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: var(--negro);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit.loading .btn-loader {
  display: inline-block;
}

.btn-submit.loading span {
  opacity: 0.4;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status {
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  min-height: 22px;
  color: var(--dorado);
  letter-spacing: 0.02em;
}

.form-status.error {
  color: #b07070;
}

/* ——— Footer ——— */
.footer {
  position: relative;
  background-color: var(--negro);
  padding: 60px 0;
  border-top: 1px solid var(--blanco-faint);
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--blanco-dim);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

.footer-links a {
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--dorado);
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */

@media (max-width: 1100px) {
  .grid-two-cols {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .contacto-section .grid-two-cols {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 24px;
  }
  
  .top-bar {
    padding: 0 24px;
    height: 70px;
  }
  
  .top-tag {
    display: none;
  }
  
  .side-nav {
    display: none; /* Hide sticky side dots on mobile */
  }
  
  .hero-section {
    padding: 0 24px;
    text-align: center;
    justify-content: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .firma-section {
    padding: 80px 0;
  }
  
  .stat-card {
    padding: 30px 20px;
  }
  
  .portfolio-item {
    height: auto;
    min-height: 80vh;
    padding: 80px 24px;
  }
  
  .portfolio-item-content {
    max-width: 100%;
  }
  
  .hotspots-wrapper {
    display: none; /* Tooltips might clash on mobile, disabled hotspots in vertical stack */
  }
  
  .alcance-section {
    padding: 80px 0;
  }
  
  .contacto-section {
    padding: 80px 0;
  }
  
  .contacto-form-wrapper {
    padding: 32px 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ——— Custom WebKit Scrollbars ——— */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--negro);
}

::-webkit-scrollbar-thumb {
  background: var(--blanco-faint);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dorado);
}
