/* ============================================================
   NARRATIVA FILMS — Global Stylesheet
   Inspired by Nitido Productora layout — green accent
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --color-bg: #0A0A0A;
  --color-accent: #00A86B;
  --color-accent-dark: #008C57;
  --color-white: #FFFFFF;
  --color-gray: #1A1A1A;
  --color-gray-light: #2A2A2A;
  --color-text: #E0E0E0;
  --color-text-muted: #999999;
  --color-overlay: rgba(0, 0, 0, 0.45);
  --color-header-scrolled: rgba(10, 10, 10, 0.95);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1280px;
  --header-height: 80px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img, video {
  display: block;
  max-width: 100%;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 2px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: 1px;
}

h3 {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

p {
  font-size: 1rem;
  color: var(--color-text);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px auto 0;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  padding: 12px 36px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3);
}

.btn-accent {
  display: inline-block;
  padding: 14px 50px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 30px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3);
}

.btn-outline {
  display: inline-block;
  padding: 14px 44px;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 30px;
  transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3);
}

/* ============================================================
   HEADER (Nitido-style: logo | nav links | contacto)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 40px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.4s, backdrop-filter 0.4s;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
}

.header-logo img {
  height: 40px;
}

.header-logo .logo-isotipo {
  display: none;
}

/* Desktop nav links (Nitido-style) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-nav a {
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-white);
  text-align: center;
  line-height: 1.3;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.3s;
}

.header-nav a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.header-nav a:hover {
  color: var(--color-accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-contacto {
  padding: 12px 32px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-contacto:hover {
  background: var(--color-accent-dark);
}

/* Hamburger (hidden on desktop, shown on mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 102;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation Drawer (mobile) */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 101;
  padding: 100px 40px 40px;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-drawer.open {
  right: 0;
}

.nav-drawer a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-light);
  transition: color 0.3s, padding-left 0.3s;
}

.nav-drawer a:hover {
  color: var(--color-accent);
  padding-left: 10px;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   HERO SECTION (Nitido-style: fullscreen video + accent mark + text)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.40) 50%,
    rgba(0, 0, 0, 0.70) 80%,
    rgba(10, 10, 10, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 120px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.hero-accent-mark {
  width: 45px;
  height: 45px;
  background: var(--color-accent);
  flex-shrink: 0;
  transform: rotate(-5deg);
}

.hero-text-animated {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -1px;
}

/* ============================================================
   SECTION DIVIDER — Chevron "chat bubble" pointer (Nitido-style)
   ============================================================ */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50px;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 30px solid var(--color-bg);
  z-index: 3;
}

/* Hero chevron (scroll indicator on internal pages) */
.hero-chevron {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  animation: bounceDown 2s ease infinite;
}

.hero-chevron svg {
  width: 36px;
  height: 36px;
  stroke: var(--color-white);
  stroke-width: 2;
  fill: none;
  opacity: 0.7;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Hero separator (V-shape at bottom of internal page heroes) */
.hero-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}

.hero-separator svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ============================================================
   SERVICIOS SECTION (Home - Nitido-style centered)
   ============================================================ */
.servicios-intro {
  text-align: left;
  padding: 60px 0 80px;
  background: var(--color-bg);
}

.servicios-intro .section-title {
  text-align: left;
}

.servicios-intro .section-title::after {
  margin: 16px 0 0;
}

.servicios-list {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-white);
  font-weight: 600;
  margin: 24px 0 32px;
  letter-spacing: 0.5px;
  line-height: 1.8;
  font-style: italic;
}

/* ============================================================
   SERVICE BLOCKS (Nitido-style: alternating white/dark bg)
   ============================================================ */

.service-block {
  position: relative;
  background: var(--color-white);
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 100%;
  overflow: hidden;
  flex-direction: row;
}

/* Even children (Producción=6th, Matrimonios=8th): video LEFT, text RIGHT, WHITE bg */
.service-block:nth-child(even) {
  flex-direction: row-reverse;
  background: var(--color-white);
}

/* Odd children (IA=7th, Marketing=9th): text LEFT, video RIGHT, DARK bg */
.service-block:nth-child(odd) {
  background: var(--color-bg);
}

.service-block-header {
  text-align: left;
  flex: 0 0 30%;
  max-width: 350px;
  padding: 0 40px;
}

