/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #050505;
  color: #f9f9f9;
  line-height: 1.6;
}

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

/* HEADER */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  border-bottom: 1px solid rgba(201, 164, 73, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s;
}

.header-scrolled {
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 45px;
  height: 45px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a449, #f1d28a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 1rem;
}

.main-header h1 {
  font-size: 1.2rem;
  font-weight: 600;
}

.tagline {
  font-size: 0.8rem;
  color: #d8d8d8;
}

.main-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.main-nav a:hover {
  background: rgba(201, 164, 73, 0.2);
  color: #f9f9f9;
  transform: translateY(-1px);
}

/* HERO — TEXTO A LA IZQUIERDA + PARALLAX SUTIL */
.hero {
  position: relative;
  min-height: 80vh;
  padding: 6rem 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(201,164,73,0.3), transparent 55%),
    linear-gradient(to bottom right, rgba(0,0,0,0.9), rgba(0,0,0,0.75));
}

.hero-content {
  position: relative;
  max-width: 550px;
  z-index: 20;
  opacity: 0;
  transform: translateY(30px);
  animation: heroShow 1.4s ease forwards;
}

.hero h2 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #e8e8e8;
}

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

.hero-phone {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* BOTONES */
.btn {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #c9a449, #f1d28a);
  color: #000;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0,0,0,0.55);
}

.btn-outline {
  background: transparent;
  border: 1px solid #f1d28a;
  color: #f1d28a;
}

.btn-outline:hover {
  background: rgba(201,164,73,0.15);
  color: #fff;
}

/* SECCIONES */
.section {
  padding: 3.5rem 1.5rem;
}

.section-light {
  background: #111;
  color: #f9f9f9;
}

.section-dark {
  background: #050505;
  color: #f9f9f9;
}

.section-header {
  max-width: 620px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-header h2 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 0.95rem;
  color: #d0d0d0;
}

/* GRID DE CARDS (SERVICIOS / TESTIMONIOS) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: radial-gradient(circle at top, rgba(201,164,73,0.08), #111);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(201, 164, 73, 0.25);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  transform: translateY(0) rotateX(0) rotateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fdf4c3;
}

.card p {
  font-size: 0.92rem;
  color: #dadada;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.75);
  border-color: rgba(241,210,138,0.8);
}

.card-outline {
  background: transparent;
  border-style: dashed;
}

/* TESTIMONIOS */
.quote {
  font-style: italic;
}

.author {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #f1d28a;
}

.testimonial-card h3 {
  margin-bottom: 0.6rem;
}

.testimonial-photos {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.testimonial-photos img {
  width: 50%;
  border-radius: 0.6rem;
  border: 1px solid rgba(201,164,73,0.35);
  object-fit: cover;
}

/* REELS */
.video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* GALERÍA + LIGHTBOX */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(201, 164, 73, 0.4);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  animation: galleryPop 0.6s ease forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(0,0,0,0.85);
}

/* Delays progresivos en galería */
.gallery-grid img:nth-child(1) { animation-delay: 0.1s; }
.gallery-grid img:nth-child(2) { animation-delay: 0.15s; }
.gallery-grid img:nth-child(3) { animation-delay: 0.2s; }
.gallery-grid img:nth-child(4) { animation-delay: 0.25s; }
.gallery-grid img:nth-child(5) { animation-delay: 0.3s; }
.gallery-grid img:nth-child(6) { animation-delay: 0.35s; }
.gallery-grid img:nth-child(7) { animation-delay: 0.4s; }
.gallery-grid img:nth-child(8) { animation-delay: 0.45s; }
.gallery-grid img:nth-child(9) { animation-delay: 0.5s; }
.gallery-grid img:nth-child(10) { animation-delay: 0.55s; }
.gallery-grid img:nth-child(11) { animation-delay: 0.6s; }
.gallery-grid img:nth-child(12) { animation-delay: 0.65s; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 20px 55px rgba(0,0,0,0.9);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  font-size: 40px;
  cursor: pointer;
  color: #fff;
  user-select: none;
}

.lightbox-close { top: 20px; right: 25px; }
.lightbox-prev { left: 35px; }
.lightbox-next { right: 35px; }

/* CONTACTO */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact-info p {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.contact-info a {
  color: #f1d28a;
}

.contact-form {
  background: #0a0a0a;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(201, 164, 73, 0.25);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.contact-form h3 {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #f9f9f9;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #c9a449;
  box-shadow: 0 0 0 1px rgba(201, 164, 73, 0.4);
}

.main-footer {
  padding: 1.5rem;
  text-align: center;
  background: #000;
  font-size: 0.85rem;
  color: #b8b8b8;
  border-top: 1px solid rgba(201, 164, 73, 0.2);
}

/* BOTÓN WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  z-index: 200;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  background: #20b558;
}

/* ====== ANIMACIONES SCROLL REVEAL ====== */
.reveal-up,
.reveal-zoom {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-zoom {
  transform: scale(0.9);
}

.reveal-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animación hero */
@keyframes heroShow {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación galería */
@keyframes galleryPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* PARALLAX SOLO EN ESCRITORIO */
@media (min-width: 768px) {
  .hero {
    background-attachment: scroll; /* usamos JS para el parallax suave */
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 5.5rem;
    min-height: 70vh;
  }

  .hero h2 {
    font-size: 2.1rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 65vh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
