@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --wood-dark: #3D2B1F;
  --wood-mid: #6B3F2A;
  --wood-light: #A0622A;
  --gold: #C8973A;
  --gold-light: #E8B96A;
  --cream: #F5F0E8;
  --white: #FFFFFF;
  --gray-dark: #1A1A1A;
  --gray-mid: #2D2D2D;
  --gray-light: #F8F6F3;
  --text-dark: #1C1C1C;
  --text-muted: #6B6B6B;
  --shadow: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.navbar.scrolled .nav-link { color: var(--text-dark); }
.navbar.scrolled .logo-text { color: var(--wood-dark); }
.navbar.scrolled .logo-sub { color: var(--wood-mid); }

.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.logo-text { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--white); line-height: 1; }
.logo-sub { font-size: 0.7rem; color: rgba(255,255,255,0.7); font-weight: 400; letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.nav-link {
  color: rgba(255,255,255,0.9); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; padding: 0.5rem 1rem;
  border-radius: 8px; transition: var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.nav-cta {
  background: var(--gold); color: var(--white) !important;
  padding: 0.6rem 1.4rem !important; border-radius: 50px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.navbar.scrolled .hamburger span { background: var(--text-dark); }

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/images/hero.jpg');
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,15,5,0.75) 0%, rgba(61,43,31,0.5) 50%, rgba(0,0,0,0.4) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 2rem; max-width: 900px;
  animation: fadeInUp 1s ease forwards;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(200,151,58,0.2); border: 1px solid rgba(200,151,58,0.4);
  color: var(--gold-light); padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.hero h1 {
  font-family: 'Outfit', sans-serif; font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800; color: var(--white); line-height: 1.05;
  margin-bottom: 1rem; letter-spacing: -1px;
}
.hero h1 span { color: var(--gold-light); }
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem); color: rgba(255,255,255,0.85);
  max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7;
  font-weight: 300;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--gold); color: var(--white);
  padding: 1rem 2rem; border-radius: 50px;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: var(--transition); border: none; cursor: pointer;
  box-shadow: 0 8px 30px rgba(200,151,58,0.4);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(200,151,58,0.5); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.1); color: var(--white);
  padding: 1rem 2rem; border-radius: 50px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.6); font-size: 0.75rem; letter-spacing: 2px;
  text-transform: uppercase; animation: bounce 2s infinite;
}
.scroll-line { width: 1px; height: 40px; background: rgba(255,255,255,0.4); }

/* ─── SECTIONS ─── */
section { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block; color: var(--gold); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--wood-dark); line-height: 1.2;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted); font-size: 1.05rem; line-height: 1.8;
  max-width: 580px;
}
.section-header { margin-bottom: 4rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ─── NOSOTROS ─── */
.about { background: var(--gray-light); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-img-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
}
.about-img {
  width: 100%; height: 520px; object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}
.about-img-wrap:hover .about-img { transform: scale(1.03); }
.about-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: var(--white); border-radius: 12px;
  padding: 1rem 1.5rem; box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 0.75rem;
}
.badge-num { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.badge-txt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.3; }

.about-content { display: flex; flex-direction: column; gap: 2rem; }
.about-features { display: flex; flex-direction: column; gap: 1rem; }
.feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.25rem; background: var(--white);
  border-radius: 12px; border-left: 3px solid var(--gold);
  transition: var(--transition);
}
.feature-item:hover { transform: translateX(4px); box-shadow: var(--shadow-card); }
.feature-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.feature-title { font-weight: 600; font-size: 0.95rem; color: var(--wood-dark); margin-bottom: 0.2rem; }
.feature-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ─── SERVICIOS (TABS) ─── */
.services { background: var(--white); }

/* Fila de tabs */
.srv-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center; margin-bottom: 1.5rem;
}
.srv-tab {
  padding: 0.55rem 1.2rem; border-radius: 50px;
  border: 1.5px solid var(--wood-light); background: transparent;
  color: var(--wood-mid); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.srv-tab:hover { background: var(--cream); }
.srv-tab.active {
  background: var(--wood-dark); border-color: var(--wood-dark);
  color: var(--white); box-shadow: 0 4px 14px rgba(61,43,31,0.25);
}

/* Panel de contenido */
.srv-panels { position: relative; }
.srv-panel {
  display: none; align-items: center; gap: 2.5rem;
  background: var(--gray-light); border-radius: var(--radius);
  padding: 2.5rem; border-left: 4px solid var(--gold);
  animation: fadeInUp 0.35s ease;
}
.srv-panel.active { display: flex; }
.srv-panel-icon {
  font-size: 3.5rem; flex-shrink: 0;
  width: 90px; height: 90px; border-radius: 20px;
  background: rgba(200,151,58,0.1);
  display: flex; align-items: center; justify-content: center;
}
.srv-panel-body h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700;
  color: var(--wood-dark); margin-bottom: 0.6rem;
}
.srv-panel-body p {
  color: var(--text-muted); font-size: 1rem; line-height: 1.75;
}

