:root {
  --stone-dark:    #1a1714;
  --stone-mid:     #2c2620;
  --stone-warm:    #3d342b;
  --stone-ash:     #6b5e52;
  --stone-sand:    #b8a898;
  --stone-cream:   #e8ddd0;
  --stone-light:   #f4ede3;
  --accent:        #c8823c;
  --accent-deep:   #a0621e;
  --accent-pale:   #e8b47c;
  --white:         #fdfaf6;

  --font-display:  'Bebas Neue', sans-serif;
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-body:     'Jost', sans-serif;

  --nav-h:         76px;
  --radius:        2px;
  --transition:    0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; font-size: 16px; }
body {
  background: var(--stone-dark);
  color: var(--stone-cream);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: default;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-eyebrow.light { color: var(--accent-pale); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--stone-light);
}
.section-title em { font-style: italic; color: var(--accent-pale); }
.section-title.light { color: var(--white); }

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  z-index: 1000;
  background-image: url('imagenes/index/nav.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 0 0 9999px rgba(12, 9, 7, 0.62),
    0 2px 0 rgba(200,130,60,0.18),
    0 4px 24px rgba(0,0,0,0.5);
  transition: box-shadow var(--transition);
}
#navbar.scrolled {
  box-shadow:
    inset 0 0 0 9999px rgba(10, 7, 5, 0.78),
    0 2px 0 rgba(200,130,60,0.22),
    0 6px 32px rgba(0,0,0,0.65);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-logo-img {
  max-height: 79px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-icon {
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  line-height: 1.3;
  color: var(--stone-light);
}
.logo-text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1em;
  color: var(--accent-pale);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav-links > li > a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-sand);
  transition: color 0.25s;
  padding: 0.25rem 0;
  position: relative;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links > li > a:hover,
.nav-links > li > a.nav-active { color: var(--accent-pale); }
.nav-links > li > a:hover::after,
.nav-links > li > a.nav-active::after { width: 100%; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;           
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 200px;
  background: var(--stone-mid);
  border: 1px solid rgba(200,130,60,0.2);
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  overflow: hidden;
  padding-top: 8px;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 10px;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 0.7rem 1.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--stone-sand);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover {
  background: rgba(200,130,60,0.12);
  color: var(--accent-pale);
  padding-left: 1.6rem;
}

/* En táctil/mobile nunca mover el padding — solo cambio de color */
@media (hover: none), (max-width: 1024px) {
  .dropdown-menu li a:hover,
  .dropdown-menu li a:active,
  .dropdown-menu li a:focus,
  .nav-links.open > li > a:hover,
  .nav-links.open > li > a:active {
    padding-left: 1.2rem !important;
    background: rgba(200,130,60,0.08);
  }
}

.arrow { font-size: 0.65em; vertical-align: middle; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--stone-sand);
  transition: all 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 1rem) clamp(1.5rem, 6vw, 6rem) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s ease, transform 6s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide.leaving {
  opacity: 0;
  transform: scale(1.03);
}


.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10,7,4,0.90) 0%,
    rgba(10,7,4,0.38) 50%,
    rgba(10,7,4,0.18) 100%
  );
  pointer-events: none;
}

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

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  text-shadow: 0 0 12px rgb(0, 0, 0), 0 1px 4px rgb(96, 96, 96);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}
.hero-title .line:nth-child(1) { animation: fadeUp 0.8s 0.5s forwards; }
.hero-title .line:nth-child(2) { animation: fadeUp 0.8s 0.7s forwards; }
.hero-title .line:nth-child(3) { animation: fadeUp 0.8s 0.9s forwards; }
.hero-title .italic { font-style: italic; color: var(--accent-pale); }

.hero-sub {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 1.1s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 1.3s forwards;
}

.hero-dots {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-primary.btn-full { width: 100%; text-align: center; }

.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--stone-sand);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-pale); }

.btn-outline {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: padding-left 0.3s, color 0.3s;
}
.btn-outline:hover { padding-left: 0; color: var(--accent-pale); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s 1.8s forwards;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-ash);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  background: var(--stone-mid);
}

