/* ============================================================
   Estilos particulares para servicios/desarrollo-web.html
   ============================================================ */

/* ── HERO DEL SERVICIO ── */
.service-hero {
    background:
        radial-gradient(ellipse 90% 65% at 50% -5%,  rgba(255, 122, 26, 0.60) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 50% 0%,   rgba(200, 70, 0, 0.40)   0%, transparent 55%),
        radial-gradient(ellipse 120% 40% at 50% 100%, rgba(0,0,0,0.8) 0%, transparent 70%),
        #0D0905;
    padding: 200px 24px 130px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Halo central difuso */
.service-hero::before {
    content: '';
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(255, 122, 26, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Línea de luz en el top */
.service-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,122,26,0.6), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Orbes decorativos */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-orb-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    left: -80px;
    background: radial-gradient(circle, rgba(255,122,26,0.06) 0%, transparent 70%);
}

.hero-orb-2 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    right: -60px;
    background: radial-gradient(circle, rgba(255,149,80,0.05) 0%, transparent 70%);
}

/* Contenedor interior */
.service-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Badge superior */
.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255, 122, 26, 0.35);
    background: rgba(255, 122, 26, 0.08);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4CFF9E;
    box-shadow: 0 0 8px rgba(76, 255, 158, 0.6);
    animation: pulse-dot 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.8); }
}

/* Título */
.service-hero h1 {
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    line-height: 1.05;
    position: relative;
    z-index: 1;
}

.hero-highlight {
    color: #FF7A1A;
    background: linear-gradient(120deg, #FF7A1A, #FF9550, #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtítulo */
.service-hero p {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 800px;
    width: 100%;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Botones CTA */
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    background: #FF7A1A;
    color: #fff;
    border: 1px solid transparent;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn-primary:hover {
    background: #FF9550;
    transform: translateY(-2px);
    box-shadow: 0 0px 32px rgba(255, 122, 26, 0.45);
}

.hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255, 122, 26, 0.25);
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.hero-btn-ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.12), rgba(255, 149, 80, 0.08));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hero-btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 122, 26, 0.5);
    box-shadow: 0 4px 20px rgba(255, 122, 26, 0.15);
    transform: translateY(-2px);
}

.hero-btn-ghost:hover::before { opacity: 1; }

.hero-btn-ghost span {
    position: relative;
    z-index: 1;
}


/* ── SECCIÓN "¿QUÉ INCLUYE?" — 2 columnas ── */
.service-content {
    background: var(--bg-secondary);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.content-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

/* ─ Columna izquierda: imagen ─ */
.content-image {
    position: relative;
    width: 100%;
}

.image-placeholder {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 122, 26, 0.18);
    background: var(--bg-main);
    position: relative;
}

.image-placeholder img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* Fallback visual cuando no hay imagen aún */
.image-placeholder.img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: radial-gradient(circle at 35% 45%, rgba(255, 122, 26, 0.13) 0%, transparent 60%),
                var(--bg-main);
}

.image-placeholder.img-fallback::after {
    content: '';
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 122, 26, 0.12);
    box-shadow: 0 0 60px rgba(255, 122, 26, 0.2);
}


/* ─ Columna derecha: texto ─ */
.content-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    min-width: 0;
}

.content-text h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-align: left;
    width: 100%;
}

.content-text > p {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    text-align: left;
    width: 100%;
    padding: 0;
    margin-left: 0;
}

/* Lista */
.service-list {
    margin-top: 0;
    width: 100%;
}

.service-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.service-list li {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: var(--text-main);
    line-height: 1.5;
    padding-left: 0;
    position: relative;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.service-list li::before,
.service-list li::after {
    display: none;
}

.service-list li svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 1px;
}

.service-list li span {
    flex: 1;
    min-width: 0;
}


/* ── CARACTERÍSTICAS DESTACADAS ── */
.service-features {
    background: var(--bg-main);
    padding: 100px 24px;
}

.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* CARD CON HOVER GLOW */
.feature-card {
    background: var(--bg-secondary);
    padding: 40px 32px 52px;
    border-radius: 14px;
    border: 1px solid rgba(255, 122, 26, 0.18);
    position: relative;
    overflow: hidden;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.45s ease !important;
    will-change: transform, border-color, background, box-shadow;
    transform: translateZ(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 15% 20%,
        rgba(255, 122, 26, 0.18) 0%,
        rgba(255, 122, 26, 0.06) 35%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.45s ease !important;
    pointer-events: none;
    z-index: 0;
}

.feature-card::after {
    display: none;
}

.feature-card:hover {
    border-color: rgba(255, 122, 26, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 122, 26, 0.12),
        0 8px 32px rgba(255, 122, 26, 0.15),
        0 24px 56px rgba(0, 0, 0, 0.25);
    transform: translateY(-6px);
    background: rgba(255, 122, 26, 0.03);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after  { opacity: 1; transform: scale(1); }

.feature-card > * { position: relative; z-index: 1; }

.feature-card svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 24px;
    color: #FF7A1A;
    display: block;
    padding: 10px;
    border-radius: 10px;
    background: transparent;
    transition: background 0.45s ease, box-shadow 0.45s ease !important;
    box-sizing: content-box;
}

.feature-card:hover svg {
    background: rgba(255, 122, 26, 0.15);
    box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.25);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 14px;
    text-align: center;
    transition: color 0.45s ease !important;
}

