/* ================================================================
   GROWTH — Design System · css/styles.css
   Paleta: near-black · near-white · #E8601A · derivado oscuro
   Temas: light / dark con toggle manual + fallback a prefers-color-scheme
================================================================ */

/* ---- 1. Variables — Light (default) ---- */
:root {
  --bg:           #F4EFE8;
  --bg-surface:   #EDE6DB;
  --bg-raised:    #E5DDD0;
  --nav-bg:       rgba(244, 239, 232, 0.90);

  --text:         #0E0C0A;
  --text-muted:   rgba(14, 12, 10, 0.50);

  --border:       rgba(14, 12, 10, 0.09);
  --border-mid:   rgba(14, 12, 10, 0.15);

  --accent:       #E8601A;
  --accent-dim:   rgba(232,96,26,0.10);
  --accent-hover: #C0501A;
  --accent-text:  #0E0C0A;

  --radius:      14px;
  --radius-lg:   22px;
  --radius-pill: 100px;
  --nav-h:       64px;
  --max-w:       1200px;

  /* Velocidad de transición de tema — usada en todas las reglas */
  --theme-speed: 0.38s;
}

/* ---- Variables — Dark ---- */
/* Caso 1: sistema en dark y el usuario NO ha forzado light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #0E0C0A;
    --bg-surface:   #171310;
    --bg-raised:    #201A16;
    --nav-bg:       rgba(14, 12, 10, 0.90);
    --text:         #F4EFE8;
    --text-muted:   rgba(244, 239, 232, 0.46);
    --border:       rgba(244, 239, 232, 0.08);
    --border-mid:   rgba(244, 239, 232, 0.16);
    --accent-hover: #F07035;
    --accent-text:  #0E0C0A;
  }
}

/* Caso 2: usuario forzó dark (override manual) */
[data-theme="dark"] {
  --bg:           #0E0C0A;
  --bg-surface:   #171310;
  --bg-raised:    #201A16;
  --nav-bg:       rgba(14, 12, 10, 0.90);
  --text:         #F4EFE8;
  --text-muted:   rgba(244, 239, 232, 0.46);
  --border:       rgba(244, 239, 232, 0.08);
  --border-mid:   rgba(244, 239, 232, 0.16);
  --accent-hover: #F07035;
  --accent-text:  #0E0C0A;
}

/* Caso 3: usuario forzó light (override manual) */
[data-theme="light"] {
  --bg:           #F4EFE8;
  --bg-surface:   #EDE6DB;
  --bg-raised:    #E5DDD0;
  --nav-bg:       rgba(244, 239, 232, 0.90);
  --text:         #0E0C0A;
  --text-muted:   rgba(14, 12, 10, 0.50);
  --border:       rgba(14, 12, 10, 0.09);
  --border-mid:   rgba(14, 12, 10, 0.15);
  --accent-hover: #C0501A;
  --accent-text:  #0E0C0A;
}

/* ---- Transición de tema ----
   Aplicamos la transición SOLO a propiedades específicas y
   SOLO a los elementos que cambian visualmente.
   NO usamos * para no interferir con hovers y animaciones. */
body,
nav,
footer,
section,
.service-card,
.featured-card,
.step,
.pricing-card,
.why-card,
.include-item,
.hosting-card,
.catalog-opt,
.about-visual,
.cta-inner,
.mobile-menu,
.nav-dropdown-menu,
.region-selector-wrap,
.file-tree,
.slot-card,
.toc {
  transition:
    background-color var(--theme-speed) ease,
    background     var(--theme-speed) ease,
    border-color   var(--theme-speed) ease,
    color          var(--theme-speed) ease;
}

/* ---- 2. Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ================================================================
   LOGO — Cross-fade entre dark y light
   Dos <img> superpuestas. Se alterna opacity con transition.
================================================================ */
.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
  transition: opacity var(--theme-speed) ease;
}
/* logo_blanco.png: visible en dark, invisible en light */
.logo-dark  { opacity: 1; position: relative; }
.logo-light { opacity: 0; position: absolute; top: 0; left: 0; }

/* En light mode se invierte */
[data-theme="light"] .logo-dark  { opacity: 0; }
[data-theme="light"] .logo-light { opacity: 1; }

/* Con sistema en light y sin override, ídem */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-dark  { opacity: 0; }
  :root:not([data-theme="dark"]) .logo-light { opacity: 1; }
}

/* ================================================================
   THEME SWITCH — Toggle pill en la navbar
================================================================ */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