/* White-bg blocks: dark text */
.service-block-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: 2px;
  color: var(--color-bg);
}

/* Dark-bg blocks: white text */
.service-block:nth-child(odd) .service-block-header h2 {
  color: var(--color-white);
}

/* Video container — default bracket at top-left */
.service-block-media {
  position: relative;
  flex: 0 0 55%;
  max-width: 700px;
  padding-top: 12px;
  padding-left: 12px;
}

/* For odd blocks (video on RIGHT): bracket goes top-right */
.service-block:nth-child(odd) .service-block-media {
  padding-left: 0;
  padding-right: 12px;
  padding-top: 12px;
}

.service-block-media video,
.service-block-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Green bracket decoration — default top-left */
.media-bracket {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}

.media-bracket::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--color-accent);
}

.media-bracket::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background: var(--color-accent);
}

/* Odd blocks: bracket flips to top-right */
.service-block:nth-child(odd) .media-bracket {
  left: auto;
  right: 0;
}

.service-block:nth-child(odd) .media-bracket::before {
  left: auto;
  right: 0;
}

.service-block:nth-child(odd) .media-bracket::after {
  left: auto;
  right: 0;
}

/* Green accent bar — always on LEFT edge (like Nitido) */
.service-block::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 80px;
  background: var(--color-accent);
}

/* ============================================================
   HUINCHA / TICKER
   ============================================================ */
.huincha {
  background: var(--color-gray);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}

.huincha-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: ticker 30s linear infinite;
  width: max-content;
}

.huincha-track img,
.huincha-logo {
  height: 32px;
  opacity: 0.7;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.huincha-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 3px;
  white-space: nowrap;
  opacity: 0.5;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   CONTACTO SECTION
   ============================================================ */
.contacto {
  padding: 50px 0 40px;
  background: var(--color-bg);
}

.contacto-title {
  text-align: left;
  margin-bottom: 40px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.contacto-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px 0 0;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Info on LEFT, form on RIGHT (Nitido-style) */
.contacto-info {
  order: -1;
}


.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--color-gray);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-white);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ff4444;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  font-size: 0.85rem;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(0, 230, 118, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.form-message.error-msg {
  display: block;
  background: rgba(255, 68, 68, 0.1);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 10px;
}

.contacto-info-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: none;
}

.contacto-socials {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.social-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

.social-circle:hover {
  background: var(--color-accent-dark);
  transform: scale(1.1);
}

.social-circle svg {
  width: 20px;
  height: 20px;
  fill: var(--color-bg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #050505;
  padding: 60px 0 30px;
}

.footer-top {
  margin-bottom: 40px;
}

.footer-logo {
  display: block;
}

.footer-logo img {
  display: block;
  height: 40px;
  width: auto;
  max-height: 40px;
}

.footer-line {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin-top: 20px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--color-accent);
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-cv-link {
  color: var(--color-accent) !important;
  margin-top: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--color-gray);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================================================
   INTERNAL PAGE SECTIONS
   ============================================================ */

/* --- Service Showcase (alternating layout) --- */
.service-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 450px;
  overflow: hidden;
}

.service-showcase.reverse {
  direction: rtl;
}

.service-showcase.reverse > * {
  direction: ltr;
}

.service-showcase-media {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.service-showcase-media video,
.service-showcase-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.service-showcase:hover .service-showcase-media video,
.service-showcase:hover .service-showcase-media img {
  transform: scale(1.03);
}

.service-showcase-media::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 60px;
  height: 60px;
  border-top: 4px solid var(--color-accent);
  border-left: 4px solid var(--color-accent);
  z-index: 2;
}

.service-showcase.reverse .service-showcase-media::before {
  left: auto;
  right: -4px;
  border-left: none;
  border-right: 4px solid var(--color-accent);
}

.service-showcase-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px;
  background: var(--color-bg);
}

.service-showcase-content h2 {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.service-showcase-content p {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  font-size: 1rem;
  max-width: 400px;
  line-height: 1.6;
}

/* --- Category Cards Grid --- */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.category-card {
  position: relative;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px;
}

.category-card img,
.category-card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.category-card:hover img,
.category-card:hover video {
  transform: scale(1.05);
}

.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
  letter-spacing: 3px;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.team-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: grayscale(30%);
  transition: filter 0.4s, transform 0.4s;
}

