/* ========================================
   GUÍA DE ESTILO GROW
   Paleta: #2B2929 (fondo) · #B68E4E (dorado acentos) · #4CAF50 (botón verde) · #FFFFFF (títulos)
   ======================================== */

/* ----- RESET Y VARIABLES ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #2B2929;
  --bg-secondary: #1F1E1E;
  --bg-card: #1F1E1E;
  --bg-card-hover: #262424;
  --border-color: #3D3A3A;
  --text-white: #FFFFFF;
  --text-light: #C4C3C3;
  --text-muted: #888787;
  --gold: #B68E4E;
  --gold-hover: #A67D3E;
  --green: #4CAF50;
  --green-hover: #43A047;
  --gold-glow: rgba(182, 142, 78, 0.3);
  --shadow-3d: 0 20px 60px rgba(0, 0, 0, 0.7);
  --shadow-3d-hover: 0 30px 80px rgba(0, 0, 0, 0.9);
  --radius-card: 20px;
  --radius-btn: 50px;
}

/* ----- BASE ----- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-white);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
}

/* ----- TIPOGRAFÍA ----- */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #B68E4E 0%, #C9A05E 40%, #A67D3E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

h1 br {
  display: block;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-white);
  border-left: 6px solid var(--gold);
  padding-left: 1rem;
}

h2 i {
  color: var(--gold);
  margin-right: 0.5rem;
}

h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

strong {
  color: var(--text-white);
  font-weight: 700;
}

/* ========================================
   LOGO - GRANDE
   ======================================== */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  cursor: pointer;
}

.nav-logo img,
.logo-img {
  width: 80px !important;
  height: 80px !important;
  display: block !important;
  object-fit: contain !important;
}

/* ----- UTILIDADES ----- */
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }
.text-gold { color: var(--gold); }
.opacity-60 { opacity: 0.6; }

/* ----- ANIMACIONES ----- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- SCROLL ANIMATIONS ----- */
.fade-in-scroll {
  opacity: 0;
  transition: all 0.8s ease-out;
}
.fade-in-scroll.visible { opacity: 1; }

.scale-in-scroll {
  opacity: 0;
  transition: all 0.8s ease-out;
}
.scale-in-scroll.visible { opacity: 1; }

/* ========================================
   BOTÓN GROW - VERDE #4CAF50
   ======================================== */
.btn-grow {
  background: #4CAF50;
  border: none;
  color: #FFFFFF;
  padding: 0.9rem 2.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.35);
}

.btn-grow i {
  font-size: 1.2rem;
}

.btn-grow:hover {
  background: #43A047;
  box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
  transform: translateY(-2px);
}

.btn-grow:active {
  transform: translateY(0px);
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.btn-grow.btn-hero {
  font-size: 1.2rem;
  padding: 1rem 3rem;
}

/* ----- SEPARADOR ----- */
hr.grow-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 3rem 0;
}

/* ----- CARD GROW ----- */
.card-grow {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-3d);
  transition: all 0.4s ease;
}

