/* =============================================
   Samuel Sánchez Portal – Minimalist Luxury
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #f71583;
  --primary-glow: rgba(247, 21, 131, 0.3);
  --bg: #000000;
  --bg-card: #0a0a0a;
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: #888888;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  background: transparent;
}

.nav-brand {
  font-size: 2.2rem; font-weight: 800;
  color: var(--text); text-decoration: none;
  letter-spacing: -1.5px;
}
.nav-brand span { color: var(--primary); }

/* =============================================
   SECTIONS COMMON
   ============================================= */
section { position: relative; z-index: 1; padding: 0.5rem 5%; }

.section-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #555; margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 2.2rem); font-weight: 500;
  line-height: 1.1; margin-bottom: 0.5rem; letter-spacing: -0.04em;
  background: linear-gradient(270deg, #fff 0%, #fff 30%, #303030 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   HERO
   ============================================= */
#hero {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  padding-top: 110px !important;
  padding-bottom: 0 !important;
}

.hero-content {
  width: 100%;
  max-width: 800px;
  padding: 0 5%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid var(--glass-border);
  border-radius: 99px; padding: 0.5rem 1.25rem;
  font-size: 0.85rem; font-weight: 500; color: #fff;
  margin-bottom: 0.75rem;
}
.dot-gold {
  width: 10px; height: 10px; background: #eab308; border-radius: 50%;
  box-shadow: 0 0 12px #eab308;
  position: relative;
}
.dot-gold::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid rgba(234, 179, 8, 0.3);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

.gradient-text {
  background: linear-gradient(270deg, #fff 0%, #fff 30%, #303030 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}
.hero-name {
  font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 800;
  line-height: 1.2; letter-spacing: -1.5px; margin-bottom: 1rem;
}

.hero-marquee {
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 1rem;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 40s linear infinite;
  gap: 3rem; align-items: center;
}
.marquee-item {
  font-size: 0.85rem; font-weight: 700;
  color: #444; letter-spacing: 1px;
  position: relative;
}
.marquee-item:not(:last-child)::after {
  content: '|'; position: absolute;
  right: -1.5rem; color: rgba(255, 255, 255, 0.25);
}
@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   TWO WORLDS (COMPANIES)
   ============================================= */
#companies { padding-top: 3rem; }

.services-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.service-dual-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 2.5rem 1.75rem 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}
.service-dual-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(247, 21, 131, 0.22);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(247, 21, 131, 0.07), inset 0 1px 0 rgba(255,255,255,0.1);
}

