/* Landing Pages Styles for BIMEG */

/* Hero Landing Section */
.hero-landing {
    background: linear-gradient(135deg, #1c3757 0%, #2d5aa0 50%, #1c3757 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Añadir espacio para evitar que el contenido se oculte debajo del navbar */
}

.hero-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(65, 195, 147, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(65, 195, 147, 0.1) 0%, transparent 50%);
    z-index: 1;
}

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

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

/* Equipment Showcase */
.equipment-showcase {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-icon {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(65, 195, 147, 0.3);
}

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 10%;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 20%;
    left: 10%;
    animation-delay: 1s;
}

.card-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

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

@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    .orbit-item {
        animation: none;
        position: relative;
        margin: 10px auto;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
    }
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.feature-item i {
    font-size: 1.2rem;
}

/* Stats Section */
.stats-landing .stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    background: rgba(65, 195, 147, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.stat-icon i {
    font-size: 1.5rem;
}

/* Product Cards Landing */
.product-card-landing {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1c3757, #41c393);
}

.product-card-landing:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-card-landing .product-icon {
    background: rgba(65, 195, 147, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.product-card-landing .product-icon i {
    font-size: 2rem;
}

.product-card-landing h5 {
    color: #1c3757;
    margin-bottom: 20px;
    font-weight: 700;
}

.product-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 20px;
}

.product-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
    color: #666;
}

.product-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #41c393;
    font-weight: bold;
}

.product-list li:last-child {
    border-bottom: none;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Benefits Section */
.benefits-section {
    position: relative;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(65, 195, 147, 0.05);
    border-radius: 10px;
    border-left: 4px solid #41c393;
}

.benefit-icon {
    background: rgba(65, 195, 147, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.5rem;
}

.benefit-content h5 {
    color: #1c3757;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Benefits Visual */
.benefits-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.circle-diagram {
    position: relative;
    width: 300px;
    height: 300px;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1c3757, #41c393);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.center-circle span {
    font-size: 0.8rem;
    margin-top: 5px;
}

.orbit-item {
    position: absolute;
    background: white;
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1c3757;
    animation: orbit 8s linear infinite;
}

.orbit-item i {
    font-size: 1.2rem;
}

.orbit-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.orbit-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.orbit-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

.orbit-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 6s;
}

@keyframes orbit {
    0% { opacity: 1; transform: scale(1) translateX(-50%); }
    25% { opacity: 0.7; transform: scale(0.9) translateX(-50%); }
    50% { opacity: 1; transform: scale(1) translateX(-50%); }
    75% { opacity: 0.7; transform: scale(0.9) translateX(-50%); }
    100% { opacity: 1; transform: scale(1) translateX(-50%); }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1c3757 0%, #2d5aa0 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 70% 30%, rgba(65, 195, 147, 0.1) 0%, transparent 50%);
}

.btn-cta {
    background: #41c393;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(65, 195, 147, 0.3);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #36a082;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(65, 195, 147, 0.4);
}

.urgency-items {
    margin-top: 20px;
}

.urgency-items .d-flex {
    font-size: 1.1rem;
}

/* Service Cards Styling */
.service-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-header {
    position: relative;
    overflow: hidden;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

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

.service-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 28px;
    color: #555;
}

.service-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #41c393;
    font-weight: bold;
    font-size: 1.2rem;
}

.benefit-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(65, 195, 147, 0.1);
    padding: 10px 15px;
    border-radius: 50px;
    color: #1c3757;
    font-weight: 500;
}

.benefit-chip i {
    color: #41c393;
    font-size: 1.2rem;
}

.emergency-service-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 5px;
}

.emergency-icon {
    font-size: 2rem;
    margin-right: 15px;
}

/* Testimonial Styling */
.testimonial-card {
    position: relative;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(65, 195, 147, 0.1);
    color: #41c393;
}