.feature-card:hover h3 { color: #fff; }

/* Override nv-done para que el hover funcione siempre */
.feature-card.nv-done,
.feature-card.nv-reveal-card.nv-done {
    transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.45s ease !important;
}

.feature-card:not(.nv-reveal-card) {
    transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.45s ease !important;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    transition: color 0.45s ease !important;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}


/* ── SECCIÓN PROCESO ── */
.service-process {
    background: var(--bg-secondary);
    padding: 100px 24px;
}

.process-container {
    max-width: 960px;
    margin: 0 auto;
}

.process-container h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 64px;
    text-align: center;
    letter-spacing: -0.01em;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 32px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #FF7A1A, #FF9550);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    margin: 0 0 20px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(255, 122, 26, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(255, 122, 26, 0.5);
}

.process-step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    text-align: center;
}

.process-step p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    text-align: center;
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}


/* ── CTA FINAL ── */
.service-cta {
    background: linear-gradient(135deg, var(--bg-main), var(--bg-secondary));
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 122, 26, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 149, 80, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-cta h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    text-align: center;
}

.service-cta p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: center;
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.service-cta .buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.service-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    background: #FF7A1A;
    color: white;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-cta .btn-primary:hover {
    background: #FF9550;
    transform: translateY(-2px);
    box-shadow: 0 0px 32px rgba(255, 122, 26, 0.4);
}

.service-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition:
        color        0.35s ease,
        border-color 0.35s ease,
        box-shadow   0.35s ease,
        transform    0.35s ease;
}

.service-cta .btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.12), rgba(255, 149, 80, 0.08));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-cta .btn-secondary:hover {
    color: #fff;
    border-color: rgba(255, 122, 26, 0.5);
    box-shadow: 0 4px 20px rgba(255, 122, 26, 0.15);
    transform: translateY(-2px);
}

.service-cta .btn-secondary:hover::before { opacity: 1; }

.service-cta .btn-secondary span {
    position: relative;
    z-index: 1;
}


/* ── BOTÓN WHATSAPP FLOTANTE ── */
#btn-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    color: #fff;
    border: none;
    padding: 0;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

#btn-whatsapp:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

#btn-whatsapp svg {
    width: 28px;
    height: 28px;
    display: block;
    flex-shrink: 0;
}


/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    .content-layout {
        gap: 48px;
    }
}

/* ── Tablet (≤ 900px): colapsar a 1 columna ── */
@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-image {
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }

    .image-placeholder img {
        width: 100%;
        height: auto;
        max-height: 360px;
    }

    .content-text {
        width: 100%;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
    .service-hero {
        padding: 140px 20px 80px;
        min-height: auto;
    }

    .service-badge {
        font-size: 0.65rem;
        padding: 7px 14px;
        letter-spacing: 0.08em;
    }

    .service-hero h1 {
        font-size: clamp(2rem, 9vw, 3rem);
        margin-bottom: 20px;
    }

    .service-hero p {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-btn-primary,
    .hero-btn-ghost {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .service-content {
        padding: 60px 20px;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .content-image {
        max-width: 100%;
    }

    .image-placeholder img {
        width: 100%;
        height: auto;
        max-height: 280px;
        object-fit: cover;
    }

    .content-text h2 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .service-list ul {
        width: 100%;
        gap: 14px;
    }

    .service-list li {
        font-size: 0.92rem;
    }

    .service-features {
        padding: 60px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 28px 20px 36px;
    }

    .service-process {
        padding: 60px 20px;
    }

    .process-container h2 {
        margin-bottom: 40px;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 36px 16px;
    }

    .step-number {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }

    .process-step h3 {
        font-size: 1rem;
    }

    .process-step p {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .service-cta {
        padding: 60px 20px;
    }

    .service-cta .buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .service-cta .btn-primary,
    .service-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    #btn-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    #btn-whatsapp svg {
        width: 24px;
        height: 24px;
    }
}

/* ── Mobile pequeño (≤ 480px) ── */
@media (max-width: 480px) {
    .service-hero {
        padding: 120px 16px 70px;
    }

    .service-badge {
        font-size: 0.6rem;
        padding: 6px 12px;
    }

    .service-hero h1 {
        font-size: clamp(1.8rem, 10vw, 2.6rem);
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-content,
    .service-features,
    .service-process,
    .service-cta {
        padding: 50px 16px;
    }
}

/* ── Fix nv-reveal-left en responsive ──
   En móvil el translateX es cortado por overflow-x hidden.
   Se reemplaza por animación solo de opacidad. ── */
@media (max-width: 900px) {
    .content-image.nv-reveal-left,
    .content-image.nv-reveal-left.nv-animating {
        transform: translateY(16px) !important;
    }
    .content-image.nv-reveal-left.nv-visible {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}