/* ═══════════════════════════════════════════
   STYLE.CSS — Florencia Alvarracín
═══════════════════════════════════════════ */

/* ── GRID (reemplaza Bootstrap) ─────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.row { display: flex; flex-wrap: wrap; margin: 0 -0.75rem; }
.row > * { padding: 0 0.75rem; box-sizing: border-box; }
.col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-md-4, .col-md-6 { width: 100%; }
@media (min-width: 768px) { .col-md-4 { width: 33.333%; } .col-md-6 { width: 50%; } }
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.333%; }
  .col-lg-5 { width: 41.666%; } .col-lg-6 { width: 50%; } .col-lg-7 { width: 58.333%; }
  .d-none { display: none; } .d-lg-flex { display: flex !important; }
}
.d-flex { display: flex; } .flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; } .justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; } .justify-content-end { justify-content: flex-end; }
.text-center { text-align: center; } .w-100 { width: 100%; } .mx-auto { margin-left: auto; margin-right: auto; }
.gap-2 { gap: 0.5rem; } .gap-3 { gap: 1rem; } .gap-4 { gap: 1.5rem; } .gap-5 { gap: 3rem; }
.gap-lg-3 { gap: 0; }
@media (min-width: 992px) { .gap-lg-3 { gap: 1rem; } }
.g-4 > * { padding: 0.75rem; } .g-5 > * { padding: 1rem; }
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; } .d-inline-block { display: inline-block; } .min-vh-100 { min-height: calc(100vh - 68px); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background:  #212121;
  color:       var(--color-white);
  margin:      0;
  overflow-x:  hidden;
  padding-top: 68px;
}
/* Eliminar margen extra entre secciones */
section:first-of-type { margin-top: 0; }

/* ── NAVBAR ─────────────────────────────── */
#navbar {
  position:      fixed;
  top:           0;
  left:          0;
  width:         100%;
  z-index:       9999;
  background:    #212121;
  border-bottom: 1px solid rgba(245,39,190,0.2);
  padding:       16px 0;
}
.nav-container {
  max-width:             1200px;
  margin:                0 auto;
  padding-left:          1.5rem;
  padding-right:         1.5rem;
  display:               grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:           center;
  gap:                   1rem;
}
.navbar-brand {
  font-family:     var(--ff-display);
  font-size:       1.25rem;
  font-weight:     700;
  color:           var(--color-white);
  text-decoration: none;
  letter-spacing:  -0.02em;
  justify-self:    start;
}
#nav-toggle {
  display:     none;
  background:  none;
  border:      2px solid var(--color-gold);
  padding:     0.3rem 0.5rem;
  cursor:      pointer;
  line-height: 0;
}
.nav-menu {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             2rem;
  list-style:      none;
  margin:          0;
  padding:         0;
}
.nav-link {
  font-size:       1rem;
  font-weight:     400;
  color:           rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing:  0.02em;
  transition:      color var(--transition-fast);
  position:        relative;
  padding-bottom:  2px;
}
.nav-link::after {
  content:    '';
  position:   absolute;
  bottom:     -2px;
  left:       0;
  width:      0;
  height:     1px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}
