h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-display);
}
h3 {font-size: clamp(1.5rem, 3vw, 2rem);}
p {margin-bottom: 1.5rem;}
a {text-decoration: none; color: inherit;}

img:not([width][height]) {
    max-width: 100%;
    height: auto;
    display: block;
}
:not(.hero) > [data-animate]:not(.animated) {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
:not(.hero) > [data-animate].animated {
    opacity: 1;
    transform: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}
.nav-link:hover {
    color: var(--light);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-cta:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 6px 25px rgba(0, 167, 169, 0.5);
    border-color: var(--secondary);
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 1.5rem;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--light);
    margin: 4px 0;
    transition: var(--transition-smooth);
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}
@media (max-width: 968px) {
    .nav-logo { width: 167px; height: 50px; }
    .nav-logo img { width: 167px; height: 50px;}
    .navbar { height: 70px; }
    .nav-container { height: 70px; }
    .hamburger {  display: flex;}
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: auto;
        max-width: 250px;
        height: auto;
        padding: 1rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
        transition: var(--transition-bounce);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    .nav-menu.active {
        right: 1rem;
        background: var(--light);
    }
    .nav-link {
        width: 100%;
        text-align: center;
        font-size: 1.15rem;
        padding: 0.5rem 0;
        color: var(--cd-text);
    }
    .nav-link::after {
        bottom: 0.25rem;
    }
    .nav-cta {
        margin-top: 1rem;
        font-size: 1.1rem;
    }
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
        }
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    .nav-logo { width: 133px; height: 40px; }
    .nav-logo img { width: 133px; height: 40px; }
    .nav-menu {
        max-width: 70%;
        padding: 1rem 1rem 2rem 1rem;
    }
    .nav-link {
        font-size: 1.15rem;
    }
    .nav-cta {
        font-size: 1rem;
    }

}
.hero-code-lines {
    position: absolute;
    inset: 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(0,167,169,0.15);
    overflow: hidden;
    line-height: 1.8;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    min-height: 595px; 
    visibility: hidden !important;
    opacity: 0 !important;
}
.hero-code-line {
    opacity: 0;
}
.loaded .hero-code-lines {
    visibility: visible !important;
    animation: showCodeLines 0.6s ease-out 2.5s forwards;
}
@keyframes showCodeLines {
    from {  opacity: 0; }
    to { opacity: 1; }
}
.loaded .hero-code-line {
    animation: scrollCode 15s linear infinite;
}
.loaded .hero-code-line:nth-child(1) {
    animation-delay: 3s;
}
.loaded .hero-code-line:nth-child(2) {
    animation-delay: 5s;
}
.loaded .hero-code-line:nth-child(3) {
    animation-delay: 7s;
}
@keyframes scrollCode {
    0% { transform: translate3d(100%, 0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate3d(-100%, 0, 0); opacity: 0; }
}

.btn-primary:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 12px 32px rgba(0,167,169,0.5);
}
.btn-secondary:hover {
    border-color: #00A7A9;
    background: rgba(0,167,169,0.12);
    box-shadow: 0 4px 16px rgba(0,167,169,0.2);
}
.btn-full {
    width: 100%;
    justify-content: center;
}
.problem-section {
    padding: var(--section-padding) 0;
    background: white;
    min-height: 800px;
}
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    min-height: 400px;
}
.problem-card {
    padding: 2.5rem;
    background: white;
    border: 2px solid var(--light);
    border-radius: 16px;
    transition: var(--transition-smooth);
}
.problem-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translate3d(0, -4px, 0);
}
.problem-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.problem-card h2 {
    color: var(--cd-text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}
.problem-card p {
    color: var(--cd-text-light);
    margin-bottom: 0;
}
.problem-solution {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    color: white;
}
.solution-text {
    font-size: 1.25rem;
    margin-bottom: 0;
}
.solution-text strong {
    font-weight: 800;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(3, 101, 140, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.section-title {
    margin-bottom: 1.5rem;
}
.section-subtitle {
    color: var(--cd-text-light);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* SECCIÓN SERVICIOS  */

.services-section {
  padding: var(--section-padding) 0;
  background: var(--light, #f7f9fa);
}

.service-card {
  background: #fff;
  border: 2px solid #edf2f7;
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s cubic-bezier(0.4,0,0.2,1),
              box-shadow   0.4s cubic-bezier(0.4,0,0.2,1),
              transform    0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Línea superior de color */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary, #03658c), var(--secondary, #00a7a9));
  border-radius: 16px 16px 0 0;
}
.service-card:hover {
  border-color: var(--primary, #03658c);
  box-shadow: 0 4px 16px rgba(3,101,140,.12);
  transform: translate3d(0, -4px, 0);
}

/* ── Título y descripción ── */
.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cd-text, #2d3748);
  margin-bottom: .75rem;
  line-height: 1.3;
}
.service-description {
  color: var(--cd-text-light, #64748b);
  font-size: .95rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

/* ── Lista de features ── */
.service-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.service-features li {
  padding: .42rem 0 .42rem 1.6rem;
  position: relative;
  color: var(--cd-text-light, #64748b);
  font-size: .9rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(3,101,140,.05);
}
.service-features li:last-child {
  border-bottom: none;
}
.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary, #00a7a9);
  font-weight: 700;
  font-size: .95rem;
}

/* ── Precio ── */
.service-pricing {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-bottom: 1.25rem;
  padding: .8rem 1rem;
  background: var(--light, #f7f9fa);
  border-radius: 10px;
}
.price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary, #03658c);
  font-family: var(--font-ui, system-ui, sans-serif);
  line-height: 1;
}
.price-label {
  font-size: .85rem;
  color: var(--cd-text-light, #64748b);
  font-weight: 500;
}

/* ── CTA principal ── */
.service-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  padding: .85rem 1.5rem;
  background: linear-gradient(135deg, var(--primary, #03658c), var(--secondary, #00a7a9));
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: box-shadow .3s ease, transform .3s ease;
  margin-bottom: .75rem;
  border: none;
  cursor: pointer;
}
.service-cta:hover {
  box-shadow: 0 8px 24px rgba(3,101,140,.32);
  transform: translateY(-1px);
  color: #fff;
}

/* ── Contenido expandible ── */
.service-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1);
}
.service-card.expanded .service-content {
  max-height: 900px;
}

/* ── Botón expand ── */
.expand-btn {
    display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .55rem .75rem;
  background: none;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  color: var(--cd-text-light, #64748b);
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .22s ease;
  margin-top: auto;
  font-family: var(--font-ui, system-ui, sans-serif);
  flex-shrink: 0;
}
.expand-btn:hover {
  background: var(--light, #f7f9fa);
  border-color: var(--primary, #03658c);
  color: var(--primary, #03658c);
}
.expand-btn svg {
  transition: transform .3s ease;
  flex-shrink: 0;
}
.service-card.expanded .expand-btn svg {
  transform: rotate(180deg);
}

/* ── Ícono de servicio (emoji placeholder) ── */
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  line-height: 1;
}

.svc-tabs {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.svc-tab {
  padding: .55rem 1.5rem;
  border-radius: 50px;
  border: 2px solid rgba(3,101,140,.2);
  background: transparent;
  color: var(--cd-text-light, #4a5568);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .22s ease;
  letter-spacing: .02em;
  white-space: nowrap;
  font-family: var(--font-ui, system-ui, sans-serif);
}
.svc-tab:hover {
  border-color: var(--primary, #03658c);
  color: var(--primary, #03658c);
}
.svc-tab.active {
  background: linear-gradient(135deg, #03658c, #00a7a9);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(3,101,140,.28);
}

.svc-panel { display: none; }
.svc-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.svc-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
  align-items: start;
}

.service-card--featured {
  background: linear-gradient(145deg, #061828 0%, #092035 100%);
  border: 2px solid rgba(0,167,169,.55) !important;
}
.service-card--featured::before {
  background: linear-gradient(90deg, #00a7a9, #00d4d6, #03658c) !important;
}
.service-card--featured:hover {
  border-color: #00d4d6 !important;
  box-shadow: 0 24px 60px rgba(0,167,169,.28) !important;
  transform: translate3d(0, -4px, 0);
}
.service-card--featured .service-title  { color: #fff; }
.service-card--featured .service-description { color: rgba(255,255,255,.72); }
.service-card--featured .service-features li { color: rgba(255,255,255,.78); border-bottom-color: rgba(255,255,255,.06); }
.service-card--featured .service-features li::before { color: #00d4d6; }
.service-card--featured .service-pricing {
  background: rgba(0,167,169,.12);
  border: 1px solid rgba(0,167,169,.2);
  border-radius: 12px;
}
.service-card--featured .price       { color: #00d4d6; }
.service-card--featured .price-label { color: rgba(255,255,255,.45); }
.service-card--featured .expand-btn  {
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
}
.service-card--featured .expand-btn:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(0,167,169,.5);
  color: #fff;
}

/* ── Pack ocupa 2 columnas en desktop ── */
@media (min-width: 768px) {
  .service-card--featured {
    grid-column: span 2;
  }
}

/* ── Layout interno del pack (2 cols en desktop) ── */
.svc-pack-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 600px) {
  .svc-pack-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .svc-pack-inner .service-content {
    max-height: none !important;
    overflow: visible !important;
  }
}

.service-card--recurring {
  border: 2px dashed rgba(16,185,129,.38) !important;
}
.service-card--recurring::before {
  background: linear-gradient(90deg, #10b981, #059669) !important;
}
.service-card--recurring:hover {
  border-color: #10b981 !important;
  box-shadow: 0 12px 40px rgba(16,185,129,.12) !important;
}
.service-card--recurring .price { color: #059669; }

/* Badge "Más popular" */
.svc-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #000;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
  width: fit-content;
}

/* Pill de tiempo de entrega */
.svc-delivery {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(3,101,140,.07);
  border: 1px solid rgba(3,101,140,.15);
  color: var(--primary, #03658c);
  font-size: .74rem;
  font-weight: 600;
  padding: .26rem .85rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
}
.service-card--featured .svc-delivery {
  background: rgba(0,167,169,.14);
  border-color: rgba(0,167,169,.3);
  color: #00d4d6;
}

/* CTA WhatsApp (verde) */
.svc-cta-wa {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #25d366 !important;
  color: #fff !important;
}
.svc-cta-wa:hover {
  background: #1dbf5a !important;
  box-shadow: 0 8px 28px rgba(37,211,102,.32) !important;
  color: #fff !important;
}

/* CTA Pack (cyan) */
.svc-cta-pack {
  background: linear-gradient(135deg, #00a7a9, #00d4d6) !important;
  color: #000 !important;
  font-size: .97rem !important;
  font-weight: 700 !important;
}
.svc-cta-pack:hover {
  box-shadow: 0 10px 32px rgba(0,167,169,.38) !important;
  color: #000 !important;
}

/* Add-on chip (copywriting) */
.svc-addon-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(3,101,140,.07);
  border: 1px dashed rgba(3,101,140,.3);
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: .82rem;
  color: var(--primary, #03658c);
  font-weight: 600;
  margin-top: 1rem;
  width: 100%;
  text-decoration: none;
  transition: background .2s ease;
  box-sizing: border-box;
}
.svc-addon-chip:hover {
  background: rgba(3,101,140,.13);
  color: var(--primary, #03658c);
}
.svc-addon-chip span {
  font-weight: 400;
  color: var(--cd-text-light, #4a5568);
}

/* Hint upsell (texto cursiva con borde izquierdo) */
.svc-upsell {
  font-size: .78rem;
  color: var(--cd-text-light, #4a5568);
  border-left: 2px solid var(--secondary, #00a7a9);
  padding-left: .65rem;
  margin-top: .85rem;
  line-height: 1.5;
  font-style: italic;
}
.service-card--featured .svc-upsell {
  color: rgba(255,255,255,.4);
  border-color: rgba(0,167,169,.45);
}

/* Zona de ícono/imagen */
.svc-icon-wrap {
  margin-bottom: 1.4rem;
}
.svc-icon {
  font-size: 2.8rem;
  line-height: 1;
  display: block;
}

/* Chip de garantía */
.svc-guarantee {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: 8px;
  padding: .5rem .85rem;
  font-size: .76rem;
  color: #059669;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Nota al pie de la sección */
.svc-footnote {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--cd-text-light, #4a5568);
  font-size: .8rem;
  line-height: 1.6;
}

/* Separador interno */
.svc-divider {
  border: none;
  border-top: 1px solid rgba(3,101,140,.1);
  margin: 0 0 1.2rem;
}

/* SVG WhatsApp */
.svc-wa-svg { flex-shrink: 0; }

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .svc-panel.active {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  }
}

/* Mobile grande (≤ 768px) */
@media (max-width: 768px) {
  .svc-panel.active {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .service-card--featured {
    grid-column: span 1 !important;
  }
  .svc-pack-inner {
    grid-template-columns: 1fr !important;
  }
  .svc-pack-inner .service-content {
    max-height: 0 !important;
    overflow: hidden !important;
  }
  .service-card.expanded .svc-pack-inner .service-content {
    max-height: 900px !important;
  }
  .service-card {
    padding: 2rem;
  }
  .price {
    font-size: 1.65rem;
  }
}

/* Mobile pequeño (≤ 480px) */
@media (max-width: 480px) {
  .svc-tabs {
    gap: .4rem;
  }
  .svc-tab {
    font-size: .78rem;
    padding: .45rem 1rem;
  }
  .service-card {
    padding: 1.75rem 1.5rem;
  }
  .service-title {
    font-size: 1.2rem;
  }
  .price {
    font-size: 1.5rem;
  }
  .svc-addon-chip {
    font-size: .78rem;
    padding: .6rem .85rem;
  }
}
.step-title,
.diff-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cd-text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.diff-title {
  display: block;
  margin-bottom: 1rem;
}
/* ══════════════════════════════════════════
   PORTFOLIO — services-grid
   Agregar al final de style-v2.css,
   después del bloque de servicios.
   ══════════════════════════════════════════ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
  align-items: start;
}

/* Cliente / subtítulo de card portfolio */
.portfolio-client {
  font-size: .85rem;
  color: var(--secondary, #00a7a9);
  font-weight: 600;
  margin-bottom: .75rem;
  margin-top: -.25rem;
}

/* En portfolio las features siempre visibles (no hay expand en portfolio) */
.portfolio-section .service-content {
  max-height: none !important;
  overflow: visible !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    gap: 1rem;
  }
}
.method-section {
    padding: var(--section-padding) 0;
    background: white;
}
.method-intro {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}
.method-text p {
    color: var(--cd-text-light);
    font-size: 1.1rem;
}
.method-text strong {
    color: var(--cd-text);
    font-weight: 700;
}
.method-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.method-stat-card {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.method-stat-card:hover {
    transform: translate3d(0, -8px, 0);
}
.method-stat-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-display);
}
.method-stat-label {
    font-size: 1rem;
    opacity: 0.9;
}
.method-process {
    margin-bottom: 4rem;
}
.process-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}
.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: var(--light);
}
.process-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    align-items: start;
}
.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    font-family: var(--font-display);
    position: relative;
    z-index: 2;
}
.step-content h4 {
    color: var(--cd-text);
    margin-bottom: 0.75rem;
}
.step-content p {
    color: var(--cd-text-light);
    margin-bottom: 0;
}
.method-differentiators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 3rem;
    background: var(--light);
    border-radius: 16px;
}
.diff-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.diff-column ul {
    list-style: none;
}
.diff-column li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--cd-text-light);
}
.diff-column li::before {
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}
.portfolio-section-title {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.portfolio-section {
    padding: var(--section-padding) 0;
    background: var(--light);
}
.portfolio-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.portfolio-image {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}
.portfolio-image img {
    width: 100%;
    height: auto;
    display: block;
}
.portfolio-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}
.portfolio-content {
    padding: 3rem 3rem 3rem 0;
}
.portfolio-content h3 {
    margin-bottom: 0.5rem;
}
.portfolio-client {
    color: var(--cd-text-light);
    margin-bottom: 2rem;
}
.portfolio-problem,
.portfolio-solution,
.portfolio-results {
    margin-bottom: 2rem;
}
.portfolio-content h4 {
    color: var(--primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.portfolio-content p {
    color: var(--cd-text-light);
    margin-bottom: 0;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.result-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
}
.result-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--primary);
}
.result-label {
    color: var(--cd-text);
    font-weight: 600;
    font-size: 0.9rem;
}
.result-detail {
    color: var(--cd-text-light);
    font-size: 0.85rem;
}
.faq-section {
    padding: var(--section-padding) 0;
    background: white;
}
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 2px solid var(--light);
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cd-text);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.faq-question:hover {
    color: var(--primary);
}
.faq-question svg {
    flex-shrink: 0;
    transition: var(--transition-smooth);
}
.faq-item.active .faq-question svg {
    transform: rotate3d(0, 0, 1, 180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.active .faq-answer {
    max-height: 500px;
}
.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--cd-text-light);
    margin-bottom: 0;
}
.blog-strip {
      background: linear-gradient(135deg, rgba(0,167,169,0.08) 0%, rgba(3,101,140,0.08) 100%);
      border-top: 1px solid rgba(0,167,169,0.15);
      border-bottom: 1px solid rgba(0,167,169,0.15);
      padding: 1.25rem 0;
    }
    .blog-strip-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      flex-wrap: wrap;
    }
    .blog-strip-left {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .blog-strip-icon {
      width: 38px; height: 38px;
      background: linear-gradient(135deg, #03658C, #00A7A9);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem;
      flex-shrink: 0;
    }
    .blog-strip-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .blog-strip-label {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #00A7A9;
    }
    .blog-strip-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--cd-text);
    }
    .blog-strip-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0.5rem 1.25rem;
      background: linear-gradient(135deg, #03658C, #00A7A9);
      color: #fff;
      border-radius: 50px;
      font-size: 0.875rem;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
      transition: var(--transition-smooth);
      box-shadow: 0 4px 12px rgba(0,167,169,0.25);
    }
    .blog-strip-link:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(0,167,169,0.35);
    }
.contact-section {
    padding: var(--section-padding) 0;
    background: var(--light);
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}
.contact-info p {
    color: var(--cd-text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    transition: var(--transition-smooth);
}
.contact-method:hover {
    box-shadow: var(--shadow-md);
    transform: translate3d(4px, 0, 0);
}
.method-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
}
.contact-method-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.method-label {
    color: var(--cd-text-light);
    font-size: 0.9rem;
}
.method-value {
    color: var(--cd-text);
    font-weight: 600;
    font-size: 1.1rem;
}
.contact-guarantee {
    padding: 1.5rem;
    background: rgba(0, 167, 169, 0.1);
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
}
.contact-guarantee p {
    margin-bottom: 0;
    color: var(--cd-text);
}
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--cd-text);
    font-weight: 600;
    font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(3, 101, 140, 0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--cd-text-light);
    text-align: center;
}
.footer {
  background: #07111C;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Línea superior decorativa */
.footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #03658C 0%, #00A7A9 50%, #03658C 100%);
}

/* ── CTA Banner ── */
.footer-cta-bar {
  background: linear-gradient(135deg, #0D2235 0%, #0A3049 100%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 2.25rem 0;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-cta-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .2rem;
}
.footer-cta-text span {
  font-size: .85rem;
  color: rgba(255,255,255,.85);
}
.footer-cta-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.footer-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  background: linear-gradient(135deg, #03658C, #00A7A9);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow .2s, transform .2s;
}
.footer-btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0,167,169,.35);
  transform: translateY(-1px);
  color: #fff;
}
.footer-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  background: #128c7e;
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.footer-btn-wa:hover {
  background: #0e7a6d;
  transform: translateY(-1px);
  color: #fff;
}

/* ── Cuerpo principal ── */
.footer-body {
  padding: 3.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Columna Brand ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}
.logo-text-footer {
  font-family: 'Raleway', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .05em;
}
.footer-tagline {
  font-size: .88rem;
  line-height: 1.65;
  color: rgba(255,255,255,.8);
  margin: 0;
  max-width: 30ch;
}

/* Badge Lighthouse */
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(0,200,83,.1);
  border: 1px solid rgba(0,200,83,.25);
  border-radius: 8px;
  padding: .5rem .85rem;
  width: fit-content;
  cursor: default;
}
.footer-badge-scores {
  display: flex;
  gap: .6rem;
}
.footer-badge-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.footer-badge-score .val {
  font-size: .95rem;
  font-weight: 800;
  color: #00c853;
}
.footer-badge-score .lbl {
  font-size: .6rem;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 2px;
}
.footer-badge-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.1);
}
.footer-badge-label {
  font-size: .7rem;
  font-weight: 700;
  color: #00c853;
  text-transform: uppercase;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
}

/* Redes sociales */
.footer-social {
  display: flex;
  gap: .5rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  background: #03658C;
  border-color: #03658C;
  color: #fff;
  outline: none;
}

/* ── Columnas de links ── */
.footer-column { min-width: 0; }
.footer-column-title {
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 1rem;
  line-height: 1.4;
}
.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-column li {
  margin-bottom: .55rem;
}
.footer-column a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .875rem;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: color .18s;
}
.footer-column a:hover,
.footer-column a:focus-visible {
  color: #fff;
  outline: none;
}
.footer-column a .link-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s, transform .18s;
  font-size: .75rem;
  color: #00A7A9;
}
.footer-column a:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}
.link-disabled {
  opacity: .35;
  pointer-events: none;
  cursor: default;
}
.link-soon {
  font-size: .65rem;
  font-weight: 700;
  background: rgba(0,167,169,.15);
  color: #00A7A9;
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: .05em;
  vertical-align: middle;
  text-transform: uppercase;
  margin-left: .25rem;
}

/* ── Separador ── */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.07);
  margin: 0;
}

/* ── Bottom ── */
.footer-bottom {
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  margin: 0;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.footer-legal a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .8rem;
  transition: color .18s;
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 2rem; }
  .footer-tagline { max-width: 100%; }
}
@media (max-width: 768px) {
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-cta-actions { width: 100%; }
  .footer-btn-primary,
  .footer-btn-wa { flex: 1; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { flex-direction: column; gap: 1.25rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes scrollLine {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.hero [data-animate].animated {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}
@media (max-width: 1024px) {
    .method-intro,
    .portfolio-featured,
    .contact-content {
        grid-template-columns: 1fr;
    }
    .portfolio-image {
        min-height: 400px;
    }
    .portfolio-content {
        padding: 3rem;
    }
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 2rem;
    }
    .problem-section {
        min-height: 1200px; 
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .process-timeline::before {
        left: 20px;
    }
    .process-step {
        grid-template-columns: 40px 1fr;
        gap: 1rem;
    }
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .method-differentiators {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    .blog-strip-inner { justify-content: center; text-align: center; }
    .blog-strip-left { flex-direction: column; gap: 0.5rem; }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .problem-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 2rem;
    }
}
section {
    scroll-margin-top: 90px;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}