﻿@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&display=swap");

/* Reset + base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f0f12;
  color: #f3f3f3;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* Header / Nav */
.site-header {
  background:
    radial-gradient(1200px 500px at 30% 0%, rgba(130, 80, 255, 0.25), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(0, 180, 255, 0.18), transparent 60%),
    #0b0b0d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  max-width: 1050px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 150px;
  width: auto;
  display: block;
}

.brand-lines {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.brand-lines span {
  display: inline-block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.brand-lines span:nth-child(1) {
  width: 60px;
}

.brand-lines span:nth-child(2) {
  width: 38px;
}

.brand-lines span:nth-child(3) {
  width: 52px;
}

.brand-lines span:nth-child(4) {
  width: 28px;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

/* Links del nav */
.nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Hero */
.hero {
  min-height: 60vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
    url("img/studio.jpeg") center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 56px 16px;
}

.hero-content {
  max-width: 1050px;
  margin: 0 auto;
}

.hero-kicker {
  margin: 0 0 10px;
  opacity: 0.85;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.1;
}

.hero-text {
  margin: 0 0 20px;
  max-width: 55ch;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #ffffff;
  color: #0b0b0d;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Sections */
.section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.section h2 {
  margin: 0;
  font-size: 22px;
}

.section-title-pro {
  font-family: "Oswald", "Arial", sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Divider lines (logo inspired) */
.divider {
  display: flex;
  gap: 10px;
  align-items: center;
}

.divider span {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.divider span:nth-child(1) {
  width: 48px;
}

.divider span:nth-child(2) {
  width: 32px;
  opacity: 0.8;
}

.divider span:nth-child(3) {
  width: 40px;
  opacity: 0.65;
}

/* === Servicios (Grid) === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.service-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

.service-card h3 {
  margin-top: 0;
}

/* === Producciones (videos) === */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.video-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.video-info {
  padding: 16px;
}

.video-info h3 {
  margin: 0 0 8px;
}

.video-info p {
  margin: 0 0 12px;
  opacity: 0.9;
}

/* responsive video (mantiene proporción 16:9) */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === Producciones (lista + spotify al costado) === */
.work-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.work-item {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 12px;
  transition: box-shadow 0.2s ease;
  backdrop-filter: blur(2px);
  overflow: hidden;
  min-width: 0;
}

.work-item:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.work-cover {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex: 0 0 96px;
}

.work-info {
  padding: 12px 14px 16px;
  min-width: 0;
  flex: 1 1 220px;
}

.work-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.work-info p {
  margin: 0;
  opacity: 0.85;
  font-size: 14px;
}

.work-player {
  display: grid;
  gap: 8px;
  overflow: hidden;
  min-width: 0;
  flex: 1 1 420px;
}

.work-player iframe {
  width: 100%;
  height: 110px;
  border: 0;
  display: block;
}


/* Cards */
.cards {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.card {
  flex: 1 1 240px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  opacity: 0.9;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:visited {
  color: inherit;
}

.card-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 4px;
  border-radius: 16px;
}

/* Contact */
.contact{
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.map-box{
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-embed{
  width: 90%;
  height: 100px;
  max-height: 110px;
  border: 0;
  display: block;
  margin: 0 auto;
}

/* En móvil apilado */
@media (max-width: 768px){
  .contact{
    grid-template-columns: 1fr;
  }
  .map-embed{
    min-height: 120px;
  }
}
/* Footer */
.footer {
  padding: 22px 16px 26px;
  text-align: center;
  opacity: 0.9;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-lines {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-lines span {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.footer-lines span:nth-child(1) {
  width: 46px;
}

.footer-lines span:nth-child(2) {
  width: 30px;
  opacity: 0.8;
}

.footer-lines span:nth-child(3) {
  width: 42px;
  opacity: 0.7;
}

.footer-lines span:nth-child(4) {
  width: 26px;
  opacity: 0.6;
}

/* === Dropdown Navbar (Producciones) === */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropbtn {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dropbtn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.caret {
  font-size: 12px;
  opacity: 0.8;
  transition: transform 0.18s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 15, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Estado abierto (lo maneja JS) */
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown.open .caret {
  transform: rotate(180deg);
}

/* PC: también abre con hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Mobile: que empuje el layout hacia abajo */
@media (max-width: 768px) {
  .dropdown {
    width: 100%;
  }

  .dropbtn {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
}

/* === Carrusel de fotos (Index) === */
.carousel {
  margin-top: 18px;
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel-slide {
  width: 100%;
  flex: 0 0 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 26px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.25);
}

.carousel-dots .dot.active {
  background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 600px) {
  .carousel-slide {
    height: 220px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

/* === Fondo con fotos a los costados (solo index) === */
/* Fallback por si el JS tarda en cargar */
body.home {
  --bg-left: url("img/bg-left-1.jpeg");
  --bg-right: url("img/bg-right-1.jpeg");
}

body.home::before,
body.home::after {
  content: "";
  position: fixed;
  top: 0;
  width: 260px;
  height: 100vh;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: blur(3px) saturate(1.15) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}

body.home::before {
  left: 0;
  background-image: var(--bg-left);
}

body.home::after {
  right: 0;
  background-image: var(--bg-right);
}

.site-header {
  position: relative;
  z-index: 3;
}

main,
footer {
  position: relative;
  z-index: 1;
}

/* === Formulario de contacto === */
.contact-form {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 700;
  font-size: 14px;
  opacity: 0.9;
}

.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 8px;
}


/* En tablet/móvil mantenemos el fondo lateral, pero más sutil */
@media (max-width: 900px) {
  body.home::before,
  body.home::after {
    width: 180px;
    opacity: 0.18;
    filter: blur(2px) saturate(1.1) contrast(1.05);
  }

  .section {
    background: rgba(255, 255, 255, 0.03);
  }

  .card,
  .service-card,
  .video-card,
  .work-item,
  .carousel-viewport {
    background: rgba(0, 0, 0, 0.18);
  }
}

@media (max-width: 600px) {
  body.home::before,
  body.home::after {
    width: 120px;
    opacity: 0.16;
  }

  .form-group input,
  .form-group textarea {
    background: rgba(0, 0, 0, 0.28);
  }
}

/* Responsive general */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }

  .hero-title {
    font-size: 32px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-player {
    flex-basis: 100%;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .work-cover {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
}

/* Fix dropdown: que no lo tape nada y que sea clickeable */
.site-header,
.nav,
.nav-links,
.dropdown {
  position: relative;
}

.dropdown-menu {
  z-index: 99999;
}

.dropdown-menu,
.dropdown-menu a {
  pointer-events: auto;
}

.brand,
.brand-lines,
.brand-lines span {
  pointer-events: none;
}

.nav-links,
.nav-links * {
  pointer-events: auto;
}

/* === WhatsApp flotante === */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #25d366;
  color: #0b0b0d;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  z-index: 9999;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-float.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  fill: #0b0b0d;
}

@media (max-width: 600px) {
  .whatsapp-float {
    width: 44px;
    height: 44px;
  }
  .whatsapp-float svg {
    width: 22px;
    height: 22px;
  }
}