.about-media {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}
.about-img-frame {
  position: absolute;
  inset: 2rem;
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  display: block;
}

video.about-img {
  cursor: default;     
  pointer-events: none; 
}

.about-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 110px; height: 110px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}
.badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}
.badge-label {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

.about-text {
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.about-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--stone-sand);
  margin-bottom: 1rem;
}
.about-body + .btn-outline { margin-top: 1rem; }

.products {
  background: var(--stone-dark);
  padding: clamp(4rem, 8vh, 7rem) clamp(1.5rem, 5vw, 4rem);
}

.products-header {
  max-width: 900px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.products-header .section-title {
  white-space: nowrap;
}
.products-intro {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--stone-ash);
  line-height: 1.7;
}

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

.product-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}
.product-card--wide {
  grid-column: 2 / 3;
}

.card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-card--wide .card-media { aspect-ratio: 4/3; }

.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .card-img {
  transform: scale(1.03); 
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,7,4,0.88) 0%, rgba(10,7,4,0.0) 60%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.2rem 1.4rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .card-overlay { opacity: 1; }

.card-cta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-pale);
  transform: translateY(8px);
  transition: transform var(--transition);
}
.product-card:hover .card-cta { transform: translateY(0); }

.card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: 2;
}
.product-card:hover .card-media::before { transform: translateX(100%); }

.card-info {
  padding: 1.1rem 0.2rem 0.6rem;
  text-align: center;
}
.card-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;       
  font-weight: 400;
  color: var(--stone-light);
  margin-bottom: 0.35rem;
  transition: color 0.3s;
}
.product-card:hover .card-info h3 { color: var(--accent-pale); }
.card-info p {
  font-size: 1rem;         
  color: var(--stone-ash);
  line-height: 1.5;
}

.services {
  background: var(--stone-warm);
  position: relative;
  overflow: hidden;
}
.services::before {
  content: 'SERVICIOS';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.05em;
}

.services-inner {
  padding: clamp(4rem, 8vh, 7rem) clamp(2rem, 5vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 3rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 0 0.5rem;
}

.service-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-dark);
  background: var(--accent);
  border-radius: 50%;
  padding: 12px;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}
.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--stone-dark);
}
.service-item:hover .service-icon {
  background: var(--accent-pale);
  transform: translateY(-3px);
}

.service-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--stone-light);
  line-height: 1.3;
  text-transform: uppercase;
}
.service-item p {
  font-size: 0.88rem;
  color: var(--stone-sand);
  line-height: 1.7;
}

.services-cta {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
.btn-services {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(200,130,60,0.5);
  color: var(--accent-pale);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
}
.btn-services:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.projects {
  background: var(--stone-dark);
  padding: clamp(4rem, 8vh, 7rem) 0 clamp(4rem, 8vh, 7rem) clamp(1.5rem, 5vw, 4rem);
}

.projects-header {
  padding-right: clamp(1.5rem, 5vw, 4rem);
  margin-bottom: 3rem;
  text-align: center;
}
.projects-header .section-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}
.projects-header .section-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  white-space: nowrap;
}

.projects-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 clamp(1.5rem, 5vw, 4rem) 1rem;
}

.proj-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.proj-img {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg,
    hsl(var(--ph), 25%, 20%) 0%,
    hsl(var(--ph), 15%, 30%) 100%
  );
  transition: transform 0.6s;
}
.proj-item:hover .proj-img { transform: scale(1.05); }
 
.proj-img-real {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.proj-item:hover .proj-img-real { transform: scale(1.04); }

.proj-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(8,5,2,0.95) 0%, rgba(8,5,2,0.0) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

.proj-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
}
.proj-location {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-pale);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
  background: var(--stone-mid);
}

.contact-form-wrap {
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.contact-form-wrap .contact-form {
  width: 100%;
  text-align: left;
}

.contact-form { margin-top: 2rem; }

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-ash);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--stone-cream);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--stone-ash); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(200,130,60,0.05);
}
.form-group select option { background: var(--stone-mid); }
.form-group textarea { resize: vertical; }

