/* Servicio Tecnico - capa visual compartida */
:root {
    --st-bg: #edf4fc;
    --st-bg-alt: #f7fbff;
    --st-ink: #10223a;
    --st-muted: #5d7087;
    --st-navy: #0f2c4d;
    --st-blue: #1c4f7f;
    --st-cyan: #17b7d7;
    --st-cyan-soft: rgba(23, 183, 215, 0.14);
    --st-amber: #f9bc4d;
    --st-surface: rgba(255, 255, 255, 0.9);
    --st-border: rgba(16, 34, 58, 0.1);
    --st-shadow: 0 24px 50px rgba(16, 34, 58, 0.14);
}

body.servicio-tecnico-page {
    color: var(--st-ink);
    background:
        radial-gradient(circle at 88% 10%, rgba(23, 183, 215, 0.22), transparent 30%),
        radial-gradient(circle at 8% 82%, rgba(249, 188, 77, 0.18), transparent 28%),
        linear-gradient(170deg, #f7fbff 0%, var(--st-bg) 56%, #e6edf7 100%);
    min-height: 100vh;
}

body.servicio-tecnico-page main {
    background:
        radial-gradient(circle at 8% 78%, rgba(249, 188, 77, 0.12), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(23, 183, 215, 0.12), transparent 30%),
        linear-gradient(175deg, #f8fbff 0%, #eef4fc 60%, #e8f0fb 100%);
}

body.servicio-tecnico-page h1,
body.servicio-tecnico-page h2,
body.servicio-tecnico-page h3,
body.servicio-tecnico-page h4,
body.servicio-tecnico-page h5,
body.servicio-tecnico-page h6,
body.servicio-tecnico-page .section-title,
body.servicio-tecnico-page .topbar h1,
body.servicio-tecnico-page .hero h1,
body.servicio-tecnico-page .edit-title,
body.servicio-tecnico-page .panel-title {
    font-family: 'Space Grotesk', 'Montserrat', 'Segoe UI', sans-serif;
    letter-spacing: 0.2px;
}

.servicio-shell {
    position: relative;
}

body.servicio-tecnico-page .hero-servicio,
body.servicio-tecnico-page .topbar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, rgba(15, 44, 77, 0.96), rgba(28, 79, 127, 0.95), rgba(23, 183, 215, 0.88));
    color: #fff;
}

body.servicio-tecnico-page .hero-servicio {
    padding: 96px 0;
}

body.servicio-tecnico-page .hero-servicio::before,
body.servicio-tecnico-page .topbar::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -90px;
    top: -140px;
    border-radius: 999px;
    background: rgba(157, 230, 242, 0.2);
    pointer-events: none;
}

body.servicio-tecnico-page .hero-servicio::after,
body.servicio-tecnico-page .topbar::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -60px;
    bottom: -140px;
    border-radius: 999px;
    background: rgba(249, 188, 77, 0.16);
    pointer-events: none;
}

body.servicio-tecnico-page .hero-panel,
body.servicio-tecnico-page .topbar-panel,
body.servicio-tecnico-page .servicio-hero-panel,
body.servicio-tecnico-page .servicio-topbar-panel {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

body.servicio-tecnico-page .servicio-card,
body.servicio-tecnico-page .diagnostico-card,
body.servicio-tecnico-page .edit-card,
body.servicio-tecnico-page .panel-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: var(--st-surface);
    box-shadow: var(--st-shadow);
    backdrop-filter: blur(8px);
}