/* Íconos sol / luna */
.theme-icon {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--theme-speed) ease, opacity var(--theme-speed) ease;
}
.theme-icon svg { width: 100%; height: 100%; stroke-width: 1.8; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* Pill */
.theme-track {
  width: 38px; height: 21px;
  background: var(--bg-raised);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  position: relative;
  transition:
    background-color var(--theme-speed) ease,
    border-color     var(--theme-speed) ease;
}

/* Círculo deslizante */
.theme-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 3px; left: 3px;
  transition: transform var(--theme-speed) cubic-bezier(0.34, 1.4, 0.64, 1),
              background-color var(--theme-speed) ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* En dark mode: thumb a la derecha */
[data-theme="dark"] .theme-thumb { transform: translateX(17px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-thumb { transform: translateX(17px); }
}

/* ---- 3. Tipografía ---- */
em {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
}

/* ---- 4. Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ---- 5. Helpers de sección ---- */
.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
/* Línea acento antes del label */
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.6rem;
  border-radius: 2px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 3.5rem;
  line-height: 1.75;
}

section {
  padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 4vw, 3rem);
}

/* ---- 6. Botones ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

.btn-outline-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-accent:hover { background: var(--accent); color: var(--accent-text); }

/* ---- 7. Scroll Reveal ---- */
.reveal, .reveal-left, .reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left { transform: translateX(-28px); }
.reveal-up { transform: translateY(32px); }
.reveal.visible,
.reveal-left.visible,
.reveal-up.visible { opacity: 1; transform: none; }

/* ================================================================
   NAVBAR
================================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---- Dropdown ---- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown-chevron {
  width: 12px; height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  z-index: 200;
}

/* Puente invisible entre link y menú para no perder hover */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.845rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: var(--bg-raised);
  color: var(--text);
}
.nav-dropdown-item:hover .dropdown-item-dot {
  background: var(--accent);
}

.dropdown-item-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border-mid);
  flex-shrink: 0;
  transition: background 0.15s;
}

/* Separador opcional dentro del dropdown */
.nav-dropdown-sep {
  height: 1px;
  background: var(--border);
  margin: 0.3rem 0.5rem;
}

.nav-cta {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  background: var(--accent);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 300;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  /* Switch siempre visible */
  .theme-switch { display: flex; }
}

/* ================================================================
   HERO — LANDING
================================================================ */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
  padding-left:  clamp(1.25rem, 5vw, 5rem);
  padding-right: clamp(1.25rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  max-width: 490px;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.25rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--text-muted));
}

/* ================================================================
   SERVICIOS — LANDING
================================================================ */
#servicios { background: var(--bg); }

/* Cards destacadas — 2 columnas */
.featured-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2px;
}

.featured-card {
  background: var(--bg-surface);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.featured-card:hover { background: var(--bg-raised); }
.featured-card + .featured-card { border-left: 1px solid var(--border-mid); }

/* Glow sutil en cada card */
.featured-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.featured-card:hover::before { opacity: 1; }

.fc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  width: fit-content;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(232, 96, 26, 0.22);
}

.fc-num {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 5rem;
  line-height: 1;
  color: var(--border-mid);
  position: absolute;
  top: 1.25rem;
  right: 2rem;
  user-select: none;
  pointer-events: none;
  transition: color 0.3s;
}
.featured-card:hover .fc-num { color: var(--accent-dim); }

.fc-title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.fc-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.72;
  max-width: 440px;
}

.fc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.fc-tag {
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  background: transparent;
}

/* Opción dual para catálogos */
.catalog-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  overflow: hidden;
}
.catalog-opt {
  background: var(--bg-raised);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.catalog-opt + .catalog-opt { border-left: 1px solid var(--border-mid); }
.catalog-opt-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.catalog-opt-title { font-size: 0.9rem; font-weight: 500; }
.catalog-opt-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

.fc-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(232, 96, 26, 0.3);
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-pill);
  width: fit-content;
  transition: background 0.2s, color 0.2s;
}
.fc-cta:hover { background: var(--accent); color: var(--accent-text); }

@media (max-width: 860px) {
  .featured-services { grid-template-columns: 1fr; }
  .featured-card + .featured-card { border-left: none; border-top: 1px solid var(--border-mid); }
  .catalog-options { grid-template-columns: 1fr; }
  .catalog-opt + .catalog-opt { border-left: none; border-top: 1px solid var(--border-mid); }
}

/* Grid secundario — 3 columnas */
.services-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--bg-surface);
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  transition: background 0.25s;
}
.service-card + .service-card { border-left: 1px solid var(--border-mid); }
.service-card:hover { background: var(--bg-raised); }

