/* ================================================== */
/* RESET Y BASE */
/* ================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================================================== */
/* HEADER */
/* ================================================== */
header {
  background-color: #000;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 140px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  font-weight: 500;
}

nav ul li a:hover {
  color: #999;
}

/* Header al hacer scroll */
header.scrolled {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ================================================== */
/* HERO PRINCIPAL */
/* ================================================== */
.hero {
  background-color: #111;
  padding: 120px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 40px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #fff;
  color: #000;
}

.btn-primary:hover {
  background-color: #ccc;
}

.btn-secondary {
  border: 1px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #fff;
  color: #000;
}

/* ================================================== */
/* ABOUT */
/* ================================================== */
.about {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 40px;
}

.about-text p {
  color: #ccc;
  max-width: 600px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* ================================================== */
/* SERVICIOS */
/* ================================================== */
.services {
  padding: 80px 0;
  background-color: #111;
  text-align: center;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  max-width: 280px;
  transition: all 0.3s;
}

.card:hover {
  background-color: #333;
  transform: translateY(-5px);
}

/* ================================================== */
/* PORTFOLIO */
/* ================================================== */
.portfolio {
  padding: 80px 0;
  background-color: #000;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.gallery-item img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay span {
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ================================================== */
/* CONTACTO */
/* ================================================== */
.contact {
  padding: 80px 0;
  background-color: #111;
  text-align: center;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 30px auto 0;
}

.contact input,
.contact textarea {
  padding: 12px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #aaa;
}

/* ================================================== */
/* FOOTER */
/* ================================================== */
footer {
  background-color: #000;
  text-align: center;
  padding: 30px 0;
  color: #777;
  font-size: 0.9rem;
}

/* ================================================== */
/* SECCIONES DE PROYECTOS */
/* ================================================== */
.project {
  background-color: #000;
  color: #fff;
  padding: 100px 0;
}

.project-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.project h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 0.5px;
}

.project-description {
  text-align: center;
  color: #ccc;
  max-width: 800px;
  margin: 0 auto 70px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.brand-section {
  margin-bottom: 100px;
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  margin-bottom: 10px;
  text-align: center;
}

.brand-tagline {
  color: #aaa;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.brand-info h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  margin-top: 25px;
  font-family: 'Playfair Display', serif;
  color: #fff;
}

.brand-info p,
.process-list li {
  color: #ccc;
  line-height: 1.8;
}

.process-list {
  list-style: none;
  margin-top: 10px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.project-gallery img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-gallery img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.project-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 100px auto;
  width: 60%;
}

/* Botón Behance */
.behance-link {
  text-align: center;
  margin-top: 60px;
}

.btn-behance {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 30px;
  background-color: #fff;
  color: #000;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-behance:hover {
  background-color: #e5e5e5;
}

/* ================================================== */
/* HERO VISUAL PARA PÁGINA DE PROYECTOS */
/* ================================================== */
.project-hero {
  position: relative;
  background-image: url("../img/hero-branding.jpg");
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.project-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  margin-bottom: 15px;
}

.project-hero-content p {
  font-size: 1.1rem;
  color: #ccc;
}

/* ================================================== */
/* RESPONSIVE */
/* ================================================== */
@media (max-width: 900px) {
  .logo img {
    height: 120px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .service-cards {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 130px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project h2 {
    font-size: 1.8rem;
  }

  .brand-title {
    font-size: 1.6rem;
  }
}
