:root {
  --font-heading: 'Zalando Sans SemiExpanded', sans-serif;
  --font-body: 'Inter', sans-serif;
  /* Brand Colors */
  --alabaster: #ECECEC;
  --ink: #111619;
  --copper: #CC4B2E;
  --white: #FFFFFF;

  /* Backgrounds */
  --bg-light: var(--alabaster);
  --bg-dark: var(--ink);
  --bg-white: var(--white);

  /* Surface Variants */
  --surface-dark-1: #1A1F24;
  --surface-dark-2: #1E2428;
  --surface-dark-3: #161B1F;
  --surface-light: #D6D6D2;
  --surface-form: #1A1F24;

  /* Text Hierarchy - Dark Background */
  --text-on-dark-primary: var(--white);
  --text-on-dark-secondary: rgba(255, 255, 255, 0.7);
  --text-on-dark-muted: rgba(255, 255, 255, 0.5);

  /* Text Hierarchy - Light Background */
  --text-on-light-primary: var(--ink);
  --text-on-light-secondary: rgba(17, 22, 25, 0.8);
  --text-on-light-muted: rgba(17, 22, 25, 0.6);

  /* Accent & Interactive */
  --accent: var(--copper);
  --accent-hover: #B03D24;
  --accent-soft: rgba(204, 75, 46, 0.1);
  --accent-disabled: rgba(204, 75, 46, 0.5);

  /* Borders */
  --border-on-dark: rgba(255, 255, 255, 0.1);
  --border-on-light: rgba(17, 22, 25, 0.1);
  --border-accent: var(--accent);

  /* Type Scale — Desktop */
  --fs-h1: 4.5rem;        /* 72px */
  --fs-h2: 2.5rem;        /* 40px */
  --fs-h3: 1.5rem;        /* 24px */
  --fs-eyebrow: 0.75rem;  /* 12px */
  --fs-body-lg: 1.375rem; /* 22px — Subtítulo */
  --fs-body: 1rem;        /* 16px */
  --fs-label: 0.875rem;   /* 14px */
  --fs-caption: 0.75rem;  /* 12px */
  --fs-small: 0.875rem;

  /* Line Heights — Desktop */
  --lh-h1: 1;             /* auto */
  --lh-h2: 1.2;           /* 48/40 */
  --lh-h3: 1;             /* auto */
  --lh-eyebrow: 1.667;    /* 20/12 */
  --lh-body-lg: 1.455;    /* 32/22 */
  --lh-body: 1.525;       /* 24.4/16 */
  --lh-label: 1.6;        /* 22.4/14 */
  --lh-caption: 1.617;    /* 19.4/12 */

  /* Spacing */
  --section-pad-desktop: 120px;
  --section-pad-mobile: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  background-color: var(--bg-dark);
  color: var(--text-on-dark-primary);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: var(--lh-h1);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-h2);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-h3);
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.body-lg {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  font-weight: 400;
}

.label {
  font-size: var(--fs-label);
  line-height: var(--lh-label);
}

.caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
}

.body-muted {
  font-size: var(--fs-small);
  opacity: 0.7;
}

/* Semi X Graphic Element */
.semi-x-container {
  position: relative;
  overflow: hidden;
}

.semi-x {
  position: absolute;
  width: 50vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  transition: opacity 0.5s ease;
}

.semi-x-right {
  top: 0;
  right: -10vw;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 80%);
  mask-image: url("data:image/svg+xml,%3Csvg width='100' height='200' viewBox='0 0 100 200' xmlns='http://www.w3.org/2000/svg'%3Basepath d='M100 0C44.7715 0 0 44.7715 0 100C0 155.228 44.7715 200 100 200V0Z' fill='black'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: right center;
}

.semi-x-left {
  bottom: 0;
  left: -10vw;
  background: linear-gradient(-45deg, var(--accent) 0%, transparent 80%);
  mask-image: url("data:image/svg+xml,%3Csvg width='100' height='200' viewBox='0 0 100 200' xmlns='http://www.w3.org/2000/svg'%3Basepath d='M0 0C55.2285 0 100 44.7715 100 100C100 155.228 55.2285 200 0 200V0Z' fill='black'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: left center;
}

/* Photography Gradient Overlay */
.photo-overlay {
  position: relative;
  overflow: hidden;
}

.photo-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(17, 22, 25, 0.2) 50%,
    rgba(17, 22, 25, 0.8) 85%,
    var(--bg-dark) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-overlay:hover::after {
  opacity: 1;
}

/* Layout */
section {
  padding: var(--section-pad-mobile) 2rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  section {
    padding: var(--section-pad-desktop) 5%;
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  font-weight: 600; /* Inter Semi Bold */
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: var(--font-body);
  width: 100%; /* Default to full width on mobile */
}

@media (min-width: 640px) {
  .btn {
    width: auto; /* Auto width on larger screens */
  }
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

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

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 75, 46, 0.1);
}

.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .btn-group {
    flex-direction: row;
    justify-content: center;
  }
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.3s ease;
  padding: 1.5rem 2rem;
}

header.scrolled {
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-on-dark);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-group {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 28px;
  width: auto;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--white);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
}