.service-card.new-service::before {
  content: 'Nuevo';
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232, 96, 26, 0.2);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.service-icon {
  width: 34px; height: 34px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.service-icon svg { width: 100%; height: 100%; stroke-width: 1.25; }
.service-name { font-size: 0.95rem; font-weight: 500; }
.service-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, gap 0.2s;
}
.service-card:hover .service-arrow { color: var(--accent); gap: 0.65rem; }

@media (max-width: 900px) {
  .services-secondary { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(3) { border-left: none; border-top: 1px solid var(--border-mid); }
  .service-card:nth-child(odd) + .service-card:nth-child(even) { border-left: 1px solid var(--border-mid); }
}
@media (max-width: 520px) {
  .services-secondary { grid-template-columns: 1fr; }
  .service-card + .service-card { border-left: none; border-top: 1px solid var(--border-mid); }
}

/* ================================================================
   PROCESO
================================================================ */
#proceso { background: var(--bg); }

.process-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step {
  background: var(--bg-surface);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.25s;
}
.step + .step { border-left: 1px solid var(--border-mid); }
.step:hover { background: var(--bg-raised); }

.step-num {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
}
.step:hover .step-num { opacity: 0.7; }
.step-title { font-size: 1rem; font-weight: 500; }
.step-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

@media (max-width: 760px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3), .step:nth-child(4) { border-top: 1px solid var(--border-mid); }
  .step:nth-child(3) { border-left: none; }
}
@media (max-width: 460px) {
  .process-steps { grid-template-columns: 1fr; }
  .step + .step { border-left: none; border-top: 1px solid var(--border-mid); }
}

/* ================================================================
   NOSOTROS
================================================================ */
#nosotros { background: var(--bg); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, var(--accent-dim), transparent 65%);
}
/* Línea naranja superior izquierda */
.about-visual::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(to right, var(--accent), transparent 60%);
}
.about-visual-content {
	padding: 1rem;
	text-align: center;
	z-index: 1; 
}
.about-stat {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 7rem;
  line-height: 1;
  color: var(--border-mid);
  user-select: none;
}
.about-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.about-text { display: flex; flex-direction: column; gap: 1.25rem; }
.about-text h2 {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
}
.about-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.78; }

.about-pillars { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.pillar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.875rem;
}
.pillar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: auto; padding: 3rem; }
}

/* ================================================================
   CTA
================================================================ */
#contacto { background: var(--bg); }

.cta-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, var(--accent-dim), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.cta-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.25rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cta-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.cta-email:hover { color: var(--accent); border-color: var(--accent); }

/* ================================================================
   FOOTER
================================================================ */
footer {
  border-top: 1px solid var(--border-mid);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); opacity: 0.5; }

/* ================================================================
   SERVICE PAGES — Estilos específicos
================================================================ */

/* Hero de página de servicio */
.page-hero {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  padding-left:  clamp(1.25rem, 5vw, 5rem);
  padding-right: clamp(1.25rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-mid);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 30%, var(--accent-dim), transparent 55%);
  pointer-events: none;
}

.page-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}
.page-hero-back:hover { color: var(--accent); }

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232, 96, 26, 0.22);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  width: fit-content;
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.page-hero-sub {
  max-width: 560px;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.78;
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
}

.page-hero-num {
  position: absolute;
  bottom: 1rem;
  right: clamp(1.25rem, 5vw, 5rem);
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(6rem, 15vw, 14rem);
  line-height: 1;
  color: var(--border);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* ---- Placeholder images ---- */
/* Imagen genérica: cubre su contenedor, 50% opacidad */
.ph-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  border-radius: inherit;
}

/* Label de placeholder (solo visible en desarrollo) */
.ph-label {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232,96,26,0.25);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  pointer-events: none;
}

/* About visual: img se superpone al fondo del bloque 
.about-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  border-radius: inherit;
  z-index: 0;
}*/
.about-visual-content { position: relative; z-index: 1; }

/* Page hero — layout 2 columnas (texto | imagen) */
.page-hero-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: flex-end;
  position: relative;
  z-index: 1;
  flex: 1;
}
.page-hero-content {
  display: flex;
  flex-direction: column;
}
.page-hero-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-mid);
  position: relative;
  align-self: center;
  flex-shrink: 0;
}
@media (max-width: 960px) {
  .page-hero-layout {
    grid-template-columns: 1fr;
  }
  .page-hero-visual {
    display: none; /* En mobile el hero se mantiene limpio */
  }
}