body.servicio-tecnico-page .servicio-card-soft,
body.servicio-tecnico-page .form-shell {
    border-radius: 18px;
    border: 1px solid var(--st-border);
    background: linear-gradient(170deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: inset 0 1px 0 #fff;
}

body.servicio-tecnico-page .servicio-badge,
body.servicio-tecnico-page .hero-badge,
body.servicio-tecnico-page .summary-pill {
    border-radius: 999px;
    font-weight: 700;
}

body.servicio-tecnico-page .servicio-badge,
body.servicio-tecnico-page .hero-badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.servicio-tecnico-page .servicio-cta,
body.servicio-tecnico-page .btn-teceec,
body.servicio-tecnico-page .btn-save,
body.servicio-tecnico-page .btn-primary-custom,
body.servicio-tecnico-page .btn-whatsapp-cta {
    border: none;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--st-blue), #2865a0, var(--st-cyan));
    color: #fff;
    box-shadow: 0 14px 28px rgba(28, 79, 127, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

body.servicio-tecnico-page .servicio-cta:hover,
body.servicio-tecnico-page .btn-teceec:hover,
body.servicio-tecnico-page .btn-save:hover,
body.servicio-tecnico-page .btn-primary-custom:hover,
body.servicio-tecnico-page .btn-whatsapp-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 18px 32px rgba(16, 44, 77, 0.34);
}

body.servicio-tecnico-page .servicio-outline {
    border-color: rgba(255, 255, 255, 0.36);
    color: #fff;
}

body.servicio-tecnico-page .servicio-outline:hover {
    background: #fff;
    color: var(--st-navy);
}

body.servicio-tecnico-page .servicio-link,
body.servicio-tecnico-page .admin-link {
    border-color: var(--st-blue);
    color: var(--st-blue);
}

body.servicio-tecnico-page .servicio-link:hover,
body.servicio-tecnico-page .admin-link:hover {
    background: var(--st-blue);
    color: #fff;
}

body.servicio-tecnico-page .servicio-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    background: linear-gradient(140deg, #0a4d7f, var(--st-cyan));
    box-shadow: 0 16px 32px rgba(23, 183, 215, 0.34);
}

body.servicio-tecnico-page .servicio-card-hover,
body.servicio-tecnico-page .service-card,
body.servicio-tecnico-page .process-step,
body.servicio-tecnico-page .pricing-card,
body.servicio-tecnico-page .testimonial-card {
    border: 1px solid var(--st-border);
    box-shadow: 0 18px 36px rgba(16, 34, 58, 0.08);
}

body.servicio-tecnico-page .service-card,
body.servicio-tecnico-page .process-step,
body.servicio-tecnico-page .pricing-card,
body.servicio-tecnico-page .testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.servicio-tecnico-page .service-card:hover,
body.servicio-tecnico-page .process-step:hover,
body.servicio-tecnico-page .pricing-card:hover,
body.servicio-tecnico-page .testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(23, 183, 215, 0.35);
    box-shadow: 0 28px 48px rgba(16, 34, 58, 0.12);
}

body.servicio-tecnico-page .service-card {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(170deg, #ffffff 0%, #f4f9ff 100%);
}

body.servicio-tecnico-page .service-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

body.servicio-tecnico-page .process-step {
    position: relative;
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 250, 255, 0.94));
}

body.servicio-tecnico-page .process-number,
body.servicio-tecnico-page .pulse-dot {
    background: var(--st-amber);
}

body.servicio-tecnico-page .process-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(249, 188, 77, 0.35);
}

body.servicio-tecnico-page .form-label {
    font-weight: 600;
    color: var(--st-ink);
    margin-bottom: 7px;
}

body.servicio-tecnico-page .form-control,
body.servicio-tecnico-page .form-select,
body.servicio-tecnico-page #filtroDiagnosticos {
    border: 1px solid #c8d8ec;
    border-radius: 11px;
    min-height: 46px;
    color: var(--st-ink);
    background: #fff;
}

body.servicio-tecnico-page .form-control:focus,
body.servicio-tecnico-page .form-select:focus,
body.servicio-tecnico-page #filtroDiagnosticos:focus {
    border-color: var(--st-cyan);
    box-shadow: 0 0 0 0.25rem rgba(23, 183, 215, 0.17);
}

body.servicio-tecnico-page textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

body.servicio-tecnico-page .field-hint,
body.servicio-tecnico-page .muted-text,
body.servicio-tecnico-page .benefit-item {
    color: var(--st-muted);
}

body.servicio-tecnico-page .benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
    font-size: 0.95rem;
}

body.servicio-tecnico-page .benefit-item i {
    color: #16a34a;
}

body.servicio-tecnico-page .feedback-alert {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(16, 34, 58, 0.12);
    animation: servicio-rise-in 0.4s ease both;
}

