/* ========================================================= */
/*   ANDERSON COMPUTERS - DESARROLLO WEB & COMPONENTES       */
/* ========================================================= */

.dark-theme-web {
    background-color: #0b132b;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #e2e8f0;
}

/* Hero Section */
.service-hero-web {
    background: linear-gradient(180deg, rgba(11, 19, 43, 0.92) 0%, rgba(15, 23, 42, 0.97) 100%);
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.web-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.service-hero-web h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    max-width: 950px;
    margin: 0 auto 20px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.25;
}

.service-hero-web p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 820px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

.web-hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-web-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
    transition: all 0.3s ease;
}

.btn-web-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(2, 132, 199, 0.6);
}

.btn-web-outline {
    background: rgba(30, 41, 59, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-web-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #38bdf8;
    transform: translateY(-2px);
}

/* ========================================================= */
/*   SHOWCASE INTERACTIVO DE COMPONENTES WEB                 */
/* ========================================================= */
.web-showcase-section {
    padding: 80px 0;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.web-section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 40px;
}

.web-section-tag {
    color: #38bdf8;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 10px;
}

.web-section-header h2 {
    color: #ffffff;
    font-size: 2.3rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
}

.web-section-header p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Pestañas de Componentes */
.web-comp-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.web-comp-btn {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s ease;
    font-family: inherit;
}

.web-comp-btn.active {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
}

.web-comp-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Panel de Componente */
.web-comp-panel {
    display: none;
    background: #1e293b;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInComp 0.35s ease forwards;
}

.web-comp-panel.active {
    display: block;
}

@keyframes fadeInComp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.web-comp-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 950px) {
    .web-comp-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.comp-badge-pill {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.comp-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.comp-desc {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.comp-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comp-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.comp-features-list li i {
    color: #38bdf8;
    margin-top: 3px;
    flex-shrink: 0;
}

.comp-footer-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comp-price-tag {
    font-size: 1.4rem;
    font-weight: 800;
    color: #38bdf8;
}

.comp-price-tag small {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: normal;
}

/* Columna Derecha: Mockup Interactivo del Dispositivo */
.device-preview-wrapper {
    background: #091322;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.device-switcher-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.device-switcher-title {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
}

.device-btn-group {
    display: flex;
    gap: 6px;
}

.btn-device {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.btn-device.active, .btn-device:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
}

/* Marco del Mockup */
.mockup-frame {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    transition: all 0.35s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.mockup-frame.mode-tablet {
    max-width: 78%;
}

.mockup-frame.mode-mobile {
    max-width: 52%;
}

@media (max-width: 580px) {
    .mockup-frame.mode-tablet, .mockup-frame.mode-mobile {
        max-width: 100%;
    }
}

.mockup-header-bar {
    background: #1e293b;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dots {
    display: flex;
    gap: 5px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-url-bar {
    background: #0f172a;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.72rem;
    color: #94a3b8;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mockup-screen-content {
    background: #ffffff;
    color: #0f172a;
    min-height: 230px;
    max-height: 270px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 16px;
}

/* ========================================================= */
/*   COTIZADOR RÁPIDO INTERACTIVO DE PROYECTO WEB EN VIVO    */
/* ========================================================= */
.web-estimator-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #091322 0%, #0d1e36 50%, #08111e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.estimator-box {
    background: #1e293b;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px;
    padding: 40px;
    max-width: 950px;
    margin: 0 auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.estimator-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .estimator-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.estimator-subtitle {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

@media (max-width: 550px) {
    .project-type-options {
        grid-template-columns: 1fr;
    }
}

.project-option-card {
    background: #0f172a;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.project-option-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.project-option-card.active {
    background: rgba(2, 132, 199, 0.15);
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

.p-opt-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.p-opt-desc {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-bottom: 8px;
    line-height: 1.35;
}

.p-opt-price {
    color: #38bdf8;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Add-ons Checkboxes */
.addons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.addon-item {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.addon-item:hover {
    border-color: rgba(56, 189, 248, 0.4);
}

.addon-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 0.88rem;
    cursor: pointer;
}

.addon-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #0284c7;
    cursor: pointer;
}

.addon-price {
    color: #10b981;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Columna Resumen Cotización */
.estimator-summary-col {
    background: #0f172a;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.summary-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94a3b8;
}

.summary-row.total-row {
    font-size: 1.35rem;
    font-weight: 800;
    color: #38bdf8;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-estimate-whatsapp {
    background: #10b981;
    color: #ffffff !important;
    font-weight: 800;
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
    margin-top: 20px;
}

.btn-estimate-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    background: #059669;
}

/* ========================================================= */
/*   MÉTRICAS Y RENDIMIENTO SPEED & SEO                      */
/* ========================================================= */
.web-metrics-section {
    padding: 70px 0;
    background: #0b132b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.metric-card-web {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 26px 20px;
    text-align: center;
    transition: all 0.25s ease;
}

.metric-card-web:hover {
    border-color: #38bdf8;
    transform: translateY(-4px);
}

.metric-num-web {
    font-size: 2.3rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
}

.metric-label-web {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ========================================================= */
/*   PROCESO DE DESARROLLO EN 4 PASOS                        */
/* ========================================================= */
.web-process-section {
    padding: 80px 0;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

@media (max-width: 580px) {
    .process-steps-grid {
        grid-template-columns: 1fr;
    }
}

.process-step-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px 22px;
    position: relative;
    transition: all 0.25s ease;
}

.process-step-card:hover {
    border-color: #0284c7;
    transform: translateY(-4px);
}

.process-step-num {
    position: absolute;
    top: -15px;
    left: 22px;
    background: #0284c7;
    color: #ffffff;
    font-weight: 800;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
}

.process-step-card h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 10px 0 10px;
}

.process-step-card p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

/* ========================================================= */
/*   TECH STACK                                              */
/* ========================================================= */
.web-tech-section {
    padding: 70px 0;
    background: #091322;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.tech-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.25s ease;
}

.tech-card:hover {
    border-color: #38bdf8;
    transform: translateY(-3px);
}

.tech-card i {
    font-size: 2.2rem;
    color: #38bdf8;
    margin-bottom: 10px;
    display: block;
}

.tech-card .t-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.tech-card .t-type {
    color: #94a3b8;
    font-size: 0.76rem;
}

/* ========================================================= */
/*   BOTTOM CTA BANNER (HIGH CONTRAST)                       */
/* ========================================================= */
.web-cta-section {
    padding: 80px 0;
    background: #0b132b;
}

.web-cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 20px !important;
    padding: 50px 30px !important;
    text-align: center !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.web-cta-card h3 {
    color: #ffffff !important;
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.web-cta-card p {
    color: #cbd5e1 !important;
    font-size: 1.1rem !important;
    max-width: 650px !important;
    margin: 0 auto 25px !important;
}

.btn-web-cta-outline {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1.5px solid #38bdf8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.btn-web-cta-outline:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4) !important;
}