/* WHY US section */
.why-us { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why-card {
  background: var(--bg-surface);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.25s;
}
.why-card + .why-card { border-left: 1px solid var(--border-mid); }
.why-card:hover { background: var(--bg-raised); }

.why-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius);
  border: 1px solid rgba(232, 96, 26, 0.18);
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.why-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
.why-title { font-size: 1rem; font-weight: 500; }
.why-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-card:nth-child(3), .why-card:nth-child(4) { border-top: 1px solid var(--border-mid); }
  .why-card:nth-child(3) { border-left: none; }
}
@media (max-width: 520px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card + .why-card { border-left: none; border-top: 1px solid var(--border-mid); }
}

/* INCLUDES section */
.includes-section { background: var(--bg-surface); }

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

.include-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.include-item:hover { border-color: rgba(232, 96, 26, 0.3); }

.include-check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 96, 26, 0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.include-check svg { width: 11px; height: 11px; stroke-width: 2.5; color: var(--accent); }
.include-title { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.2rem; }
.include-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

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

/* PRICING section */
.pricing-section { background: var(--bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color 0.2s;
  position: relative;
}

.pricing-card.highlighted {
  border-top: 3px solid var(--accent);
  background: var(--bg-raised);
}

.pricing-badge {
  position: absolute;
  top: -1px; right: 1.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent);
  padding: 0.25rem 0.7rem 0.3rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.pricing-name { font-size: 1rem; font-weight: 500; }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.pricing-currency { font-size: 1.1rem; font-weight: 400; color: var(--text-muted); }
.pricing-amount {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1;
}
.pricing-period { font-size: 0.8rem; color: var(--text-muted); }
.pricing-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; border-top: 1px solid var(--border); padding-top: 1.25rem; }

.pricing-features { display: flex; flex-direction: column; gap: 0.55rem; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.feature-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

.pricing-cta {
  margin-top: auto;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ================================================================
   REGION SELECTOR
================================================================ */
.region-selector-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem 0.45rem 0.75rem;
  margin-bottom: 2.5rem;
}

.region-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}

.region-select {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  padding-right: 0.25rem;
  appearance: auto;
}
.region-select option { background: var(--bg-surface); }

/* ================================================================
   HOSTING ADD-ON SECTION
================================================================ */
.hosting-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-mid);
}

.hosting-intro {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(232,96,26,0.18);
  border-radius: var(--radius);
}

.hosting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hosting-card {
  background: var(--bg-raised);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
}
.hosting-card:hover { background: var(--bg-surface); }
.hosting-card + .hosting-card { border-left: 1px solid var(--border-mid); }

.hosting-card-header { display: flex; flex-direction: column; gap: 0.4rem; }
.hosting-plan-name { font-size: 0.9rem; font-weight: 500; }
.hosting-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.hosting-amount {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.8rem !important;
  line-height: 1;
}

@media (max-width: 700px) {
  .hosting-grid { grid-template-columns: 1fr; }
  .hosting-card + .hosting-card { border-left: none; border-top: 1px solid var(--border-mid); }
}

/* 5-column pricing: wrap into 3+2 rows */
.pricing-grid.five-plans {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .pricing-grid.five-plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .pricing-grid.five-plans { grid-template-columns: 1fr; }
}

/* ================================================================
   SHOWCASE WIDGET — Hero visual animado en web-desarrollo
================================================================ */

/* Contenedor principal — ocupa todo el .page-hero-visual */
.showcase-window {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: inherit;
  background: var(--bg-raised);
}

/* ---- Chrome del browser ficticio ---- */
.showcase-chrome {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  height: 30px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  padding: 0 0.65rem;
  gap: 0.4rem;
  transition: background-color var(--theme-speed) ease,
              border-color      var(--theme-speed) ease;
}
.chrome-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-mid);
  flex-shrink: 0;
}
.chrome-dot:nth-child(1) { background: rgba(232,96,26,0.40); }
.chrome-dot:nth-child(2) { background: rgba(232,96,26,0.22); }
.chrome-dot:nth-child(3) { background: rgba(232,96,26,0.12); }
.chrome-url {
  flex: 1;
  height: 13px;
  background: var(--bg-raised);
  border-radius: var(--radius-pill);
  margin: 0 0.4rem;
  transition: background-color var(--theme-speed) ease;
}

/* ---- Área de slides ---- */
.showcase-slides {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* Cada slide */
.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Cada slide dura 4s dentro de un ciclo de 16s (4 slides) */
  animation: slide-show 16s infinite;
  will-change: opacity;
}
.showcase-slide:nth-child(1) { animation-delay:  0s; }
.showcase-slide:nth-child(2) { animation-delay:  4s; }
.showcase-slide:nth-child(3) { animation-delay:  8s; }
.showcase-slide:nth-child(4) { animation-delay: 12s; }

