/*
 * PCEFACT PERU - Hoja de estilos principal RESPONSIVA
 * Facturación Electrónica
 */

/* SEGURIDAD AOS: Si la libreria AOS JS no carga, mostrar todo el contenido */
.aos-fallback [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

 :root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --accent-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #fd7e14;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --border-radius: 8px;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease;
}

/* ====================================
   ESTILOS GENERALES RESPONSIVOS
   ==================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-size: 16px;
    width: 100%;
    max-width: 100vw;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ====================================
   BOTONES RESPONSIVOS
   ==================================== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 12px 24px;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    font-size: 14px;
    line-height: 1.5;
    min-width: 120px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ====================================
   TÍTULOS DE SECCIÓN RESPONSIVOS
   ==================================== */
.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
    padding: 0 15px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 20px auto 0;
    color: #6c757d;
    line-height: 1.6;
}

/* ====================================
   NAVBAR RESPONSIVA
   ==================================== */
.navbar {
    background-color: var(--primary-color);
    padding: 30px 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
    padding: 8px 0;
}

.navbar-brand img {
    height: 46px;
    max-height: 46px;
    width: auto;
    transition: var(--transition);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 10px 15px !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 15px;
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler {
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: var(--border-radius);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* ====================================
   CAPTCHA RESPONSIVO
   ==================================== */
.captcha-container {
    margin: 15px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.captcha-code {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    letter-spacing: 6px;
    background: linear-gradient(45deg, #f3f3f3, #e9e9e9);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    display: inline-block;
    border: 1px solid #ddd;
    min-width: 150px;
    text-align: center;
}

.refresh-captcha {
    cursor: pointer;
    color: var(--primary-color);
    font-size: 18px;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.refresh-captcha:hover {
    background-color: rgba(0, 86, 179, 0.1);
    transform: rotate(180deg);
}

/* ====================================
   HERO SECTION RESPONSIVA
   ==================================== */
.hero {
    background: linear-gradient(rgba(0, 86, 179, 0.85), rgba(0, 123, 255, 0.8)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 86, 179, 0.1);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    margin: 8px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    min-width: 180px;
}

/* ====================================
   SERVICIOS RESPONSIVOS
   ==================================== */
.service-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    background-color: white;
    border: 1px solid #eee;
    margin-bottom: 25px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ====================================
   DEMOS RESPONSIVOS
   ==================================== */
.demo-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 25px;
    background-color: white;
    height: 100%;
    border: 1px solid #eee;
}

.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.demo-card-img {
    height: 200px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.demo-card-img i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.demo-card:hover .demo-card-img i {
    transform: scale(1.1);
    color: white;
}

.demo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.demo-card:hover .demo-card-img img {
    transform: scale(1.05);
}

.demo-card-content {
    padding: 20px;
}

.demo-card-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.demo-credentials {
    background-color: var(--light-color);
    padding: 12px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    font-size: 14px;
}

.demo-badge {
    margin-bottom: 15px;
}

.demo-badge .badge {
    margin-right: 5px;
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 15px;
}

/* ====================================
   SISTEMA DEMOS
   ==================================== */
.sistema-demos {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.demo-upload-form {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

#otro_tipo_container {
    margin-top: 10px;
}

#otro_tipo {
    transition: var(--transition);
}

/* ====================================
   NOSOTROS RESPONSIVO
   ==================================== */
.nosotros-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* ====================================
   PRECIOS RESPONSIVOS
   ==================================== */
.pricing-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: white;
    height: 100%;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    border-width: 2px;
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: 'Más Popular';
    position: absolute;
    top: 20px;
    right: -30px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 600;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    z-index: 1;
}

.pricing-card-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.pricing-card-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 20px 0;
    line-height: 1;
}

.price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c757d;
    display: block;
    margin-top: 5px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
    font-size: 14px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success-color);
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 12px;
}

/* ====================================
   CONTACTO RESPONSIVO
   ==================================== */
.contact-info {
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    background-color: white;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.contact-info i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-right: 10px;
    width: 25px;
    text-align: center;
}

.contact-info h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-form {
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: white;
    border: 1px solid #eee;
}

.contact-form .form-control {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    transition: var(--transition);
    font-size: 14px;
    margin-bottom: 15px;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
    outline: none;
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ====================================
   FOOTER RESPONSIVO
   ==================================== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

footer h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    transition: var(--transition);
    display: block;
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-links a i {
    width: 20px;
    margin-right: 8px;
}

.social-links {
    font-size: 1.3rem;
    margin-top: 15px;
}

.social-links a {
    color: white;
    margin-right: 12px;
    transition: var(--transition);
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 35px;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

.copyright a {
    color: #ddd;
    text-decoration: none;
}

.copyright a:hover {
    color: var(--accent-color);
}

/* ====================================
   WHATSAPP FLOTANTE — STACK con chatbot + share
   Chatbot: 78px @ bottom:28 → tope estático 106px, anim +8px, ring +12px = 126px
   WhatsApp: bottom:148px → top en 208px → gap 22px sobre chatbot ✓
   Share:    bottom:222px → top en 270px → gap 14px sobre WhatsApp ✓
   Ambos alineados: right: 28px
   ==================================== */
.whatsapp-float {
    position: fixed;
    bottom: 148px;
    right: 28px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    z-index: 1040;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ====================================
   ANIMACIONES
   ==================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====================================
   TABLAS RESPONSIVAS
   ==================================== */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 300px;
}

/* Bootstrap ya proporciona .table-responsive, pero como respaldo global: */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ====================================
   MEDIA QUERIES RESPONSIVAS
   ==================================== */

/* Tablets grandes (hasta 1200px) */
@media (max-width: 1199.98px) {
    .section-title h2 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .service-card, .demo-card, .pricing-card {
        padding: 25px 15px;
    }

    .pricing-card.popular {
        transform: scale(1.02);
    }
}

/* Tablets (hasta 991px) */
@media (max-width: 991.98px) {
    .navbar {
        padding: 18px 0;
    }

    .navbar.scrolled {
        padding: 12px 0;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-brand img {
        height: 44px;
        max-height: 44px;
    }

    .nav-link {
        margin: 0 5px;
        padding: 8px 12px !important;
        font-size: 14px;
    }

    .hero {
        padding: 80px 0 60px;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .service-card, .demo-card, .pricing-card {
        margin-bottom: 20px;
    }

    .pricing-card.popular {
        transform: none;
        margin-top: 0;
    }

    .contact-info, .contact-form {
        margin-bottom: 25px;
    }

    footer {
        text-align: center;
        padding: 40px 0 20px;
    }

    footer .row > div {
        margin-bottom: 25px;
    }
}

/* Móviles grandes (hasta 767px) */
@media (max-width: 767.98px) {
    body {
        font-size: 14px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar {
        padding: 10px 0;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-brand img {
        height: 40px;
        max-height: 40px;
    }

    .hero {
        padding: 80px 0 40px;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero .btn {
        margin: 5px;
        padding: 12px 20px;
        font-size: 14px;
        min-width: 140px;
        display: block;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title {
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .service-card, .demo-card, .pricing-card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .service-card i {
        font-size: 2.5rem;
    }

    .demo-card-img {
        height: 150px;
    }

    .demo-card-img i {
        font-size: 3rem;
    }

    .pricing-card-header h3 {
        font-size: 1.4rem;
    }

    .price {
        font-size: 2rem;
    }

    .pricing-features li {
        font-size: 13px;
        padding: 6px 0;
    }

    .contact-info, .contact-form {
        padding: 20px;
        margin-bottom: 20px;
    }

    .contact-form .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }

    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-code {
        font-size: 18px;
        letter-spacing: 4px;
        margin-bottom: 10px;
        width: 100%;
    }

    /* WhatsApp float stack — tablet ≤991px
       Chatbot:  bottom:28px  h:68px → top:96px (+ring 110px)
       WA:       bottom:124px h:46px → top:170px  gap:14px ✓
       Share:    bottom:162px h:42px → top:204px  gap:20px ✓
       right:14px en todos */
    .whatsapp-float {
        width: 46px;
        height: 46px;
        font-size: 20px;
        bottom: 124px !important;
        right: 14px;
    }

    footer h3 {
        font-size: 1.4rem;
    }

    footer h5 {
        font-size: 1rem;
    }

    .social-links a {
        margin-right: 8px;
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 1.1rem;
    }
}

/* Móviles pequeños (hasta 575px) */
@media (max-width: 575.98px) {
    .section-title h2 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero .btn {
        width: 90%;
        padding: 10px 15px;
        font-size: 13px;
        min-width: auto;
    }

    .service-card, .demo-card, .pricing-card {
        padding: 15px 10px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .demo-card-content {
        padding: 15px;
    }

    .demo-card-content h3 {
        font-size: 1.1rem;
    }

    .pricing-card-header h3 {
        font-size: 1.2rem;
    }

    .price {
        font-size: 1.8rem;
    }

    .contact-info, .contact-form {
        padding: 15px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: auto;
    }

    .whatsapp-float {
        width: 42px;
        height: 42px;
        font-size: 18px;
        bottom: 120px !important;  /* chatbot: 16px + 60px + 8px anim = 84px → gap 36px */
        right: 12px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

/* Móviles muy pequeños (hasta 360px) */
@media (max-width: 359.98px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }

    .service-card, .demo-card, .pricing-card {
        padding: 12px 8px;
    }

    .price {
        font-size: 1.5rem;
    }

    .captcha-code {
        font-size: 16px;
        letter-spacing: 2px;
        padding: 8px 10px;
    }
}

/* ====================================
   ORIENTACIÓN LANDSCAPE EN MÓVILES
   ==================================== */
@media screen and (max-width: 767.98px) and (orientation: landscape) {
    .hero {
        padding: 40px 0 30px;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .navbar {
        padding: 8px 0;
    }
}

/* ====================================
   MEJORAS DE ACCESIBILIDAD
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero {
        background-attachment: scroll;
    }
}

/* ====================================
   PRINT STYLES
   ==================================== */
@media print {
    .navbar, .whatsapp-float, .demo-credentials, .btn {
        display: none !important;
    }

    .hero {
        background: var(--primary-color) !important;
        color: white !important;
        padding: 20px 0 !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* ---------------------------------------------------
   PCEFACT TECH ENHANCEMENTS � Botones y efectos globales
   --------------------------------------------------- */

/* -- .btn-primary mejorado -- */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0056b3, #0077cc) !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    letter-spacing: .4px;
    box-shadow: 0 5px 18px rgba(0,86,179,.32);
    transition: all .3s cubic-bezier(.4,0,.2,1) !important;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transition: left .5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    background: linear-gradient(135deg, #004494, #0056b3) !important;
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 10px 30px rgba(0,86,179,.42) !important;
    color: #fff !important;
}

/* -- .btn-outline-primary mejorado -- */
.btn-outline-primary {
    border-radius: 50px !important;
    border: 2px solid var(--primary-color) !important;
    font-weight: 700 !important;
    transition: all .3s ease !important;
}
.btn-outline-primary:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 8px 24px rgba(0,86,179,.3) !important;
}

/* -- .btn-success mejorado -- */
.btn-success {
    border-radius: 50px !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 18px rgba(40,167,69,.3) !important;
    transition: all .3s ease !important;
}
.btn-success:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 10px 28px rgba(40,167,69,.42) !important;
}

/* -- Section title underline animated -- */
.section-title h2::after {
    background: linear-gradient(90deg, var(--primary-color), #007bff, var(--primary-color)) !important;
    background-size: 200% 100% !important;
    animation: underlineShift 3s ease infinite;
}
@keyframes underlineShift {
    0%  { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100%{ background-position: 0% 50%; }
}

/* -- Section badge tech pill -- */
.section-badge {
    font-family: 'Courier New', monospace !important;
    letter-spacing: 2px !important;
    padding: 6px 18px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(0,86,179,.25) !important;
    background: rgba(0,86,179,.07) !important;
    font-size: .7rem !important;
}

/* -- Cards hover neon border -- */
.demo-card-enhanced:hover,
.proyecto-card-enhanced:hover,
.curso-card-enhanced:hover,
.tech-card:hover {
    border-color: rgba(0,86,179,.4) !important;
    box-shadow: 0 0 0 1px rgba(0,86,179,.2), 0 12px 36px rgba(0,86,179,.14) !important;
}

/* ═══════════════════════════════════════════════════════════════
   ICONOS 3D — profundidad, brillo superior y sombra proyectada
   Aplica a todos los iconos FontAwesome del sitio
   ═══════════════════════════════════════════════════════════════ */
.fas, .fab, .far, .fal, .fa-solid, .fa-brands, .fa-regular {
    filter:
        drop-shadow(0 -0.75px 0.5px rgba(255, 255, 255, 0.5))
        drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, 0.35))
        drop-shadow(0 3px 5px rgba(0, 0, 0, 0.15));
}

/* Ilustraciones 3D (Fluent 3D) — dimensionadas por el font-size del contenedor */
img.ic3d {
    width: 1.15em;
    height: 1.15em;
    object-fit: contain;
    vertical-align: -0.18em;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

/* Icono 3D que llena su contenedor (para reemplazar iconos grandes/decorativos
   dentro de círculos o cajas ya existentes: icon-wrap, icon-circle, feature-icon, etc.) */
img.ic3d.ic3d-fill {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}
