/*
Theme Name: TucMara Sci-Fi Theme
Theme URI: https://tucmara.com/
Author: TucMara.com
Author URI: https://tucmara.com/
Description: Tema corporativo Sci-Fi / High-Tech para TucMara.com con motor 3D de Sistema Solar, Metodología S.T.A.R. y soporte completo para portfolio e IA.
Version: 1.0.6
Text Domain: tucmara
*/

/* ==========================================================================
   TUCMARA.COM - ESTUDIO DE DESARROLLO WEB & APPS CON IA
   Design System: Premium Sci-Fi / High-Tech Cosmic (Luxurious & Adaptive Mobile)
   ========================================================================== */

:root {
  /* Curated Harmonious Color Palette */
  --bg-dark-cosmos: #030712;
  --bg-deep-navy: #0b0f19;
  --bg-card-glass: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.75);
  --bg-pill-glass: rgba(56, 189, 248, 0.08);

  /* Primary Accent Colors */
  --color-cyan-glow: #38bdf8;
  --color-blue-electric: #0284c7;
  --color-indigo-royal: #6366f1;
  --color-purple-deep: #a855f7;
  --color-amber-accent: #f59e0b;
  --color-star-gold: #fbbf24;

  /* Typography Colors */
  --color-text-main: #f8fafc;
  --color-text-subtle: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;

  /* Borders & Glassmorphism */
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-cyan-glow: rgba(56, 189, 248, 0.3);
  --border-cyan-active: rgba(56, 189, 248, 0.7);

  /* Typography Stack */
  --font-heading: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-accent: 'Outfit', sans-serif;

  /* Shadows & Glow Effects */
  --shadow-glass-card: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1);
  --glow-soft-cyan: 0 0 20px rgba(56, 189, 248, 0.25);
  --glow-soft-amber: 0 0 20px rgba(245, 158, 11, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark-cosmos);
  color: var(--color-text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #0f172a 0%, #030712 75%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hud-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  line-height: 1.25;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 30%, var(--color-cyan-glow) 70%, var(--color-indigo-royal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-amber-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-star-gold) 60%, var(--color-amber-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* NAVBAR */
.tuc-navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1180px;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tuc-navbar.scrolled {
  top: 12px;
  padding: 8px 22px;
  background: rgba(11, 15, 25, 0.95);
  border-color: var(--border-cyan-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--glow-soft-cyan);
}

.tuc-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.tuc-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-cyan-glow);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.tuc-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.tuc-logo-text span {
  color: var(--color-cyan-glow);
  font-weight: 400;
}

.tuc-mobile-toggle {
  display: none;
}

.tuc-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.tuc-nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.tuc-nav-links a:hover,
.tuc-nav-links a.active {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

button {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  cursor: pointer;
}

.tuc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-blue-electric) 0%, var(--color-indigo-royal) 100%);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
}

.tuc-btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-amber-accent) 0%, #d97706 100%);
  color: #0f172a;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
}

.tuc-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-subtle);
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.btn-link-hud {
  background: transparent !important;
  border: none !important;
  color: var(--color-cyan-glow) !important;
  text-decoration: none !important;
  font-family: var(--font-accent) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  padding-top: 150px;
  padding-bottom: 60px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  z-index: 2;
}

.hero-bg-graphic {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  height: 620px;
  object-fit: cover;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 20%, transparent 75%);
  opacity: 0.65;
  pointer-events: none;
}

.hero-header {
  text-align: center;
  max-width: 860px;
  padding: 0 20px;
  z-index: 5;
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--bg-pill-glass);
  border: 1px solid var(--border-cyan-glow);
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-cyan-glow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: var(--glow-soft-cyan);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan-glow);
  box-shadow: 0 0 10px var(--color-cyan-glow);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--color-text-subtle);
  line-height: 1.65;
  font-weight: 300;
  max-width: 760px;
  margin: 0 auto;
}