.card-grow:hover {
  border-color: rgba(182, 142, 78, 0.15);
  box-shadow: var(--shadow-3d-hover);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(43, 41, 41, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(182, 142, 78, 0.05);
  padding: 0.5rem 0;
  animation: slideDown 0.5s ease-out;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link.active {
  color: var(--gold);
  font-weight: 700;
}

.nav-link.active::after {
  width: 80%;
}

.nav-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(182, 142, 78, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: rgba(182, 142, 78, 0.08);
  border: 1px solid rgba(182, 142, 78, 0.15);
  color: var(--gold);
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.hero .description {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 0.5rem;
}

.hero-video {
  width: 100%;
  max-width: 900px;
  margin: 1.5rem auto 2rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-3d);
  border: 1px solid rgba(182, 142, 78, 0.05);
  transition: all 0.4s ease;
}

.hero-video:hover {
  box-shadow: var(--shadow-3d-hover);
  border-color: rgba(182, 142, 78, 0.1);
}

.hero-video iframe {
  display: block;
  border: none;
}

.hero .system {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--bg-secondary);
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  max-width: 800px;
  box-shadow: var(--shadow-3d);
}

.hero .system strong {
  color: var(--gold);
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.promise {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
  padding: 0.3rem 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.promise i {
  color: var(--gold);
  font-size: 1.2rem;
}

/* ========================================
   RESULTADOS
   ======================================== */
.resultados {
  padding: 1.5rem 0;
}

.resultado-card {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.resultado-card:hover {
  transform: translateY(-4px);
}

.resultado-contenido {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.resultado-video {
  flex: 0 0 40%;
  max-width: 40%;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  max-height: 300px;
}

.resultado-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.resultado-info {
  flex: 1;
  padding: 1.5rem 2rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resultado-info h4 {
  font-size: 1.3rem;
  color: var(--text-white);
  margin-bottom: 0.2rem;
}

.resultado-role {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem !important;
}

.resultado-metrica {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(182, 142, 78, 0.06);
  padding: 0.2rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.6rem;
  border: 1px solid rgba(182, 142, 78, 0.05);
  width: fit-content;
}

.resultado-metrica i {
  color: var(--gold);
}

.resultado-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  font-style: italic;
  margin: 0 !important;
  padding-left: 0.8rem;
  border-left: 3px solid var(--gold);
}

.resultados-cta {
  text-align: center;
  padding: 1.5rem 0;
}

/* ========================================
   SISTEMAS
   ======================================== */
.sistemas {
  padding: 1.5rem 0;
}

.sistemas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.sistema-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
}

.sistema-card:hover {
  transform: translateY(-4px);
  border-color: rgba(182, 142, 78, 0.15);
}

.sistema-icon {
  width: 70px;
  height: 70px;
  background: rgba(182, 142, 78, 0.06);
  border: 1px solid rgba(182, 142, 78, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.4s ease;
}

.sistema-card:hover .sistema-icon {
  background: rgba(182, 142, 78, 0.12);
  border-color: rgba(182, 142, 78, 0.15);
  box-shadow: 0 0 40px rgba(182, 142, 78, 0.05);
}

.sistema-icon span {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.sistema-card h3 {
  font-size: 1.2rem;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 0.8rem;
}

.sistema-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.6;
}

.sistema-card p strong {
  color: var(--text-white);
}

.sistema-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 200px;
  margin: 0 auto;
}

.sistema-card ul li {
  padding: 0.4rem 0;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.sistema-card ul li i {
  color: var(--gold);
}

.sistemas-cta {
  text-align: center;
  padding: 1.5rem 0;
}

/* ========================================
   CALENDARIO
   ======================================== */
.calendario {
  padding: 1.5rem 0;
}

.calendario-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 1.5rem auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-3d);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  min-height: 800px;
  height: auto;
}

.calendario-wrapper iframe {
  display: block;
  border: none;
  width: 100%;
  height: 850px;
  margin: 0;
  min-height: 800px;
}

.calendario-footer {
  margin-top: 2rem;
  padding: 1.2rem 1.8rem;
  text-align: center;
}

.calendario-footer p {
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.calendario-footer p:first-child {
  font-weight: 700;
  color: var(--gold);
}

.calendario-footer i {
  color: var(--gold);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer i {
  color: var(--gold);
  margin-right: 8px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
  .resultado-contenido {
    flex-direction: column;
  }

  .resultado-video {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 200px;
    max-height: 280px;
  }

  .resultado-info {
    padding: 1.2rem;
  }

  .sistemas-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }
  h1 br {
    display: none;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero .description {
    font-size: 1rem;
  }

  /* Logo responsive */
  .nav-logo {
    font-size: 1.6rem;
    gap: 10px;
  }

  .nav-logo img,
  .logo-img {
    width: 55px !important;
    height: 55px !important;
  }

  .nav-container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.3rem;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.3rem;
  }

  .nav-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .btn-grow.btn-hero {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
  }

  .resultado-video {
    min-height: 160px;
    max-height: 220px;
  }

  .resultado-text {
    font-size: 0.9rem;
  }

  .sistemas-grid {
    grid-template-columns: 1fr;
  }

  .calendario-wrapper {
    min-height: 550px;
  }

  .calendario-wrapper iframe {
    height: 600px;
    min-height: 550px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  .hero .description {
    font-size: 0.95rem;
  }

  .resultado-info h4 {
    font-size: 1rem;
  }

  .calendario-wrapper {
    min-height: 450px;
  }

  .calendario-wrapper iframe {
    height: 500px;
    min-height: 450px;
  }

  /* Logo más pequeño en móvil */
  .nav-logo {
    font-size: 1.3rem;
    gap: 8px;
  }

  .nav-logo img,
  .logo-img {
    width: 45px !important;
    height: 45px !important;
  }
}