body.servicio-tecnico-page .feedback-alert.alert-success {
    background: linear-gradient(120deg, #ecfdf3 0%, #dbf7e8 100%);
    color: #0f5132;
}

body.servicio-tecnico-page .feedback-alert.alert-warning {
    background: linear-gradient(120deg, #fff8e8 0%, #ffefcc 100%);
    color: #7a4a00;
}

body.servicio-tecnico-page .feedback-alert.alert-danger {
    background: linear-gradient(120deg, #fff1f1 0%, #fde5e5 100%);
    color: #7f1d1d;
}

body.servicio-tecnico-page .table thead th {
    background: #edf4ff;
    color: #2b4161;
    border-bottom: 0;
    white-space: nowrap;
    font-size: 0.88rem;
}

body.servicio-tecnico-page .table tbody tr:hover {
    background-color: #f5f9ff;
}

body.servicio-tecnico-page .page-link {
    color: var(--st-blue);
    border-color: #ccdaed;
}

body.servicio-tecnico-page .page-item.active .page-link {
    background: linear-gradient(120deg, var(--st-blue), var(--st-cyan));
    border-color: transparent;
}

body.servicio-tecnico-page .summary-pill {
    background: linear-gradient(140deg, #ffe08e, var(--st-amber));
    color: #3e2a06;
    border: 1px solid rgba(249, 188, 77, 0.55);
}

body.servicio-tecnico-page .btn-edit {
    background: linear-gradient(140deg, #ffe08e, var(--st-amber));
    color: #2d2f35;
    border: none;
    border-radius: 10px;
    min-width: 34px;
    min-height: 34px;
}

body.servicio-tecnico-page .btn-delete {
    background: #df3f59;
    border: none;
    color: #fff;
    border-radius: 10px;
    min-width: 34px;
    min-height: 34px;
}

body.servicio-tecnico-page .btn-edit:hover,
body.servicio-tecnico-page .btn-delete:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

body.servicio-tecnico-page .hero-image-container {
    position: relative;
    display: inline-block;
}

body.servicio-tecnico-page .hero-main-image {
    position: relative;
    z-index: 2;
    animation: servicio-float 5.5s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    max-width: 400px;
    height: auto;
}

body.servicio-tecnico-page .hero-decoration {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: servicio-rotate 28s linear infinite;
}

body.servicio-tecnico-page .hero-decoration-1 {
    width: 100px;
    height: 100px;
    top: -20px;
    right: -20px;
    backdrop-filter: blur(10px);
}

body.servicio-tecnico-page .hero-decoration-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
    animation-delay: -5s;
    backdrop-filter: blur(10px);
}

body.servicio-tecnico-page .floating-icon {
    position: absolute;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    z-index: 3;
    animation: servicio-float-icon 6s ease-in-out infinite;
}

body.servicio-tecnico-page .floating-icon-1 {
    top: 10%;
    right: 10%;
    color: var(--st-cyan);
    animation-delay: 0s;
}

body.servicio-tecnico-page .floating-icon-2 {
    top: 50%;
    left: -5%;
    color: var(--st-blue);
    animation-delay: -1s;
}

body.servicio-tecnico-page .floating-icon-3 {
    bottom: 20%;
    right: 5%;
    color: #25D366;
    animation-delay: -2s;
}

body.servicio-tecnico-page .floating-icon-4 {
    bottom: 5%;
    left: 15%;
    color: var(--st-amber);
    animation-delay: -3s;
}

body.servicio-tecnico-page .tech-badge {
    position: absolute;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 15px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 3;
    animation: servicio-slide-in 0.8s ease-out;
}

body.servicio-tecnico-page .tech-badge-1 {
    top: 20%;
    left: -10%;
}

body.servicio-tecnico-page .tech-badge-2 {
    bottom: 15%;
    right: -10%;
}

body.servicio-tecnico-page .tech-badge i {
    font-size: 1.3rem;
    margin-right: 8px;
}

body.servicio-tecnico-page .badge.bg-primary {
    background: linear-gradient(130deg, var(--st-blue), var(--st-cyan)) !important;
}

@keyframes servicio-rise-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes servicio-float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes servicio-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes servicio-float-icon {
    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

@keyframes servicio-slide-in {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 991.98px) {
    body.servicio-tecnico-page .diagnostico-card {
        margin-top: -32px;
    }

    body.servicio-tecnico-page .info-side {
        border-right: 0;
        border-bottom: 1px dashed rgba(16, 34, 58, 0.12);
        padding-bottom: 1.4rem;
    }
}

@media (max-width: 767.98px) {
    body.servicio-tecnico-page .hero-servicio,
    body.servicio-tecnico-page .topbar {
        border-radius: 0;
    }

    body.servicio-tecnico-page .floating-icon,
    body.servicio-tecnico-page .tech-badge {
        display: none;
    }

    body.servicio-tecnico-page .service-card .card-img-top {
        height: 180px;
    }

    body.servicio-tecnico-page .panel-card,
    body.servicio-tecnico-page .edit-card,
    body.servicio-tecnico-page .diagnostico-card,
    body.servicio-tecnico-page .servicio-card,
    body.servicio-tecnico-page .service-card,
    body.servicio-tecnico-page .pricing-card {
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