.form-success {
  display: none;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent-pale);
  text-align: center;
  letter-spacing: 0.05em;
}
.form-success.visible { display: block; }

 
.form-alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 1.4rem;
  text-align: center;
}
.form-alert--success {
  background: rgba(80, 160, 80, 0.15);
  border: 1px solid rgba(80,160,80,0.4);
  color: #7ecb7e;
}
.form-alert--error {
  background: rgba(180, 60, 60, 0.15);
  border: 1px solid rgba(180,60,60,0.4);
  color: #e08080;
}

 
.form-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.contact-map-wrap { display: flex; flex-direction: column; }
.map-container {
  flex: 1;
  min-height: 380px;
  filter: grayscale(80%) sepia(20%) brightness(0.7);
  transition: filter 0.5s;
}
.map-container:hover { filter: grayscale(40%) sepia(10%) brightness(0.85); }

.contact-info {
  background: var(--stone-warm);
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
}
.info-icon { font-size: 1.1rem; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.info-item strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-ash);
  margin-bottom: 0.2rem;
}
.info-item p { font-size: 0.9rem; color: var(--stone-sand); line-height: 1.6; }
 
.info-link {
  display: block;
  font-size: 0.9rem;
  color: var(--stone-sand);
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.25s;
}
.info-link:hover { color: var(--accent-pale); text-decoration: underline; }

.info-link--phone {
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.info-link--phone:last-child { border-bottom: none; }
 
#mensaje {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--stone-sand);
  resize: vertical;
  min-height: 240px;
}
#mensaje::placeholder {
  color: var(--stone-ash);
  opacity: 1;
  white-space: pre-line;
}
 
.footer {
  background: var(--stone-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.footer-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  opacity: 0.15;
  pointer-events: none;
}
 
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(4rem, 8vw, 8rem);
  position: relative;
  z-index: 1;
}
 
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}
 
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-contact-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-ash);
  flex-shrink: 0;
  min-width: 70px;
}
.footer-contact-link {
  font-size: 0.95rem;
  color: var(--stone-sand);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.25s;
}
.footer-contact-link:hover { color: var(--accent-pale); }
.footer-contact-sep {
  color: var(--stone-ash);
  font-size: 0.9rem;
}
 
.footer-social-wrap {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--stone-sand);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.footer-social-link:hover {
  border-color: var(--accent);
  color: var(--accent-pale);
  background: rgba(200,130,60,0.08);
}
.footer-social-link svg {
  flex-shrink: 0;
  opacity: 0.8;
}
 
.footer-designer {
  font-size: 0.75rem;
  color: var(--stone-ash);
  letter-spacing: 0.05em;
  font-style: italic;
  font-family: var(--font-serif);
}
 
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  text-align: right;
}
.footer-logo {
  max-width: 160px;
  height: auto;
  display: block;
}
.footer-tagline {
  font-size: 1rem;
  color: var(--stone-cream);
  font-style: italic;
  font-family: var(--font-serif);
}
 
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.1rem clamp(4rem, 8vw, 8rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.footer-bottom-copy {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--stone-cream);
}
.footer-bottom-sep {
  color: var(--stone-sand);
  opacity: 0.5;
  font-size: 0.88rem;
}
.footer-bottom-designer {
  font-size: 0.88rem;
  color: var(--stone-cream);
  font-style: italic;
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}
 
@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .footer-left {
    align-items: center;
    text-align: center;
  }
  .footer-contact-list { align-items: center; }
  .footer-contact-item {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
  }
  .footer-contact-label { min-width: unset; }
  .footer-social-wrap { justify-content: center; }
  .footer-right {
    align-items: center;
    text-align: center;
  }
  .footer-logo { max-width: 120px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .footer-bottom-sep { display: none; }
}

