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

:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --dark: #0a0a0a;
  --dark2: #111111;
  --dark3: #1a1a1a;
  --dark4: #222222;
  --gray: #888;
  --light: #f5f5f0;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 150px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: var(--transition);
}

nav.scrolled { height: 100px; background: rgba(10,10,10,0.98); }

.nav-logo {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px;
  color: var(--white); text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px;
  transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transition: var(--transition); border-radius: 2px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gold); color: var(--dark) !important;
  padding: 0.5rem 1.25rem; border-radius: 6px; font-weight: 700 !important;
}
.nav-cta::after { display: none !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);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 0 5%;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.9) 40%, rgba(201,168,76,0.1) 100%),
    url('../images/hero.jpg') center/cover no-repeat;
}

.hero-particles {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none;
}
.hero-particles::before, .hero-particles::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}
.hero-particles::before {
  background: var(--gold);
  top: -100px; right: -100px;
}
.hero-particles::after {
  background: #4a9eff;
  bottom: -100px; left: -100px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold); padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -2px;
  margin-bottom: 1.25rem;
}
.hero-title .accent { color: var(--gold); }

.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,0.65);
  max-width: 500px; margin-bottom: 2.5rem; line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: var(--dark);
  padding: 0.9rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,168,76,0.4); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--white);
  padding: 0.9rem 2rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2); transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-stats {
  position: absolute; bottom: 3rem; left: 5%;
  display: flex; gap: 3rem; z-index: 1;
}
@media (max-width: 768px) {
  .hero-stats {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
    width: 100% !important;
  }
}
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.25rem; }

/* ===== SECTIONS BASE ===== */
section { padding: 6rem 5%; }
.section-label {
  display: inline-block;
  color: var(--gold); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -1px; line-height: 1.1;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--gray); font-size: 1rem; max-width: 500px;
  line-height: 1.7; margin-bottom: 3rem;
}

/* ===== SERVICIOS ===== */
#servicios { background: var(--dark2); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.servicio-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative; overflow: hidden;
  cursor: default;
}
.servicio-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: var(--transition);
}
.servicio-card:hover { border-color: rgba(201,168,76,0.25); transform: translateY(-4px); box-shadow: var(--shadow); }
.servicio-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.card-desc { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }

/* ===== TRABAJOS ===== */
#trabajos { background: var(--dark); }

.trabajos-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem;
}

.filter-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: var(--gray);
  border-radius: 100px; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold); border-color: var(--gold);
  color: var(--dark); font-weight: 700;
}

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

.trabajo-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
  background: var(--dark3);
  transition: var(--transition);
}
.trabajo-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }

.trabajo-item.grande { grid-column: span 2; grid-row: span 2; }

.trabajo-img {
  width: 100%; height: 100%;
  min-height: 220px;
  object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.trabajo-item.grande .trabajo-img { min-height: 460px; }
.trabajo-item:hover .trabajo-img { transform: scale(1.06); }

/* placeholder cuando no hay imagen */
.trabajo-placeholder {
  width: 100%; min-height: 220px; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
  background: var(--dark4);
  color: var(--gray); font-size: 0.85rem;
}
.trabajo-item.grande .trabajo-placeholder { min-height: 460px; }
.trabajo-placeholder .ph-icon { font-size: 2.5rem; opacity: 0.4; }

.trabajo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0; transition: var(--transition);
}
.trabajo-item:hover .trabajo-overlay { opacity: 1; }

.trabajo-cat {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--gold); margin-bottom: 0.35rem;
}
.trabajo-title { font-size: 1rem; font-weight: 700; }
.trabajo-sub { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 900px; width: 100%; }
.lightbox-img { width: 100%; border-radius: var(--radius); max-height: 80vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: -3rem; right: 0;
  background: none; border: none; color: var(--white);
  font-size: 2rem; cursor: pointer; transition: var(--transition);
}
.lightbox-close:hover { color: var(--gold); transform: rotate(90deg); }
.lightbox-caption {
  margin-top: 1rem; text-align: center;
  color: var(--gray); font-size: 0.9rem;
}

/* ===== PROCESO ===== */
#proceso { background: var(--dark2); }

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

.proceso-step {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: var(--transition);
}
.proceso-step:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-4px); }

.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(201,168,76,0.12); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: var(--gold);
  margin: 0 auto 1.25rem;
}
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-desc { color: var(--gray); font-size: 0.85rem; line-height: 1.6; }

/* ===== TESTIMONIOS ===== */
#testimonios { background: var(--dark); }

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonio-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 2rem;
  transition: var(--transition);
}
.testimonio-card:hover { border-color: rgba(201,168,76,0.2); transform: translateY(-3px); }

.stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonio-text {
  color: rgba(255,255,255,0.8); font-size: 0.95rem;
  line-height: 1.7; margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonio-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(201,168,76,0.2); border: 2px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--gold);
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.9rem; }
.author-loc { font-size: 0.8rem; color: var(--gray); }

/* ===== CONTACTO ===== */
#contacto { background: var(--dark2); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem; align-items: start;
}

.contacto-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.contacto-info p { color: var(--gray); line-height: 1.7; margin-bottom: 2rem; font-size: 0.95rem; }

.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; text-decoration: none; color: inherit;
  transition: var(--transition);
}
.contact-item:hover { border-color: rgba(201,168,76,0.3); transform: translateX(4px); }
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(201,168,76,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-text-label { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.contact-text-val { font-weight: 600; font-size: 0.9rem; }

/* form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: var(--white);
  padding: 0.75rem 1rem; font-size: 0.95rem;
  transition: var(--transition); outline: none;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--dark3); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark); border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 5% 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .nav-logo { display: block; margin-bottom: 1rem; font-size: 1.3rem; }
.footer-brand p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.25rem; color: rgba(255,255,255,0.5); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { color: var(--gray); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: var(--gray); font-size: 0.85rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--dark3); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1rem; transition: var(--transition);
}
.social-link:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; box-shadow: 0 8px 25px rgba(37,211,102,0.4);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.6rem;
  animation: bounce 3s ease-in-out infinite;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 35px rgba(37,211,102,0.5); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .trabajos-grid { grid-template-columns: repeat(2, 1fr); }
  .trabajo-item.grande { grid-column: span 1; grid-row: span 1; }
  .trabajo-item.grande .trabajo-img { min-height: 220px; }
  .trabajo-item.grande .trabajo-placeholder { min-height: 220px; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 2rem; }
}

@media (max-width: 680px) {
  nav { padding: 0 4%; height: 100px; }
  nav.scrolled { height: 80px; }
  .nav-links { display: none; flex-direction: column; position: fixed;
    inset: 100px 0 0 0; background: rgba(10,10,10,0.98);
    padding: 2rem; gap: 1.5rem; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .hamburger { display: flex; }
  #hero { padding-top: 130px; align-items: flex-start; padding-bottom: 3rem; min-height: auto; flex-direction: column; justify-content: flex-start; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: 2.2rem; letter-spacing: -1px; }
  .hero-sub { font-size: 1rem; }
  .hero-stats { position: relative; bottom: auto; left: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2rem; width: 100%; text-align: center; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.65rem; }
  section { padding: 4rem 4%; }
  .trabajos-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; position: relative; bottom: auto; left: auto; margin-top: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trabajos-header { flex-direction: column; align-items: flex-start; }
}
