/* =============================================
   DAEDAL MULTIMEDIA — styles.css
   Paleta:
   --c-bg:       #330067  (morado oscuro — fondo principal)
   --c-surface:  #1a003a  (más oscuro para secciones alternas)
   --c-accent:   #8C50E7  (morado claro — resalte)
   --c-gold:     #FAD703  (amarillo — CTA principal)
   --c-gray:     #4D4D4D  (gris oscuro)
   --c-gray-lt:  #333333  (gris claro texto)
   --c-white:    #FFFFFF
   ============================================= */

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

:root {
  --c-bg:       #330067;
  --c-surface:  #1a003a;
  --c-accent:   #8C50E7;
  --c-gold:     #FAD703;
  --c-gray:     #4D4D4D;
  --c-gray-lt:  #333333;
  --c-white:    #FFFFFF;
  --c-text:     #e8e0f5;
  --c-text-dim: #b89fd4;

  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.35);
  --transition: 0.25s ease;

  --header-h: 68px;
  --container: 1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-gold);
  color: #1a003a;
  border-color: var(--c-gold);
}
.btn--primary:hover { background: #ffe033; }

.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover { border-color: var(--c-white); background: rgba(255,255,255,0.08); }

.btn--wa {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn--wa:hover { background: #1ebe5d; }

.btn--lg { padding: 16px 40px; font-size: 1.05rem; }

/* ===== TYPOGRAPHY HELPERS ===== */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: 40px;
  line-height: 1.15;
}

/* ===== SECTIONS ===== */
.section { padding-block: clamp(64px, 10vw, 110px); }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(26, 0, 58, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo-img { height: 40px; width: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--c-white); background: rgba(255,255,255,0.08); }

.nav-link--cta {
  background: var(--c-gold);
  color: #1a003a;
  font-weight: 700;
  padding: 8px 20px;
}
.nav-link--cta:hover { background: #ffe033; color: #1a003a; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(26, 0, 58, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  .main-nav.open { opacity: 1; pointer-events: all; }
  .nav-list { flex-direction: column; gap: 16px; }
  .nav-link { font-size: 1.2rem; padding: 12px 24px; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
  /* Fondo con gradiente + imagen placeholder — reemplaza la imagen si quieres una foto de fondo */
  background: linear-gradient(135deg, #1a003a 0%, #330067 50%, #4a0090 100%);
}

/* Decoración geométrica de fondo */
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,80,231,0.18) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250,215,3,0.07) 0%, transparent 70%);
  bottom: 0; left: -80px;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,0,58,0.3) 0%, transparent 60%, rgba(51,0,103,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: 80px 120px;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--c-white);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}
.hero-title .accent { color: var(--c-gold); }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--c-text-dim);
  max-width: 540px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.65s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 0.7s ease 1s forwards;
}
.hero-scroll-hint span {
  display: block;
  width: 20px; height: 34px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--c-gold);
  border-radius: 2px;
  animation: scrollDot 1.8s ease infinite;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}
@keyframes scrollDot {
  0% { top: 5px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* =============================================
   SERVICIOS
   ============================================= */
.servicios { background: var(--c-surface); }

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

.servicio-card {
  background: rgba(140,80,231,0.08);
  border: 1px solid rgba(140,80,231,0.22);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.servicio-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  background: rgba(140,80,231,0.14);
}

.servicio-icon { font-size: 2rem; }

.servicio-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-white);
}
.servicio-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.servicio-card li {
  font-size: 0.92rem;
  color: var(--c-text-dim);
  padding-left: 16px;
  position: relative;
}
.servicio-card li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--c-gold);
  font-weight: 700;
}

.servicio-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-gold);
  transition: letter-spacing var(--transition);
  align-self: flex-start;
}
.servicio-cta:hover { letter-spacing: 0.04em; }

/* =============================================
   PORTAFOLIO
   ============================================= */
.portafolio { background: var(--c-bg); }

.portafolio-sub {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 20px;
  padding-top: 16px;
}
.portafolio-note {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  margin-bottom: 16px;
  margin-top: -12px;
}

/* Grids de imágenes */
.port-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 48px;
}
.port-grid--design { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.port-grid--photos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.port-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(140,80,231,0.1);
  border: 1px solid rgba(140,80,231,0.15);
  aspect-ratio: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}
.port-grid--photos .port-item { aspect-ratio: 4/3; }

.port-item:hover { transform: scale(1.02); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.port-item img { width: 100%; height: 100%; object-fit: cover; }

/* Grid de videos */
.port-grid--video {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 0;
}

.port-video-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid rgba(140,80,231,0.2);
  min-height: 420px;
  display: flex;
  align-items: stretch;
}
.port-video-wrap > * { flex: 1; }

/* Forzar que los embeds no rompan el layout */
.tiktok-embed, .instagram-media {
  margin: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* =============================================
   CLIENTES — scroll horizontal automático
   ============================================= */
.clientes { background: var(--c-surface); }

.clientes-track-wrap {
  overflow: hidden;
  position: relative;
  /* fade en los bordes */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.clientes-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: scrollLogos 28s linear infinite;
}
.clientes-track:hover { animation-play-state: paused; }

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

.cliente-logo {
  flex-shrink: 0;
  height: 60px;
  display: flex;
  align-items: center;
}
.cliente-logo img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.cliente-logo:hover img { opacity: 1; }

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

/* =============================================
   CONTACTO
   ============================================= */
.contacto {
  background: linear-gradient(135deg, #1a003a 0%, #330067 100%);
  text-align: center;
}
.contacto-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.contacto-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.2;
}
.contacto-datos {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.contacto-link {
  font-size: 0.9rem;
  color: var(--c-text-dim);
  transition: color var(--transition);
}
.contacto-link:hover { color: var(--c-gold); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid rgba(140,80,231,0.2);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-block: 56px 40px;
  align-items: start;
}
.footer-logo { height: 36px; width: auto; margin-bottom: 16px; }
.footer-location { font-size: 0.88rem; color: var(--c-text-dim); margin-bottom: 6px; }
.footer-phone, .footer-email {
  display: block;
  font-size: 0.88rem;
  color: var(--c-text-dim);
  margin-bottom: 4px;
  transition: color var(--transition);
}
.footer-phone:hover, .footer-email:hover { color: var(--c-gold); }

.footer-social-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 14px;
}
.social-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--c-text-dim);
  transition: color var(--transition);
}
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.social-link:hover { color: var(--c-white); }

.footer-wa { margin-top: 4px; }

.footer-copy {
  border-top: 1px solid rgba(140,80,231,0.15);
  padding-block: 20px;
  text-align: center;
}
.footer-copy p { font-size: 0.8rem; color: var(--c-text-dim); }

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* =============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================= */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float svg { width: 28px; height: 28px; color: #fff; }
.wa-float:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.wa-float:active { transform: scale(0.96); }

/* Pulso sutil */
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.35);
  animation: waPulse 2.5s ease infinite;
}
@keyframes waPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.35); }
}

@media (max-width: 480px) {
  .wa-float { width: 48px; height: 48px; bottom: 20px; right: 16px; }
  .wa-float svg { width: 24px; height: 24px; }
}
