/* =========================================
   MULTIMEDIA CHEFS — Redesign 2025
   Design: Dark Tech / Creative Agency
   ========================================= */

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

:root {
  --bg:       #080808;
  --bg2:      #111111;
  --bg3:      #181818;
  --accent:   #FF4500;
  --accent2:  #FF7043;
  --white:    #FFFFFF;
  --gray:     #888888;
  --light:    #CCCCCC;
  --border:   rgba(255,255,255,0.08);
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --font-body:    'Outfit', sans-serif;
  --radius:   4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

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

/* --- CUSTOM CURSOR --- */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-follower {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,69,0,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.2s, height 0.2s, opacity 0.2s;
}
body:hover .cursor { opacity: 1; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* --- UTILITIES --- */
.accent { color: var(--accent); }
.section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) clamp(24px, 6vw, 100px);
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 480px;
  margin-bottom: 60px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header.left { text-align: left; }

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,69,0,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn.full { width: 100%; justify-content: center; }

/* =========================================
   NAVBAR
   ========================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 5vw, 80px);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(12px);
  padding-top: 14px;
  padding-bottom: 14px;
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 40px;
  width: auto;
  filter: brightness(1);
}
.nav-logo span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
}
.nav-cta::after { display: none; }
.nav-cta:hover { opacity: 0.85; }
.nav-toggle { display: none; }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) saturate(0.7);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,8,8,0.75) 0%,
    rgba(8,8,8,0.4) 50%,
    rgba(255,69,0,0.12) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 clamp(24px, 6vw, 100px);
  padding-top: 100px;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  transition-delay: 0.1s;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 1;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--light);
  margin-bottom: 40px;
  max-width: 540px;
  transition-delay: 0.3s;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  transition-delay: 0.4s;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: clamp(24px, 6vw, 100px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gray);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}
.hero-stats {
  position: absolute;
  bottom: 40px;
  right: clamp(24px, 6vw, 100px);
  z-index: 2;
  display: flex;
  gap: 40px;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* =========================================
   SERVICES
   ========================================= */
.services-section {
  background: var(--bg2);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background var(--transition);
  position: relative;
}
.service-card:hover { background: var(--bg3); }
.service-card:hover .service-img img {
  transform: scale(1.06);
  filter: brightness(0.7) saturate(1.2);
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
  z-index: 2;
}
.service-card:hover::before { width: 100%; }
.service-img {
  height: 160px;
  overflow: hidden;
}
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.85) saturate(0.9);
}
.service-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.service-body p {
  font-size: 0.85rem;
  color: var(--gray);
  flex: 1;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: rgba(255,69,0,0.08);
  border: 1px solid rgba(255,69,0,0.2);
  padding: 4px 10px;
  border-radius: 2px;
  align-self: flex-start;
  margin-top: 8px;
}

/* =========================================
   SKILLS
   ========================================= */
.skills-section {
  position: relative;
  overflow: hidden;
}
.skills-bg {
  position: absolute;
  inset: 0;
}
.skills-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.15) saturate(0.3);
}
.skills-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8,8,8,0.95) 50%, rgba(8,8,8,0.7) 100%);
}
.skills-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.skills-bars { display: flex; flex-direction: column; gap: 24px; }
.skill-item {}
.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.skill-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}
.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.skill-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   PROJECTS
   ========================================= */
.projects-section { background: var(--bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}
.project-card {
  background: var(--bg2);
  padding: 40px;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
}
.project-card:hover { background: var(--bg3); }
.project-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
}
.project-card.featured .project-content {
  padding: 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-img-wrap {
  width: 45%;
  overflow: hidden;
  flex-shrink: 0;
}
.project-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(20%) brightness(0.85);
  transition: transform 0.6s ease, filter 0.5s ease;
}
.project-card:hover .project-img-wrap img {
  transform: scale(1.04);
  filter: grayscale(0%) brightness(0.9);
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin: 8px 0 12px;
}
.project-content p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
}
.project-client {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

/* =========================================
   TEAM
   ========================================= */
.team-section { background: var(--bg2); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.team-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  border-radius: 2px;
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(30%) brightness(0.9);
  transition: transform 0.5s ease, filter 0.4s ease;
}
.team-card:hover .team-photo img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1);
}
.team-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.9), transparent);
  padding: 24px 16px 16px;
  transform: translateY(8px);
  opacity: 0;
  transition: var(--transition);
}
.team-card:hover .team-overlay { opacity: 1; transform: translateY(0); }

/* Placeholder para miembros sin foto */
.team-photo--placeholder {
  background: linear-gradient(135deg, var(--bg3) 0%, #1e1e1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.team-photo--placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,69,0,0.08) 0%, transparent 60%);
}
.team-initials {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  opacity: 0.6;
  user-select: none;
  z-index: 1;
  transition: opacity var(--transition);
}
.team-card:hover .team-initials { opacity: 0.9; }
.team-role-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}
.team-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.team-info p {
  font-size: 0.82rem;
  color: var(--gray);
  font-style: italic;
  line-height: 1.6;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-section { position: relative; overflow: hidden; }
.contact-bg {
  position: absolute;
  inset: 0;
}
.contact-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.12) saturate(0.2);
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,8,8,0.96) 55%, rgba(255,69,0,0.06) 100%);
}
.contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info .section-title { margin-bottom: 16px; }
.contact-info > p {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 40px;
  line-height: 1.7;
}
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-item a, .contact-item span {
  font-size: 0.9rem;
  color: var(--light);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--accent); }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  position: relative;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 16px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255,69,0,0.04);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group label { display: none; }
.form-success {
  display: none;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding: 12px;
  border: 1px solid rgba(255,69,0,0.3);
  border-radius: var(--radius);
  background: rgba(255,69,0,0.06);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px clamp(24px, 6vw, 100px);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { height: 48px; width: auto; }
.footer-brand span {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--white);
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}
.footer-copy a { color: var(--accent); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-inner { grid-template-columns: 1fr; gap: 48px; }
  .skills-overlay {
    background: rgba(8,8,8,0.92);
  }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .project-card.featured { flex-direction: column; }
  .project-img-wrap { width: 100%; height: 280px; }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    transition: var(--transition);
  }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 100vw);
    height: 100vh;
    background: var(--bg2);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 40px;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: 1; }
  .hero-stats { gap: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-stats { display: none; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