.card-icon-container {
  width: 88px; height: 88px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; color: rgba(255,255,255,0.8);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.service-dual-card:hover .card-icon-container {
  transform: translateY(-10px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5), 0 0 20px rgba(247,21,131,0.15), inset 0 1px 0 rgba(255,255,255,0.12);
}

.card-title {
  font-size: 1.7rem; font-weight: 500; margin-bottom: 0.5rem; letter-spacing: -0.03em;
  background: linear-gradient(270deg, #fff 0%, #fff 30%, rgba(255,255,255,0) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card-desc { color: #7e7e7e; font-size: 0.875rem; line-height: 1.5; margin-bottom: 1.75rem; max-width: 200px; }

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 0.6rem 1.5rem; border-radius: 10px;
  font-weight: 600; font-size: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn-pill:hover { background: #ff4fa1; transform: translateY(-2px); box-shadow: 0 4px 24px var(--primary-glow); }

/* =============================================
   NEWSLETTER
   ============================================= */
#newsletter { background: #000; border-top: 1px solid var(--glass-border); }
.newsletter-container { max-width: 650px; margin: 0 auto; padding: 2rem 1.5rem; }

.newsletter-content-wrap {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  background: rgba(20, 20, 20, 0.57);
  border: 1.6px solid #262626;
  padding: 1.5rem 2rem; border-radius: 16px;
  box-shadow: 0 1px 25px -7px rgba(0, 0, 0, 0.25);
}

.newsletter-icon-box {
  position: relative;
  width: 50px; height: 50px;
  background: #111; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #555;
  flex-shrink: 0;
}
.notification-dot {
  position: absolute; top: -4px; right: -4px;
  background: #ff5f57; color: #fff;
  font-size: 0.6rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #111;
}

.newsletter-info { text-align: left; }
.newsletter-title {
  font-size: 1.1rem; font-weight: 500; margin-bottom: 0.75rem;
  background: linear-gradient(270deg, #fff 0%, #fff 30%, rgba(255,255,255,0) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.newsletter-title strong { font-weight: 700; }

.newsletter-pills { display: flex; gap: 0.75rem; }
.news-pill {
  background: #757575;
  border: 1px solid #222;
  color: #fff; padding: 0.5rem 1.25rem;
  border-radius: 10px; font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer; transition: 0.3s;
}
.news-pill:hover { background: #888; transform: translateY(-2px); }

/* =============================================
   AUTHORITY
   ============================================= */
#authority { padding: 1rem 5%; }
.authority-inner { max-width: 1000px; margin: 0 auto; }
.authority-header { text-align: center; margin-bottom: 1rem; }

.video-frame {
  position: relative; border-radius: 10px; overflow: hidden;
  border-top: 1px solid rgba(242, 242, 242, 0.35);
  border-left: 0; border-right: 0; border-bottom: 0;
  aspect-ratio: 16/9;
  background: rgba(252, 252, 252, 0.08);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.video-frame-header {
  height: 40px; background: rgba(255,255,255,0.04);
  display: flex; align-items: center;
  padding: 0 1.5rem; gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.video-frame-header span { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #e3e3e3; }
.dot-yellow { background: #e3e3e3; }
.dot-green { background: #e3e3e3; }

.video-body {
  width: 100%; height: calc(100% - 40px);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: #333;
}
.video-body i { font-size: 5rem; color: #222; margin-bottom: 1rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 6rem 5% 4rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}
.footer-socials { display: flex; justify-content: center; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-socials a { color: #444; font-size: 1.5rem; transition: 0.3s; }
.footer-socials a:hover { color: #fff; transform: translateY(-3px); }
.footer-copy { font-size: 0.9rem; color: #222; letter-spacing: 0.5px; }

/* =============================================
   RESPONSIVE
   ============================================= */

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { height: 70px; padding: 0 6%; }
  .nav-brand { font-size: 1.75rem; }

  /* Hero */
  #hero { padding-top: 90px !important; }
  .hero-content { padding: 0 4%; }
  .hero-name { font-size: clamp(2rem, 8vw, 2.8rem); letter-spacing: -1px; }
  .hero-badge { font-size: 0.78rem; padding: 0.45rem 1rem; }

  /* Companies */
  #companies { padding-top: 2rem; }
  .services-dual-grid { grid-template-columns: 1fr; max-width: 420px; }

  /* Newsletter */
  .newsletter-content-wrap {
    flex-direction: column; text-align: center;
    gap: 1.5rem; padding: 1.75rem 1.25rem;
  }
  .newsletter-info { text-align: center; }
  .newsletter-pills { flex-direction: column; align-items: center; }

  /* Authority */
  #authority { padding: 2rem 4%; }
  .authority-header { margin-bottom: 1.5rem; }

  /* Footer */
  .footer { padding: 4rem 5% 2.5rem; }
  .footer-socials { gap: 2rem; }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  /* General */
  section { padding: 2rem 5%; }

  /* Navbar */
  .navbar { height: 64px; padding: 0 5%; }
  .nav-brand { font-size: 1.5rem; }

  /* Hero */
  #hero { padding-top: 80px !important; padding-bottom: 0 !important; }
  .hero-content { padding: 0 2%; }
  .hero-name {
    font-size: clamp(1.75rem, 9vw, 2.4rem);
    letter-spacing: -0.75px;
    line-height: 1.15;
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 0.4rem 0.9rem;
    gap: 0.5rem;
  }
  .dot-gold { width: 8px; height: 8px; }
  .hero-marquee { margin-bottom: 1.5rem; }
  .marquee-item { font-size: 0.75rem; }

  /* Companies */
  #companies { padding-top: 1.5rem; }
  .services-dual-grid { max-width: 100%; gap: 0.85rem; }
  .service-dual-card { padding: 2rem 1.5rem 1.75rem; border-radius: 16px; }
  .card-icon-container { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 1.25rem; }
  .card-title { font-size: 1.45rem; }
  .card-desc { font-size: 0.85rem; max-width: 100%; margin-bottom: 1.5rem; }
  .btn-pill { width: 100%; padding: 0.7rem 1rem; font-size: 0.82rem; border-radius: 10px; }

  /* Newsletter */
  #newsletter { padding: 0 4%; }
  .newsletter-container { padding: 1.5rem 0; }
  .newsletter-content-wrap { padding: 1.5rem 1rem; border-radius: 12px; gap: 1.25rem; }
  .newsletter-title { font-size: 0.95rem; }
  .news-pill { font-size: 0.78rem; padding: 0.5rem 1rem; }

  /* Authority */
  #authority { padding: 1.5rem 5%; }
  .section-tag { font-size: 0.72rem; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .video-frame { border-radius: 8px; }
  .video-frame-header { height: 32px; padding: 0 1rem; }
  .video-frame-header span { width: 8px; height: 8px; }

  /* Footer */
  .footer { padding: 3rem 5% 2rem; }
  .footer-socials { gap: 1.5rem; margin-bottom: 1.75rem; }
  .footer-socials a { font-size: 1.25rem; }
  .footer-copy { font-size: 0.78rem; }

  /* Scroll to top */
  #scroll-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; }
}