@media (max-width: 768px) {
  .hero {
    align-items: center;
    justify-content: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-sub { margin: 0 auto 2.5rem; }
  .hero-cta { justify-content: center; }
 
  .contact-info {
    align-items: center;
    text-align: center;
  }
  .info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
  }
  .info-icon { margin-top: 0; }
}
 
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
}
 
.whatsapp-tooltip {
  background: var(--stone-warm);
  color: var(--stone-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 0.6rem 1rem;
  border-radius: 8px 8px 0 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.08);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--stone-warm);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.whatsapp-tooltip.visible {
  opacity: 1;
  transform: translateX(0);
}
 
.whatsapp-circle {
  width: 56px;
  height: 56px;
  background: #4a9068;  
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(74,144,104,0.4);
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
  position: relative;
}
.whatsapp-circle svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
.whatsapp-btn:hover .whatsapp-circle {
  background: #3d7a58;
  transform: scale(1.08);
}
 
.whatsapp-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(74,144,104,0.5);
  animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 480px) {
  .whatsapp-btn { bottom: 1.2rem; right: 1.2rem; }
  .whatsapp-tooltip { display: none; }
}
 
@media (max-height: 800px) {
  .hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    margin-bottom: 0.8rem;
  }
  .hero-eyebrow {
    margin-bottom: 0.6rem;
  }
  .hero-sub {
    margin-bottom: 1.5rem;
  }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
 
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card--wide { grid-column: 1 / 2; } 
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .services-list { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .projects-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(26, 23, 20, 0.98);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open > li { text-align: center; width: 100%; }
  .nav-links.open > li > a { font-size: 1.1rem; display: block; width: 100%; }
  /* Ocultar flecha; el <a> del dropdown es inerte — el submenú recibe clicks normalmente */
  .nav-links.open .arrow { display: none; }
  /* "Productos" se comporta como link normal — cierra el menú y navega a #productos */
  .nav-links.open .dropdown > a {
    display: block !important;
    width: 100% !important;
    pointer-events: auto;
    cursor: pointer;
    color: var(--stone-sand);
  }
  .dropdown-menu {
    position: static;
    /* Anular el transform del desktop inmediatamente, sin transición,
       para evitar el flash de translateX(-50%) al abrir el burger */
    transform: none !important;
    transition: none !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    border: none;
    text-align: center;
    width: 100%;
  }
  .dropdown-menu.open {
    opacity: 1;
    max-height: 400px;
    pointer-events: auto;
    /* Sólo animar opacidad/alto una vez ya está en static+transform:none */
    transition: opacity 0.3s, max-height 0.3s !important;
  }
  .dropdown-menu li { width: 100%; }
  .dropdown-menu li a {
    padding: 0.6rem 1.2rem;
    text-align: center;
  }
  .dropdown-menu li a:hover,
  .dropdown-menu li a:active,
  .dropdown-menu li a:focus {
    padding: 0.6rem 1.2rem !important;
  }
  .nav-burger { display: flex; position: relative; z-index: 1001; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(26, 23, 20, 0.98);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open > li { text-align: center; width: 100%; }
  .nav-links.open > li > a { font-size: 1.1rem; display: block; width: 100%; }
  .nav-links.open .arrow { display: none; }
  .nav-burger { display: flex; position: relative; z-index: 1001; }

  .about { grid-template-columns: 1fr; }
  .about-media { min-height: 300px; }

  .products-grid { grid-template-columns: 1fr; }
  .product-card--wide { grid-column: 1; }

  .services-list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
 
  .projects-strip {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 1.5rem 1rem;
    gap: 1rem;
  }
  .projects-strip::-webkit-scrollbar { height: 2px; }
  .projects-strip::-webkit-scrollbar-track { background: var(--stone-warm); }
  .projects-strip::-webkit-scrollbar-thumb { background: var(--accent); }
  .proj-item {
    flex: 0 0 75vw;
    scroll-snap-align: start;
  }
  .proj-img, .proj-img-real { aspect-ratio: 4/3; }

  .contact { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  .nav-logo-img { max-height: 70px; }
  .services-list { grid-template-columns: 1fr; }
  .proj-item { flex: 0 0 85vw; }
}