.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 2.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-links a {
  color: var(--text-on-dark-secondary);
  text-decoration: none;
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-ctas {
  display: none;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .nav-ctas {
    display: flex;
  }
}

.mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 101;
  padding: 2rem;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
}

.mobile-menu a {
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
}

/* Placeholders */
.placeholder {
  background-color: var(--surface-dark-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem;
}

/* Forms */
.cta-form {
  max-width: 800px;
  margin: 4rem auto 0;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-full {
    grid-column: 1 / -1;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--text-on-dark-secondary);
}

.form-control {
  width: 100%;
  background-color: var(--surface-form);
  border: 1px solid var(--border-on-dark);
  padding: 1.25rem;
  color: var(--white);
  font-family: var(--font-body);
  border-radius: 0;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

.form-control.error {
  border-color: var(--accent);
}

/* Services List (Editorial Style) */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-on-dark);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-on-dark);
  gap: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@media (min-width: 1024px) {
  .service-row {
    grid-template-columns: 80px 1fr;
    gap: 4rem;
    padding: 3rem 0;
  }
}

.service-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
  padding-left: 1.5rem;
}

.service-num {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  line-height: 1.5;
  padding-top: 0.5rem;
}

.service-row:hover .service-num {
  opacity: 1;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .service-content {
    grid-template-columns: 280px 1fr;
    gap: 4rem;
  }
}

.service-title h3 {
  font-size: var(--fs-h3);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: var(--lh-h3);
  font-weight: 500;
}

.service-desc p {
  color: var(--text-on-dark-secondary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 700px;
}

.service-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.service-link:hover {
  border-color: var(--accent);
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-on-light-primary);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark-primary);
}

.eyebrow-xs {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--white);
  opacity: 0.6;
}

/* Portfolio Gallery Grid */
.portfolio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .portfolio-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-gallery-item {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}

.portfolio-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 22, 25, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Testimonials Soft (Integrated) */
.testimonials-soft {
  background-color: var(--white);
  padding: var(--section-pad-mobile) 2rem;
}

@media (min-width: 1024px) {
  .testimonials-soft {
    padding: var(--section-pad-desktop) 5%;
  }
}

.testimonials-header {
  margin-bottom: 4rem;
}

.testimonial-card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 1024px) {
  .testimonial-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card-item {
  background: rgba(0, 0, 0, 0.03);
  padding: 2.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-on-light-primary);
  margin-bottom: 2rem;
  font-style: normal;
}

.testimonial-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-card-meta strong {
  font-size: 0.875rem;
  color: var(--text-on-light-primary);
}

.testimonial-card-meta span {
  font-size: 0.75rem;
  color: var(--text-on-light-secondary);
}

/* Home Specific Styles */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('images/hero-inicio.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 100px;
}

.hero .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.value-prop {
  background-color: var(--bg-light);
  color: var(--text-on-light-primary);
}

.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .why-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-on-dark);
    z-index: 0;
  }
}

.step-badge {
  width: 80px;
  height: 80px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-on-dark);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.step-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-top: 4px;
  opacity: 0.5;
}

.step:hover .step-badge {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(204, 75, 46, 0.2);
  transform: scale(1.05);
}

.step:hover .step-dot {
  opacity: 1;
  transform: scale(1.5);
}

.services-overview {
  background-color: var(--bg-dark);
  color: var(--text-on-dark-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: rgba(17, 22, 25, 0.9);
  backdrop-filter: blur(12px);
  color: var(--white);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--accent);
  transition: height 0.4s ease;
}

.service-card:hover::before {
  height: 100%;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at top right, rgba(204, 75, 46, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 1;
}

/* SEO Sections */
.seo-section {
  background-color: var(--bg-dark);
  padding: 4rem 0;
  border-top: 1px solid var(--border-on-dark);
}

.seo-section-light {
  background-color: #f8f8f8;
  padding: 4rem 0;
  border-top: 1px solid var(--border-on-light);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.seo-item {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  padding: 1rem;
  border-left: 1px solid var(--border-on-dark);
}

.seo-item-light {
  font-size: 0.875rem;
  color: var(--text-on-light-secondary);
  padding: 1rem;
  border-left: 1px solid var(--border-on-light);
}

.seo-item h3, .seo-item-light h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: inherit;
  font-weight: 600;
}

.cta-banner-alt {
  background-color: var(--surface-dark-1);
  text-align: center;
}

/* Mobile Typography Overrides */
@media (max-width: 1023px) {
  :root {
    --fs-h1: 2.5rem;       /* 40px */
    --fs-h2: 1.75rem;      /* 28px */
    --fs-h3: 1.25rem;      /* 20px */
    --fs-eyebrow: 0.6875rem; /* 11px */
    --fs-body-lg: 1.125rem;  /* 18px */

    --lh-h1: 1.2;          /* 48/40 */
    --lh-h2: 1.286;        /* 36/28 */
    --lh-h3: 1.4;          /* 28/20 */
    --lh-eyebrow: 1.636;   /* 18/11 */
    --lh-body-lg: 1.556;   /* 28/18 */
    --lh-body: 1.375;      /* 22/16 */
  }
}

footer {
  background-color: var(--bg-dark);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--text-on-dark-muted);
  font-size: 0.875rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}
