:root {
  --orange: #D94F2B;
  --purple: #6B5B9E;
  --white: #FFFFFF;
  --dark: #201A2B;
  --gray-text: #4A4550;
  --bg-alt: #FAF7F5;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-text);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--dark); }

a { color: var(--orange); text-decoration: none; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid #eee;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-slot { display: flex; align-items: center; height: 100%; }
.logo-img { height: 48px; width: auto; border-radius: 8px; object-fit: cover; }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-btn {
  border: 1px solid var(--purple);
  color: var(--purple);
  background: transparent;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.lang-btn:hover { background: var(--purple); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); }

/* HERO */
.hero { padding: 80px 0; background: linear-gradient(135deg, var(--bg-alt) 0%, var(--white) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

.eyebrow {
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hero-text h1 { font-size: 2.6rem; font-weight: 700; margin-bottom: 16px; }
.hero-sub { font-size: 1.05rem; margin-bottom: 28px; max-width: 520px; }

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #b8401f; }
.btn-outline { border: 2px solid var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--white); }

.hero-media { display: flex; justify-content: center; }
.hero-photo {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  border: 4px solid var(--white);
  box-shadow: 0 20px 40px rgba(107, 91, 158, 0.2);
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #ddd; }
.section-dark h2, .section-dark a { color: var(--white); }

.section-title {
  font-size: 2rem;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 14px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 4px;
  background: var(--orange);
  border-radius: 2px;
}

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; margin-bottom: 40px; }
.about-text { text-align: justify; font-size: 1.02rem; }
.about-meta { display: grid; gap: 24px; }
.meta-block h3 { font-size: 1rem; color: var(--purple); margin-bottom: 10px; }
.meta-block ul { list-style: none; }
.meta-block li { padding: 4px 0; border-bottom: 1px dashed #e0dce8; font-size: 0.92rem; }

.tools h3 { font-size: 1rem; color: var(--purple); margin-bottom: 14px; }
.tools-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tools-list span {
  background: var(--bg-alt);
  border: 1px solid #eee;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* SERVICES */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid #eee;
  border-top: 4px solid var(--orange);
  border-radius: 10px;
  padding: 28px 24px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--purple); }
.card p { font-size: 0.92rem; }

/* CASES */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.case-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(32, 26, 43, 0.09);
  border: 1px solid #f0ece5;
  display: flex;
  flex-direction: column;
}
.case-screenshot {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  background: #f4f1ee;
}
.case-content { padding: 26px 28px 28px; }
.case-content h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  position: relative;
  padding-left: 14px;
}
.case-content h3::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--orange);
}
.case-content p { font-size: 0.93rem; padding-left: 14px; }
.cases-note { margin-top: 20px; font-size: 0.8rem; color: #999; font-style: italic; }

/* CASE MEDIA: fotos completas, sin recortar, una junto a otra */
.case-media {
  display: flex;
  gap: 2px;
  background: #f4f1ee;
  height: 300px;
}
.case-media img {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  background: #f4f1ee;
  cursor: zoom-in;
}

@media (max-width: 640px) {
  .case-media { height: 220px; }
}

/* CASE IMAGE GALLERY (grilla estática, sin recortes ni animaciones) */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #eee;
}
.case-gallery img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.case-gallery img.wide { grid-column: span 3; height: 220px; object-fit: contain; background: var(--dark); }

@media (max-width: 640px) {
  .case-gallery img { height: 140px; }
  .case-gallery img.wide { height: 180px; }
}

/* CASE IMAGE CAROUSEL */
.case-carousel { position: relative; height: 260px; overflow: hidden; background: var(--bg-alt); }
.case-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.case-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 16, 26, 0.45);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.carousel-nav:hover { background: rgba(20, 16, 26, 0.7); }
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.carousel-dots button.active { background: var(--white); width: 18px; border-radius: 4px; }

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

@media (max-width: 640px) {
  .case-screenshot { height: 220px; }
}

.client-wall { margin-top: 40px; }
.client-wall h3 { font-size: 1.1rem; color: var(--purple); margin-bottom: 16px; }
.client-list span { background: var(--white); border: 1px solid #e6e0ee; }

.footer-logo { height: 32px; width: auto; border-radius: 6px; margin-bottom: 10px; }

/* CAMPAIGN HIGHLIGHTS */
.campaign-highlights { margin-top: 48px; }
.campaign-highlights h3, .other-industries h3 { font-size: 1.1rem; color: var(--purple); margin-bottom: 20px; }

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.highlight-card {
  background: var(--bg-alt);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px 22px;
}

.highlight-account {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.highlight-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.highlight-card li { font-size: 0.9rem; color: var(--gray-text); }
.highlight-card li strong { color: var(--orange); font-family: var(--font-heading); }

@media (max-width: 640px) {
  .highlight-grid { grid-template-columns: 1fr; }
}

/* OTHER INDUSTRIES */
.other-industries { margin-top: 48px; }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.industry-card {
  background: var(--white);
  border: 1px solid #eee;
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  padding: 18px 20px;
}

.industry-card h4 { font-size: 0.95rem; margin-bottom: 6px; color: var(--purple); }
.industry-card p { font-size: 0.85rem; color: var(--gray-text); }

@media (max-width: 780px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .industries-grid { grid-template-columns: 1fr; }
}

/* BRAND CAROUSEL */
.brand-carousel { margin-top: 56px; }
.brand-carousel h3 { font-size: 1.1rem; color: var(--purple); margin-bottom: 20px; }

.carousel-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: carousel-scroll 45s linear infinite;
}

.carousel-track:hover { animation-play-state: paused; }

@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.carousel-item {
  flex: 0 0 auto;
  width: 220px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.carousel-item-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 14px;
}

.carousel-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  margin-bottom: 6px;
}

.carousel-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.carousel-logo.initials {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--purple));
}

.carousel-name { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.carousel-tag { font-size: 0.75rem; color: var(--gray-text); }

.carousel-photo {
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: top;
  display: block;
  background: var(--bg-alt);
  border-top: 1px solid #eee;
}

@media (max-width: 560px) {
  .carousel-item { width: 180px; }
  .carousel-photo { height: 130px; }
}

/* CONTACT */
.contact-inner { text-align: center; }
.contact-inner .section-title::after { left: 50%; transform: translateX(-50%); }
.contact-details {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
  font-size: 1rem;
}
.social-links { display: flex; justify-content: center; gap: 20px; }
.social-links a { border: 1px solid var(--orange); padding: 8px 18px; border-radius: 20px; color: var(--orange); }
.social-links a:hover { background: var(--orange); color: var(--white); }

/* FOOTER */
.site-footer { padding: 24px 0; text-align: center; font-size: 0.82rem; color: #999; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero-inner, .about-grid, .cases-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    display: none;
    border-bottom: 1px solid #eee;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-media { order: -1; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2rem; }
}