.team-grid img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* --- Steps / Process --- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
}

.step-item {
  text-align: center;
}

.step-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.step-item h3 {
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.step-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- IA description --- */
.ia-description {
  max-width: 800px;
  margin: 0 auto;
}

.ia-description p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.ia-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ia-capabilities span {
  padding: 8px 20px;
  background: var(--color-gray);
  border: 1px solid var(--color-gray-light);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* --- Showreel / Centered Video --- */
.showreel {
  max-width: 900px;
  margin: 0 auto;
}

.showreel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: var(--color-gray);
}

/* --- Matrimonios: Packages --- */
.paquetes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.paquete-card {
  background: var(--color-gray);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.paquete-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.paquete-card h3 {
  font-size: 1.4rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.paquete-card ul {
  margin-bottom: 30px;
}

.paquete-card li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.paquete-card li:last-child {
  border-bottom: none;
}

/* --- Marketing Grid --- */
.marketing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.marketing-item {
  background: var(--color-gray);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  border: 1px solid var(--color-gray-light);
  transition: border-color 0.3s;
}

.marketing-item:hover {
  border-color: var(--color-accent);
}

.marketing-item .item-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.marketing-item h3 {
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.marketing-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 230, 118, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-bg);
}

/* --- Propuesta de Valor --- */
.propuesta-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.propuesta-text p {
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--color-text);
}

/* ============================================================
   SHOWCASE ACCENT LINE (Nitido-style bar under heading)
   ============================================================ */
.showcase-accent-line {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin-bottom: 24px;
}

/* Light background variant for alternating sections */
.showcase-light {
  background: var(--color-white) !important;
}

.showcase-light h2 {
  color: var(--color-bg) !important;
}

.showcase-light p {
  color: #555 !important;
}

/* ============================================================
   TEAM SECTION (Nitido-style)
   ============================================================ */
.team-section {
  background: var(--color-bg);
}

.team-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 1rem;
  margin-top: 8px;
}

/* ============================================================
   CÓMO TRABAJAMOS (Nitido-style numbered circles)
   ============================================================ */
.como-trabajamos-section {
  background: var(--color-white);
  padding: 80px 0;
}

.como-title {
  color: var(--color-bg) !important;
}

.como-title::after {
  background: var(--color-accent);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 80px;
  max-width: 900px;
  margin: 50px auto 0;
}

.step-card {
  text-align: left;
}

.step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  color: var(--color-bg);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-card p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: italic;
}

/* --- Process Steps Dark (Marketing page - Nitido style) --- */
.process-dark-section {
  background: var(--color-bg);
  padding: 100px 0;
}

.process-dark-section .section-title {
  color: var(--color-white);
}

.process-dark-section .section-title::after {
  background: var(--color-accent);
}

.steps-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 60px;
  max-width: 1100px;
  margin: 60px auto 0;
}

.step-card-dark {
  text-align: left;
}

.step-card-dark .step-circle {
  background: var(--color-accent);
  color: var(--color-bg);
}

.step-card-dark h3 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: 1.3;
}

.step-card-dark p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  font-style: italic;
}

/* --- Casos de éxito (Nitido-style case studies) --- */
.casos-section {
  background: var(--color-white);
  padding: 0;
}

.casos-section .section-title {
  color: var(--color-bg);
}

.casos-section .section-title::after {
  background: var(--color-accent);
}

.casos-header {
  background: var(--color-white);
  padding: 80px 0 60px;
  position: relative;
}

/* Caso card: alternating text + image layout (Nitido-style) */
.caso-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 450px;
  overflow: hidden;
  background: var(--color-white);
}

.caso-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

/* Alternate: even cards flip image to left */
.caso-card:nth-child(4n) {
  direction: rtl;
}

.caso-card:nth-child(4n) > * {
  direction: ltr;
}

.caso-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background: var(--color-white);
}

.caso-card-content h3 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-bg);
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: 1px;
}

.caso-card-content .caso-accent-line {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin-bottom: 24px;
}

.caso-card-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
  max-width: 420px;
}

/* White breathing space between case cards */
.caso-card-gap {
  background: var(--color-white);
  padding: 40px 0;
  position: relative;
}