@keyframes slide-show {
  /* Fade in rápido al inicio del turno */
  0%,   2%  { opacity: 0; }
  6%         { opacity: 1; }
  /* Visible hasta casi terminar el turno */
  22%        { opacity: 1; }
  26%, 100%  { opacity: 0; }
}

/* Imagen: pan lento de arriba abajo mientras es visible */
.showcase-img-pan {
  display: block;
  width: 100%;
  /* Imagen alta para que tenga recorrido de scroll */
  height: auto;
  min-height: 160%;
  object-fit: cover;
  object-position: top center;
  opacity: 1 !important;  /* override .ph-img */
  animation: img-pan 16s infinite;
  will-change: transform;
}
.showcase-slide:nth-child(1) .showcase-img-pan { animation-delay:  0s; }
.showcase-slide:nth-child(2) .showcase-img-pan { animation-delay:  4s; }
.showcase-slide:nth-child(3) .showcase-img-pan { animation-delay:  8s; }
.showcase-slide:nth-child(4) .showcase-img-pan { animation-delay: 12s; }

@keyframes img-pan {
  /* Sincronizado con slide-show: empieza a moverse cuando el slide es visible */
  0%          { transform: translateY(0); }
  6%          { transform: translateY(0); }
  24%         { transform: translateY(-28%); }
  100%        { transform: translateY(-28%); }
}

/* ---- Gradiente superior e inferior ---- */
.showcase-grad {
  position: absolute;
  left: 0; right: 0;
  z-index: 3;
  pointer-events: none;
}
.showcase-grad-top {
  top: 0;
  height: 50px;
  background: linear-gradient(to bottom, var(--bg-raised), transparent);
}
.showcase-grad-bottom {
  bottom: 0;
  height: 90px;
  background: linear-gradient(to top, var(--bg-raised), transparent);
}

/* ---- Dot indicators ---- */
.showcase-dots {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 5px;
}
.showcase-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border-mid);
  transition: background 0.3s;
}
/* Dot activo rotando con la animación */
.showcase-slide:nth-child(1) ~ .showcase-dots .showcase-dot:nth-child(1),
.showcase-slide:nth-child(2) ~ .showcase-dots .showcase-dot:nth-child(2),
.showcase-slide:nth-child(3) ~ .showcase-dots .showcase-dot:nth-child(3),
.showcase-slide:nth-child(4) ~ .showcase-dots .showcase-dot:nth-child(4) {
  background: var(--accent);
}

/* ---- Botón "Ver portfolio" ---- */
.showcase-cta-wrap {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  white-space: nowrap;
}
.showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(232,96,26,0.30);
}
.showcase-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.showcase-btn svg  { stroke-width: 2; }

/* ================================================================
   PORTFOLIO PAGE
================================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.25s, background-color var(--theme-speed) ease;
  cursor: default;
}
.portfolio-card:hover {
  border-color: rgba(232,96,26,0.35);
  transform: translateY(-3px);
}

/* Área de imagen — simula browser */
.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-raised);
}
/* Barra de browser mini */
.portfolio-chrome {
  height: 22px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  gap: 0.3rem;
  flex-shrink: 0;
  transition: background-color var(--theme-speed) ease,
              border-color      var(--theme-speed) ease;
}
.portfolio-chrome-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border-mid);
}
.portfolio-chrome-dot:nth-child(1) { background: rgba(232,96,26,0.40); }
.portfolio-chrome-dot:nth-child(2) { background: rgba(232,96,26,0.22); }
.portfolio-chrome-dot:nth-child(3) { background: rgba(232,96,26,0.12); }

.portfolio-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img {
  opacity: 1;
  transform: scale(1.02);
}

/* Overlay hover con CTA */
.portfolio-overlay {
  position: absolute;
  inset: 22px 0 0 0; /* debajo del chrome */
  background: rgba(14,12,10,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #0E0C0A;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}
.portfolio-overlay-btn:hover { background: var(--accent-hover); }

/* Info del proyecto */
.portfolio-info {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.portfolio-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.portfolio-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232,96,26,0.18);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}
.portfolio-name {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}
.portfolio-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 0.25rem;
  transition: gap 0.2s;
}
.portfolio-link:hover { gap: 0.65rem; }
.portfolio-link svg { stroke-width: 2; }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ---- Filtros ---- */
.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(232,96,26,0.3);
}

/* ---- Configuracion de video ---- */
.about-visual video.about-visual-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .about-visual {
	aspect-ratio: 1 / 1;
    padding: 4rem;
    width: 100%;
    height: auto;
    overflow: hidden;
	margin-right: 10px;
  }

  .about-visual video.about-visual-img {
    width: 96%;
    height: auto;
    object-fit: cover;
    display: block;
  }
}
