/* Custom CSS for JR Systemas Landing Page */

:root {
    --primary-color: #29ABE2;
    --primary-dark: #1e8bb8;
    --primary-light: #4fc3f7;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --sae-color:#EC0928;
    --aspel-color:#3F5364;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #29ABE2 0%, #1e8bb8 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-light: 0 2px 10px rgba(41, 171, 226, 0.1);
    --shadow-medium: 0 5px 25px rgba(41, 171, 226, 0.15);
    --shadow-heavy: 0 10px 40px rgba(41, 171, 226, 0.2);
}

/* Estilos del popup overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Custom Bootstrap overrides */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn-primary-card {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .5rem;
    --bs-btn-font-size: .75rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--gradient-primary);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-sae {
    color: var(--sae-color) !important;
}

.text-aspel {
    color: var(--aspel-color) !important;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%2329ABE2" stop-opacity="0.1"/><stop offset="100%" stop-color="%2329ABE2" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="200" fill="url(%23a)"/><circle cx="400" cy="700" r="180" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 115px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 40px;
}

.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: var(--bg-white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.floating-card:nth-child(4) {
    bottom: 50%;
    left: 45%;
    animation-delay: 1s;
}

.floating-card:nth-child(5) {
    top: 18%;
    right: 2%;
    animation-delay: 0s;
}

.floating-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.floating-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.floating-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.floating-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

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

/* Section Titles */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 50px;
}

/* Benefits Section */
.benefits-section {
    background: var(--bg-white);
    padding: 100px 0;
}

.benefit-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Services Section */
.services-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.service-image {
    height: 100px;
    display: flex;
    justify-content: center;
}
.service-image i {
    font-size: 5rem;
    color: #29ABE2;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.service-card i {

    width: 100%;
    height: 180px;
    object-fit: cover;
}

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

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

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.service-list li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Products Section */
.products-section {
    background: var(--bg-white);
    padding: 100px 0;
}

.product-category-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.product-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.product-image-contpaq {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-card:hover .product-image-contpaq {
    transform: scale(1.1);
}

.product-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* News Section */
.news-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #29ABE2;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.news-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image i {
    font-size: 3rem;
    color: white;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Trust Section */
.trust-section {
    background: var(--bg-white);
    padding: 80px 0;
}

.trust-logo {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.trust-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.certification-badge {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 30px;
}

.certification-badge i {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.cta-benefit {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cta-benefit:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.cta-benefit i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-benefit h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-top: 40px;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.form-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-floating > .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px 15px;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(41, 171, 226, 0.25);
}

.form-floating > label {
    color: var(--text-dark);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
}

.footer-info p,
.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-link {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}


/* Estilos del popup */
.popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenido del popup */
.popup-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    position: relative;
}

/* Header del popup */
.popup-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 500;
}

.close-btn {
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #e74c3c;
    background: #f8f9fa;
}

/* Body del popup */
.popup-body {
    padding: 30px;
    text-align: center;
}

.popup-body p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.popup-body ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

.popup-body li {
    margin-bottom: 8px;
    color: #666;
}

/* Footer del popup */
.popup-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

/* Variaciones de popup por tipo */
.popup-info .popup-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.popup-info .popup-header h3 {
    color: white;
}

/* Animaciones del popup*/
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .floating-card {
        position: static;
        margin: 20px auto;
        display: block;
        max-width: 250px;
    }
    
    .hero-image {
        height: auto;
        flex-direction: column;
        margin-top: 50px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    /* Estilos del popup */
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .popup-content {
        width: 95%;
        margin: 10px;
    }
    
    .popup-footer {
        flex-direction: column;
    }
    
    .popup-footer .btn {
        width: 100%;
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }    
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .benefit-card,
    .service-card {
        padding: 25px 20px;
    }
    
    .cta-title {
        font-size: 2rem;
    }

@media (max-width: 480px) {
    .popup-body {
        padding: 20px;
    }
    
    .popup-header {
        padding: 15px;
    }
    
    .popup-footer {
        padding: 15px;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
}
    
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