/* Separator between dark process and white casos */
.caso-separator {
  position: relative;
  height: 30px;
  background: var(--color-white);
}

.caso-separator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50px;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 25px solid var(--color-bg);
  z-index: 3;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 968px) {
  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: 0 24px 60px;
  }

  .hero-accent-mark {
    width: 40px;
    height: 40px;
  }

  .service-block {
    flex-direction: column !important;
    padding: 40px 20px;
    gap: 24px;
  }

  .service-block-header {
    text-align: center;
    flex: none;
    max-width: 100%;
    padding: 0;
  }

  .service-block-media {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .service-block::after {
    display: none;
  }

  .service-block-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .media-bracket {
    width: 40px;
    height: 40px;
  }

  .media-bracket::before {
    height: 8px;
  }

  .media-bracket::after {
    width: 8px;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

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

  .category-card {
    height: 240px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-row {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .paquetes-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-showcase {
    grid-template-columns: 1fr;
  }

  .service-showcase.reverse {
    direction: ltr;
  }

  .service-showcase-media {
    min-height: 300px;
  }

  .service-showcase-content {
    padding: 40px 24px;
    align-items: center;
    text-align: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps-grid-3col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .caso-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .caso-card:nth-child(4n) {
    direction: ltr;
  }

  .caso-card-img {
    min-height: 300px;
  }

  .caso-card-content {
    padding: 40px 24px;
    text-align: center;
    align-items: center;
  }

  .caso-card-gap {
    padding: 40px 0;
  }

  .casos-header {
    padding: 60px 0 50px;
  }

  .ia-capabilities {
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    padding: 0 16px;
  }

  .header-logo .logo-horizontal {
    height: 28px;
  }

  .btn-contacto {
    display: none;
  }

  .nav-drawer {
    width: 100%;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero-content {
    padding: 0 16px 40px;
    gap: 16px;
  }

  .hero-accent-mark {
    width: 30px;
    height: 30px;
  }

  .service-block {
    padding: 50px 0 60px;
  }

  .service-block-header {
    margin-bottom: 40px;
  }

  .service-block-media {
    width: 95%;
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

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

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

  .caso-card-img {
    min-height: 250px;
  }

  .caso-card-content {
    padding: 30px 16px;
  }

  .caso-card-gap {
    padding: 30px 0;
  }

  .caso-card-gap::after,
  .caso-separator::after,
  .casos-header::after {
    left: 20px;
    border-left-width: 22px;
    border-right-width: 22px;
  }

  .footer-columns {
    text-align: left;
  }

  .service-showcase-media {
    min-height: 250px;
  }

  .service-showcase-content {
    padding: 30px 16px;
  }
}

/* ===== Infografía "Nuestro Proceso" (imagen) ===== */
.proceso-img-section { background: var(--color-bg); padding: 40px 0 60px; }
.proceso-img-section .section-title { margin-bottom: 40px; }
.proceso-img-section img {
  display: block; width: 100%; max-width: 1200px;
  margin: 0 auto; height: auto; border-radius: 14px;
}

/* ===== Frase final (Matrimonios) ===== */
.frase-final { background: var(--color-gray); padding: 100px 24px; text-align: center; }
.frase-final p {
  max-width: 820px; margin: 0 auto;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.45;
  color: var(--color-white);
}
.frase-final p .accent { color: var(--color-accent); }

/* ===== Cinta de clientes (chips blancos) ===== */
.huincha-track { gap: 24px; }
.huincha-chip {
  flex-shrink: 0;
  height: 60px;
  min-width: 96px;
  padding: 0 22px;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.huincha-track .huincha-chip img {
  height: 32px; width: auto; max-width: 148px;
  object-fit: contain; display: block;
  filter: none; opacity: 1;
}
@media (max-width: 600px) {
  .huincha-chip { height: 52px; min-width: 80px; padding: 0 16px; }
  .huincha-track .huincha-chip img { height: 26px; max-width: 120px; }
}

/* ===== Título sobre la cinta de clientes ===== */
.huincha { padding-top: 44px; }
.huincha-title {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--color-white);
  margin: 0 0 26px;
  letter-spacing: 0.5px;
}
.huincha-title::after {
  content: "";
  display: block;
  width: 46px; height: 3px;
  background: var(--color-accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