/* 3D SOLAR SYSTEM CANVAS */
.solar-system-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 480px;
  margin-top: 10px;
  z-index: 5;
}

#solarCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hud-readout-panel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-cyan-glow);
  border-radius: 16px;
  padding: 16px 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 380px;
  box-shadow: var(--shadow-glass-card);
}

.hud-controls-panel {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

/* CONTAINER & SECTIONS */
.tuc-section {
  position: relative;
  padding: 100px 20px;
  z-index: 2;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
}

.section-kicker {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-cyan-glow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 12px;
  background: var(--bg-pill-glass);
  padding: 4px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-cyan-glow);
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-subtle);
  font-weight: 300;
}

/* PORTFOLIO GRID & CARDS */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-muted);
  padding: 8px 22px;
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--bg-pill-glass);
  border-color: var(--border-cyan-glow);
  color: #ffffff;
  box-shadow: var(--glow-soft-cyan);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-glass-card);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-cyan-glow);
  box-shadow: var(--shadow-glass-card), var(--glow-soft-cyan);
}

.project-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0f172a;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--border-cyan-glow);
  color: var(--color-cyan-glow);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.project-tagline {
  font-size: 0.94rem;
  color: var(--color-text-subtle);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 20px;
  flex: 1;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-muted);
  font-family: var(--font-accent);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 6px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   SECCIÓN DE ECOSISTEMA Y RESPALDOS (SOLVENCIA DE AGENCIA)
   ========================================================================== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.eco-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 36px 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-glass-card);
  transition: all 0.35s ease;
}

.eco-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-cyan-glow);
  box-shadow: var(--shadow-glass-card), var(--glow-soft-cyan);
}

.eco-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.eco-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* SINGLE PROJECT PAGE STYLING */
.single-project-wrap {
  padding-top: 140px;
  padding-bottom: 80px;
  max-width: 960px;
  margin: 0 auto;
}

.single-project-hero {
  position: relative;
  width: 100%;
  max-height: 480px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-cyan-glow);
  margin-bottom: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--glow-soft-cyan);
}

.single-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-project-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-cyan-glow);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(25px);
  box-shadow: var(--shadow-glass-card);
}

.single-project-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.single-project-content {
  color: var(--color-text-subtle);
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 32px;
}

.single-project-content p {
  margin-bottom: 20px;
}

.single-project-content h3 {
  font-size: 1.4rem;
  color: var(--color-cyan-glow);
  margin: 30px 0 14px;
  font-weight: 700;
}

.single-project-content ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.single-project-content li {
  margin-bottom: 8px;
  color: #ffffff;
}

/* FOOTER */
.tuc-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  background: rgba(3, 7, 18, 0.98);
  padding: 70px 20px 35px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 420px;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-accent);
  font-size: 0.88rem;
  color: var(--color-cyan-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-mark {
  color: var(--color-cyan-glow);
  font-family: var(--font-accent);
  font-weight: 600;
}

/* RESPONSIVE MOBILE STYLES (≤ 768px) */
@media (max-width: 768px) {
  .ecosystem-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .tuc-navbar {
    width: 94%;
    top: 12px;
    padding: 10px 18px;
    border-radius: 20px;
    flex-wrap: wrap;
  }

  .tuc-mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    color: #ffffff;
    border: 1px solid var(--border-cyan-glow);
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
  }

  .tuc-nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 14px;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid var(--border-subtle);
  }

  .tuc-nav-links.active {
    display: flex;
  }

  .tuc-nav-links a {
    font-size: 1rem;
    padding: 8px 0;
    width: 100%;
  }

  .hero-section {
    padding-top: 120px;
    padding-bottom: 30px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .solar-system-wrap {
    height: 320px;
  }

  .hud-readout-panel {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    margin-top: 15px;
  }

  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .project-card {
    border-radius: 16px;
  }

  .project-img-wrap {
    height: 180px;
  }

  .project-body {
    padding: 18px;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-tagline {
    font-size: 0.88rem;
  }

  .project-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