@media (max-width: 600px) {
  .srv-panel { flex-direction: column; gap: 1.25rem; padding: 1.5rem; }
  .srv-panel-icon { width: 70px; height: 70px; font-size: 2.5rem; }
}

/* ─── PORTAFOLIO ─── */
.portfolio { background: var(--wood-dark); }
.portfolio .section-title { color: var(--white); }
.portfolio .section-tag { color: var(--gold-light); }
.portfolio .section-subtitle { color: rgba(255,255,255,0.65); }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 2.5rem; justify-content: center;
}
.filter-btn {
  padding: 0.5rem 1.25rem; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2); background: transparent;
  color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold); border-color: var(--gold); color: var(--white);
}

/* ─── CARRUSEL ─── */
.carousel-wrap { position: relative; user-select: none; }

/* Imagen principal */
.carousel-main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; margin-bottom: 1.25rem;
  background: #000;
}
.carousel-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.4s ease, transform 0.5s ease;
}
.carousel-main img.fade-out { opacity: 0; transform: scale(1.03); }

.carousel-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,10,0,0.7) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 1.5rem 2rem;
  pointer-events: none;
}
.carousel-label {
  color: var(--white); font-family: 'Outfit', sans-serif;
  font-size: 1.2rem; font-weight: 700;
}
.carousel-counter {
  margin-left: auto; color: rgba(255,255,255,0.7);
  font-size: 0.875rem; font-weight: 500;
}

/* Botones prev/next sobre la imagen principal */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); z-index: 2;
}
.carousel-btn:hover { background: var(--gold); border-color: var(--gold); }
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

/* Barra de progreso */
.carousel-progress {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--gold); border-radius: 0 2px 2px 0;
  transition: width 0.4s ease;
  z-index: 3;
}

/* Miniaturas */
.carousel-thumbs {
  display: flex; gap: 0.75rem; overflow-x: auto;
  padding-bottom: 0.5rem; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--gold) rgba(255,255,255,0.1);
}
.carousel-thumbs::-webkit-scrollbar { height: 4px; }
.carousel-thumbs::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.carousel-thumbs::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); border-radius: 4px; }

.carousel-thumb {
  flex: 0 0 100px; height: 70px; border-radius: 10px; overflow: hidden;
  cursor: pointer; scroll-snap-align: start;
  border: 2px solid transparent; transition: var(--transition);
  opacity: 0.55;
}
.carousel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.carousel-thumb:hover { opacity: 0.85; transform: translateY(-2px); }
.carousel-thumb.active {
  border-color: var(--gold); opacity: 1;
  box-shadow: 0 0 0 2px rgba(200,151,58,0.4);
}

/* ─── CTA ─── */
.cta {
  background: linear-gradient(135deg, var(--wood-mid) 0%, var(--wood-light) 100%);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner {
  position: relative; z-index: 1; text-align: center;
  max-width: 700px; margin: 0 auto;
}
.cta h2 {
  font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--white); margin-bottom: 1rem; line-height: 1.2;
}
.cta p {
  color: rgba(255,255,255,0.85); font-size: 1.1rem; line-height: 1.8;
  margin-bottom: 2.5rem;
}
.btn-white {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--white); color: var(--wood-mid);
  padding: 1rem 2.5rem; border-radius: 50px;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,0.2); background: var(--cream); }

/* ─── FOOTER ─── */
footer {
  background: var(--gray-dark); color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; max-width: 1200px; margin: 0 auto 3rem;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-sub { color: var(--gold); }
.footer-tagline {
  margin-top: 1rem; font-size: 0.9rem; line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.social-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  text-decoration: none; transition: var(--transition);
}
.social-link svg { display: block; width: 20px; height: 20px; fill: #ffffff; flex-shrink: 0; }
.social-link:hover { transform: translateY(-3px); }
.social-link--fb:hover  { background: #1877F2; }
.social-link--tt:hover  { background: #010101; }
.social-link--wa:hover  { background: #25D366; }

.footer-col h4 {
  font-family: 'Outfit', sans-serif; color: var(--white); font-size: 1rem;
  font-weight: 600; margin-bottom: 1.25rem; letter-spacing: 0.5px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 0.875rem; transition: var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }

.contact-items { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.55);
}
.contact-item span:first-child { color: var(--gold); margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem; text-align: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
  max-width: 1200px; margin: 0 auto;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: 8px;
}
.lb-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.1); border: none; color: var(--white);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: rgba(255,255,255,0.2); }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: var(--white);
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-prev:hover, .lb-next:hover { background: var(--gold); }

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  background: #25D366; color: var(--white); width: 60px; height: 60px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; text-decoration: none; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition); animation: pulseWA 2s infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes pulseWA {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 40px rgba(37,211,102,0.7); }
}
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 4rem 1.25rem; }
  .navbar { padding: 1rem 1.25rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 1rem; box-shadow: var(--shadow); border-radius: 0 0 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { color: var(--text-dark); width: 100%; text-align: center; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}