.nav-link:hover,
.nav-link.active        { color: var(--color-white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-cta { color: var(--color-gold); font-weight: 500; }

.nav-right {
  display:      flex;
  align-items:  center;
  gap:          1rem;
  justify-self: end;
}
.nav-whatsapp {
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           var(--color-gold);
  font-size:       1.4rem;
  text-decoration: none;
  transition:      color var(--transition-fast), transform var(--transition-fast);
  flex-shrink:     0;
}
.nav-whatsapp:hover     { color: var(--color-gold-dim); transform: scale(1.1); }
.nav-whatsapp-desktop   { display: flex; }
.nav-whatsapp-mobile    { display: none; }
.nav-whatsapp-link {
  color:       var(--color-gold);
  display:     flex;
  align-items: center;
  gap:         0.5rem;
}

@media (max-width: 991px) {
  .nav-container         { grid-template-columns: 1fr auto; }
  .nav-whatsapp-desktop  { display: none; }
  .nav-whatsapp-mobile   { display: block; }
  #nav-toggle            { display: block; }
  .nav-menu {
    display:         none;
    position:        absolute;
    top:             68px;
    left:            0;
    width:           100%;
    background:      #212121;
    flex-direction:  column;
    align-items:     flex-start;
    justify-content: flex-start;
    gap:             0;
    padding:         0.5rem 1.5rem 1.5rem;
    border-bottom:   1px solid rgba(245,39,190,0.2);
    z-index:         9998;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li   { width: 100%; }
  .nav-menu .nav-link {
    display:       block;
    padding:       0.85rem 0;
    font-size:     1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-menu li:last-child .nav-link { border-bottom: none; }
}

/* ── SECCIONES ──────────────────────────── */
section {
  padding:           var(--section-py) 0;
  scroll-margin-top: 68px;
}
.section-eyebrow {
  display:        block;
  font-size:      var(--fs-xs);
  font-weight:    500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--color-gold);
  margin-bottom:  1rem;
}
.section-eyebrow.light { color: rgba(245,39,190,0.85); }
.section-title {
  font-family:    var(--ff-display);
  font-size:      clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight:    700;
  line-height:    1.08;
  letter-spacing: -0.025em;
  color:          var(--color-gold);
  margin-bottom:  1.5rem;
}
.section-body {
  font-size:   var(--fs-md);
  line-height: 1.75;
  color:       var(--color-white);
  max-width:   560px;
}
.section-body.light { color: rgba(255,255,255,0.8); }
.section-light { background: #212121; }
.section-mid   { background: #2a2a2a; }
.section-dark  { background: #181818; }

/* ── BOTONES ────────────────────────────── */
.btn-primary-custom,
.btn-outline-custom {
  display:         inline-block;
  border-radius:   var(--radius-sm);
  padding:         0.75rem 2rem;
  font-size:       0.875rem;
  font-weight:     500;
  letter-spacing:  0.04em;
  text-decoration: none;
  border:          2px solid var(--color-gold);
  transition:      background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}
.btn-primary-custom       { background: var(--color-gold); color: var(--color-white); }
.btn-primary-custom:hover { background: transparent; color: var(--color-gold); }
.btn-outline-custom       { background: transparent; color: var(--color-gold); }
.btn-outline-custom:hover { background: var(--color-gold); color: var(--color-white); }

/* ── HERO ───────────────────────────────── */
#hero {
  position:       relative;
  background:     #212121;
  min-height:     calc(100vh - 68px);
  display:        flex;
  align-items:    center;
  overflow:       hidden;
  padding-top:    2rem;
  padding-bottom: 2rem;
}
.hero-bg-text {
  position:            absolute;
  right:               -0.05em;
  top:                 50%;
  transform:           translateY(-50%);
  font-family:         var(--ff-display);
  font-size:           clamp(12rem, 22vw, 24rem);
  font-weight:         700;
  color:               transparent;
  -webkit-text-stroke: 1px rgba(245,39,190,0.08);
  line-height:         1;
  pointer-events:      none;
  user-select:         none;
}
.hero-content  { position: relative; z-index: 1; }
.hero-eyebrow {
  display:        block;
  font-size:      var(--fs-sm);
  font-weight:    500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--color-gold);
  margin-bottom:  1.25rem;
}
.hero-title {
  font-family:    var(--ff-display);
  font-size:      clamp(3rem, 7vw, 6rem);
  font-weight:    700;
  line-height:    1.05;
  letter-spacing: -0.03em;
  color:          var(--color-white);
  margin-bottom:  1.5rem;
}
.hero-title em { font-style: italic; color: var(--color-gold); }
.hero-sub {
  font-size:     var(--fs-md);
  color:         rgba(255,255,255,0.7);
  line-height:   1.65;
  max-width:     480px;
  margin-bottom: 2rem;
}
.hero-stats   { align-items: center; }
.stat         { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--ff-display);
  font-size:   2.25rem;
  font-weight: 700;
  line-height: 1;
  color:       var(--color-white);
}
.stat-label {
  font-size:      var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.5);
  margin-top:     0.25rem;
}
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
.hero-photo-frame {
  width:    360px;
  height:   460px;
  border:   2px solid var(--color-gold);
  position: relative;
  overflow: hidden;
}
.hero-photo-frame img {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: center top;
  display:         block;
}
.scroll-down {
  position:        absolute;
  bottom:          2rem;
  left:            50%;
  transform:       translateX(-50%);
  color:           rgba(255,255,255,0.5);
  font-size:       1.25rem;
  animation:       bounce 2s infinite;
  text-decoration: none;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(6px); }
}

/* ── SOBRE MÍ ───────────────────────────── */
.about-waveform-wrapper { position: relative; }

.about-waveform {
  position:    relative;
  display:     flex;
  align-items: center;
  gap:         4px;
  height:      230px;
  padding:     2rem;
  overflow:    hidden;
  cursor:      pointer;
  background:  #2a2a2a;
  border-left: 2px solid var(--color-gold);
}

.wave-bar {
  flex:          1;
  position:      relative;
  z-index:       2;
  background:    var(--color-gold);
  opacity:       0.45;
  border-radius: var(--radius-md);
  transition:    background-color 0.15s ease, opacity 0.15s ease;
}
.wave-bar.played { opacity: 1; }

.wave-play-btn {
  position:        absolute;
  top:             50%;
  left:            50%;
  transform:       translate(-50%, -50%);
  width:           56px;
  height:          56px;
  border-radius:   50%;
  border:          none;
  background:      #ffffff;
  color:           var(--color-gold);
  font-size:       1.4rem;
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  z-index:         3;
  box-shadow:      0 4px 14px rgba(0,0,0,0.4);
  transition:      transform 0.15s ease;
}
.wave-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }

