/* ===== VARIABLES Y RESET ===== */
:root {
  --gold:   #C9A84C;
  --gold2:  #E8C96A;
  --dark:   #0d0d0d;
  --dark2:  #141414;
  --dark3:  #1c1c1e;
  --text:   #e5e5e5;
  --muted:  #888;
}

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

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== UTILITIES ===== */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  border-radius: 2px;
  margin: 0 auto 5vh;
}

/* ===== NAVBAR STICKY ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s, backdrop-filter 0.3s, padding 0.3s;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.8rem 5vw;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-brand img {
  height: 90px;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--gold);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
}

.hamburger svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-menu.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .hero {
    padding-top: 15vh; /* adjust for fixed nav */
  }
}

/* ===== BOTONES ===== */
.btn-primary-mv {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #0d0d0d;
  font-weight: 700;
  font-size: clamp(13px, 1.5vmin, 16px);
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-mv:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
  color: #0d0d0d;
}

.btn-ghost-mv {
  background: transparent;
  color: var(--gold2);
  font-weight: 600;
  font-size: clamp(13px, 1.5vmin, 16px);
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid rgba(201,168,76,0.4);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost-mv:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
  color: var(--gold2);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ===== WHATSAPP BUBBLE ===== */
.whatsapp-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: white;
}

.whatsapp-bubble svg {
  width: 32px;
  height: 32px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5vh 5vw;
  background-color: #0c0c0c;
  position: relative;
  overflow: hidden;
}

/* Slideshow Container */
.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Individual Slides with Ken Burns zoom animation */
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroSlideshowAnim 21s linear infinite;
  transform: scale(1.08);
}

.hero-slideshow .slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slideshow .slide:nth-child(2) {
  animation-delay: 7s;
}

.hero-slideshow .slide:nth-child(3) {
  animation-delay: 14s;
}

/* Ken Burns effect: subtle zoom out + smooth fade transition */
@keyframes heroSlideshowAnim {
  0% {
    opacity: 0;
    transform: scale(1.10);
  }
  4% {
    opacity: 0.22; /* Fine-tuned watermark opacity for the actual system mockups */
    transform: scale(1.08);
  }
  28% {
    opacity: 0.22;
    transform: scale(1.02);
  }
  33% {
    opacity: 0;
    transform: scale(1.00);
  }
  100% {
    opacity: 0;
  }
}

/* Premium overlay to dim slides and add a gorgeous ambient gold-to-dark gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: 
    radial-gradient(circle at 50% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.45) 0%, #0c0c0c 100%);
  pointer-events: none;
}

/* Safe Layer for Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201,168,76,0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201,168,76,0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 2.5;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: clamp(11px, 1.3vmin, 14px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 2.5vh;
  animation: fadeInDown 1s 0.1s ease both;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 2.5vh;
  animation: fadeInUp 0.9s 0.15s ease both;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(14px, 2vmin, 20px);
  color: var(--muted);
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 4.5vh;
  animation: fadeInUp 0.9s 0.25s ease both;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.9s 0.35s ease both;
}

/* ===== SECTIONS GLOBAL ===== */
.section {
  padding: 8vh 6vw;
}

.section-alt {
  background: var(--dark2);
}

.section-label {
  font-size: clamp(10px, 1.2vmin, 13px);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1.2vh;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 2vh;
  line-height: 1.2;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: clamp(14px, 1.8vmin, 18px);
  max-width: 650px;
  margin: 0 auto 6vh;
  line-height: 1.7;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover { 
  border-color: rgba(201,168,76,0.3); 
  transform: translateY(-4px); 
  box-shadow: 0 12px 40px rgba(0,0,0,0.4); 
}

.feature-card:hover::before { 
  transform: scaleX(1); 
}

.feature-icon {
  width: 52px; height: 52px;
  background: rgba(201,168,76,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--gold2);
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
  font-size: clamp(15px, 1.8vmin, 18px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}

.feature-card p {
  font-size: clamp(13px, 1.5vmin, 15px);
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-mockup {
  width: 100%;
  border-radius: 8px;
  margin-top: auto;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s;
}

.feature-card:hover .feature-mockup {
  transform: scale(1.02);
}

/* ===== HOW IT WORKS ===== */
.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(201,168,76,0.07);
  flex-shrink: 0;
}

.step h4 {
  font-size: clamp(14px, 1.7vmin, 17px);
  font-weight: 700;
  color: #fff;
}

.step p {
  font-size: clamp(12px, 1.4vmin, 14px);
  color: var(--muted);
}

/* ===== ARTICLES / BLOG ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.article-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-img {
  height: 180px;
  background: var(--dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.1);
}

/* Placeholder for image */
.article-img::after {
  content: "Imagen Ilustrativa";
  font-size: 14px;
}

.article-content {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.article-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-link {
  color: var(--gold2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}

.article-link:hover {
  opacity: 0.8;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  position: relative;
  text-align: center;
}

.testimonial-quote {
  color: var(--gold);
  font-size: 2rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.testimonial-role {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ===== CONTACT ===== */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

/* ===== FOOTER EXPANDED ===== */
.footer-portal {
  background: #080808;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 8vh 6vw 4vh;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 4vh;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand img {
  height: 120px;
  width: max-content;
  border-radius: 8px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 3vh;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #555;
  font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
