/* 
 * PCEFACT PERU - Hoja de estilos principal RESPONSIVA
 * Facturación Electrónica
 */

 :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
   ==================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-size: 16px;
}

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; /* Aumentado para acomodar logo más grande */
    transition: var(--transition);
    box-shadow: -10 10px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 30px 0; /* Aumentado para logo más grande */
    box-shadow: -10 15px 35px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
    padding: 8px 0; /* Aumentado para mejor alineación */
}

.navbar-brand img {
    max-height: 180px; /* 4x más grande (45px * 4) */
    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 RESPONSIVO
   ==================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    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);
    }
}

/* ====================================
   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 {
        max-height: 160px; /* Reducido proporcionalmente */
    }
    
    .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 {
        max-height: 30px;
    }
    
    .hero {
        padding: 60px 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 {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }
    
    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: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
    
    .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;
    }
}