.tag {
  display:        inline-block;
  font-size:      var(--fs-sm);
  font-weight:    500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color:          var(--color-white);
  border:         1px solid rgba(255,255,255,0.25);
  padding:        0.3rem 0.75rem;
  border-radius:  var(--radius-md);
}

/* ── SERVICIOS ──────────────────────────── */
.service-card {
  background: rgba(255,255,255,0.05);
  border:     1px solid rgba(255,255,255,0.1);
  padding:    2rem 1.5rem;
  height:     100%;
  position:   relative;
  transition: background var(--transition-base), border-color var(--transition-base);
}
.service-card:hover   { background: rgba(255,255,255,0.09); border-color: var(--color-gold); }
.service-card.popular { border-color: var(--color-gold); background: var(--color-gold-alpha); }
.service-badge {
  position:       absolute;
  top:            -1px;
  right:          1.5rem;
  background:     var(--color-gold);
  color:          #212121;
  font-size:      0.65rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding:        0.2rem 0.6rem;
}
.service-icon { font-size: 1.75rem; color: var(--color-gold); margin-bottom: 1.25rem; }
.service-name { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 700; color: var(--color-white); margin-bottom: 0.75rem; }
.service-desc { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin: 0; }

/* Reproductor de audio dentro de las tarjetas de servicio (mismo diseño que Sobre mí, en tamaño compacto) */
.service-audio { margin-top: 1.5rem; }
.service-audio .about-waveform {
  height:  80px;
  padding: 0.75rem;
}
.service-audio .wave-play-btn {
  width:     44px;
  height:    44px;
  font-size: 1.15rem;
}

/* ── PORTFOLIO ──────────────────────────── */
.audio-card {
  background: #2a2a2a;
  border:     1px solid rgba(255,255,255,0.08);
  padding:    1.75rem;
  height:     100%;
  transition: box-shadow var(--transition-base);
}
.audio-card:hover    { box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.audio-card.featured { border-color: var(--color-gold); box-shadow: 0 0 0 1px var(--color-gold); }
.audio-meta  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.audio-cat   { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-gold); }
.audio-dur   { font-size: var(--fs-sm); color: rgba(255,255,255,0.5); }
.audio-title { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 700; color: var(--color-white); margin-bottom: 1rem; }
.audio-waveform { display: flex; align-items: center; gap: 3px; height: 48px; margin-bottom: 1rem; }
.aw-bar { flex: 1; background: var(--color-gold); opacity: 0.35; border-radius: var(--radius-md); }
audio.custom-audio { height: 32px; accent-color: var(--color-gold); }