.testimonial-text {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Refacciones Showcase */
.refacciones-showcase {
    position: relative;
}

.feature-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.refaccion-item {
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.refaccion-item:hover {
    background: rgba(65, 195, 147, 0.05);
    transform: translateY(-3px);
}

.refaccion-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    background: #f8f9fa;
    border-radius: 50%;
    font-size: 1.8rem;
}

.compatibility-badges .badge {
    font-weight: 500;
    padding: 8px 15px;
}

/* Contact Form Enhancements */
.contact-form .form-control, 
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus, 
.contact-form .form-select:focus {
    border-color: #41c393;
    box-shadow: 0 0 0 0.2rem rgba(65, 195, 147, 0.25);
}

.contact-form .form-label {
    font-weight: 600;
    color: #1c3757;
}

/* CAPTCHA y Seguridad */
.security-validation-minimal {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.security-header-minimal {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.security-icon-minimal {
    font-size: 1.2rem;
    color: #41c393;
    margin-right: 8px;
}

.security-title-minimal {
    font-weight: 600;
    color: #1c3757;
}

.security-badge-minimal {
    margin-left: auto;
    font-size: 0.8rem;
}

.math-captcha-minimal {
    margin-top: 10px;
}

.math-captcha-minimal .form-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.math-question-minimal {
    font-weight: 600;
    margin: 0 8px;
}

.math-input-minimal {
    width: 80px !important;
    display: inline-block;
    margin: 0 8px;
    text-align: center;
}

.math-refresh-btn {
    padding: 4px 8px;
    margin-left: 5px;
}

.security-help-minimal {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
}

/* Utility Classes for Responsive Typography */
.text-responsive-lg {
    font-size: calc(1.2rem + 0.6vw);
}

.text-responsive-md {
    font-size: calc(1rem + 0.4vw);
}

.text-responsive-sm {
    font-size: calc(0.85rem + 0.2vw);
}

.btn-responsive {
    padding: calc(0.5rem + 0.3vw) calc(1rem + 0.5vw);
    font-size: calc(0.9rem + 0.2vw);
}

/* Responsive Adjustments */

/* Large desktops (≥1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .equipment-showcase {
        height: 450px;
    }
    
    .equipment-icon {
        width: 220px;
        height: 220px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-landing .min-vh-100 {
        min-height: auto !important;
        padding: 120px 0 60px;
    }
    
    .equipment-showcase {
        height: 350px;
        margin: 20px 0;
    }
    
    .circle-diagram {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    
    .benefit-item {
        padding: 15px;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
    }
    
    h2.fw-bold {
        font-size: 1.8rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        width: 30px;
        height: 30px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .navbar-nav .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-landing .min-vh-100 {
        padding: 100px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
    
    .hero-features {
        justify-content: center;
        margin: 0 auto;
    }
    
    .floating-card {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    .equipment-icon {
        width: 150px;
        height: 150px;
    }
    
    .benefits-visual {
        height: 300px;
    }
    
    .circle-diagram {
        width: 250px;
        height: 250px;
    }
    
    .center-circle {
        width: 100px;
        height: 100px;
    }
    
    .center-circle span {
        font-size: 0.7rem;
    }
    
    .center-circle i {
        font-size: 2rem;
    }
    
    .orbit-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* Ajuste de columnas para stats en tablet */
    .stats-landing .col-md-3 {
        margin-bottom: 20px;
    }
    
    /* Reducción de espacios */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
    
    /* Ajustes formulario */
    .card-body.p-5 {
        padding: 2rem !important;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
    /* Navbar responsive */
    .navbar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .navbar-nav .nav-link,
    .navbar-nav .btn-sm {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .hero-landing {
        padding: 80px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .badge {
        font-size: 0.7rem;
    }
    
    .hero-content .d-flex {
        justify-content: center;
    }
    
    /* Ajustes a las cards flotantes */
    .card-1, .card-3 {
        left: 2%;
    }
    
    .card-2, .card-4 {
        right: 2%;
    }
    
    /* Ajustes para products */
    .product-card-landing {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .product-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .product-icon i {
        font-size: 1.5rem;
    }
    
    /* Beneficios */
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 10px;
    }
    
    .benefit-item .benefit-icon {
        margin: 0 auto;
    }
    
    .benefit-content h5 {
        font-size: 1.1rem;
    }
    
    .benefits-visual {
        height: 250px;
    }
    
    .circle-diagram {
        width: 220px;
        height: 220px;
    }
    
    .center-circle {
        width: 80px;
        height: 80px;
    }
    
    /* CTA section */
    .btn-cta {
        width: 100%;
        margin-bottom: 20px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .urgency-items .d-flex {
        font-size: 0.9rem;
    }
    
    /* Form adjustments */
    #cotizacionForm .form-control, 
    #cotizacionForm .form-select {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .logo-footer {
        width: 40px;
        height: 40px;
    }
}

/* Very small devices (small phones, less than 400px) */
@media (max-width: 400px) {
    .floating-cards {
        display: none; /* Ocultar en pantallas muy pequeñas para evitar problemas de diseño */
    }
    
    .orbit-item {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .orbit-item i {
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .equipment-icon {
        width: 120px;
        height: 120px;
    }
    
    .equipment-icon i {
        font-size: 3rem !important;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    /* Reducción adicional de espacios */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}