/* ── CLIENTES (carrusel) ────────────────── */
.clients-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.clients-track {
  display:   flex;
  width:     max-content;
  animation: clients-scroll 40s linear infinite;
}

/* Se detiene al pasar el mouse sobre cualquier logo */
.clients-track:hover { animation-play-state: paused; }

.clients-group {
  display:     flex;
  align-items: center;
  flex-shrink: 0;
}

.client-item {
  flex-shrink:     0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         0 2.5rem; /* se usa padding y no gap para que el loop quede exacto */
}

/* Cada logo entra en una caja fija, sin deformarse */
.client-item img {
  display:    block;
  width:      120px;
  height:     120px;
  object-fit: contain;
  opacity:    0.8;
  transition: opacity 0.35s ease;
}
.client-item:hover img {
  opacity: 1;
}

.client-fallback {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size:   var(--fs-base);
  color:       #fff;
  opacity:     0.8;
  white-space: nowrap;
  text-align:  center;
  transition:  opacity 0.35s ease;
}
.client-item:hover .client-fallback { opacity: 1; }

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 767.98px) {
  .client-item     { padding: 0 1.5rem; }
  .client-item img { width: 110px; height: 44px; }
  .clients-track   { animation-duration: 30s; }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}

/* ── CONTACTO ───────────────────────────── */
.contact-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   1rem;
}
.contact-card {
  display:         flex;
  align-items:     center;
  gap:             1rem;
  background:      rgba(255,255,255,0.04);
  border:          1px solid rgba(255,255,255,0.08);
  border-radius:   10px;
  padding:         1.25rem;
  text-decoration: none;
  transition:      border-color var(--transition-fast), background var(--transition-fast);
}
.contact-card:hover {
  border-color: var(--color-gold);
  background:   rgba(245,39,190,0.06);
}
.contact-icon {
  width:           44px;
  height:          44px;
  border-radius:   50%;
  background:      rgba(245,39,190,0.12);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  font-size:       1.25rem;
  color:           var(--color-gold);
}
.contact-text { overflow: hidden; }
.contact-label {
  display:        block;
  font-size:      0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.4);
  margin-bottom:  2px;
}
.contact-value {
  display:       block;
  font-size:     0.8125rem;
  color:         #fff;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

@media (max-width: 576px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER ─────────────────────────────── */
footer { background: #181818; padding: 1.75rem 0; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-brand { font-family: var(--ff-display); font-weight: 700; color: var(--color-white); font-size: var(--fs-base); }
.footer-copy  { font-size: var(--fs-sm); color: rgba(255,255,255,0.35); }
.footer-credit {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credit:hover {
  color: var(--color-gold);
  text-decoration: none;
}

/* ── BOTÓN TOP ─────────────────────────────── */

.btn-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--color-gold);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  z-index: 999;
}

.btn-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-top:hover {
  background: var(--color-gold);
  color: #fff;
}

/* ── SCROLL REVEAL ──────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .hero-bg-text   { font-size: 8rem; }
  .about-waveform { height: 120px; }
  section         { padding: 4rem 0; }
  .hero-actions   { margin-bottom: 2rem; }
  .hero-photo-frame {
    width:      100%;
    height:     320px;
    margin-top: 1rem;
  }
}
@media (max-width: 480px) {
  .hero-stats { gap: 1.25rem; }
  .stat-num   { font-size: 1.75rem; }
  section     { padding: 3rem 0; }
}

/* ── PÁGINA 404 ─────────────────────────── */
.error-page {
  min-height:  100vh;
  display:     flex;
  align-items: center;
  background:  var(--color-cream);
  padding-top: var(--nav-h);
}
.error-page .section-body { max-width: 400px; }
