/* Custom CSS for CambioExpress - Versión Mejorada */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #28a745;
    --accent-color: #ffc107;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --primary-dark: #1d4ed8;
    --background-color: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
	--border-radius: 12px;
    --transition: all 0.3s ease;
}
/* Reset y configuración base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation mejorada */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(44, 90, 160, 0.1);
}

/* Hero Section completamente rediseñada */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-bg-1 {
    background-image: linear-gradient(135deg, rgba(75, 164, 242, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%), 
                      url('../img/img1.jpg');
}

.hero-bg-2 {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(75, 164, 242, 0.6) 100%), 
                      url('../img/img2.jpg');
}

.hero-bg-3 {
    background-image: linear-gradient(135deg, rgba(75, 164, 242, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%), 
                      url('../img/img4.jpg');
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .lead {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 180px;
    text-align: center;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Controles del carousel mejorados */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 8px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Calculator Section */
.calculator-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.calculator-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.currency-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.currency-select,
.amount-input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.currency-select:focus,
.amount-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.amount-input {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: right;
}

.swap-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-button:hover {
    background: var(--primary-dark);
    transform: rotate(180deg);
}

.exchange-rate-info {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.rate-display {
    margin-bottom: 0.5rem;
}

.rate-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rate-value {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.8rem;
}

.calculate-button {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-color), #047857);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.calculate-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Secciones principales */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Cards rediseñadas */
.service-card {
    transition: all 0.3s ease;
    border-radius: 20px !important;
    border: none !important;
    box-shadow: var(--shadow);
    height: 100%;
    overflow: hidden;
}

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

.service-card .card-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.service-icon {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

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

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card .card-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-card ul {
    text-align: left;
    margin-bottom: 2rem;
}

.service-card ul li {
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

/* About Section mejorada */
.about-stats {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.about-stats .row > div {
    padding: 1rem;
}

.about-stats h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* FAQ Section mejorada */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: none !important;
    margin-bottom: 1rem;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    background-color: var(--white) !important;
    border: none !important;
    padding: 1.5rem 2rem;
    color: var(--dark-color) !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Section mejorada */
.contact-form {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 3rem;
}

.contact-info .card {
    transition: all 0.3s ease;
    border-radius: 15px !important;
    border: none !important;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

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

.contact-info .card-body {
    padding: 2rem;
}

.contact-info h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Footer mejorado */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2c2c2c 100%) !important;
    padding: 3rem 0 1rem;
}

footer h5,
footer h6 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer p,
footer li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Botones mejorados */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a6f 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a6f 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1e7e34 100%);
    color: var(--white);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e0a800 100%);
    color: var(--dark-color);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, var(--accent-color) 100%);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
    background: transparent;
}

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

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed !important;
    width: 60px !important;
    height: 60px !important;
    bottom: 30px !important;
    right: 30px !important;
    background-color: #25d366 !important;
    color: white !important;
    border-radius: 50px !important;
    text-align: center !important;
    font-size: 28px !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        min-width: 160px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
    }
    
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .carousel-item {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-bg {
        background-attachment: scroll;
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0.5rem 0;
    }
    
    .service-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .about-stats {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .about-stats h3 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .accordion-button,
    .accordion-body {
        padding: 1rem 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 24px !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-card h4 {
        font-size: 1.3rem;
    }
    
    .about-stats .row > div {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-info .card-body {
        padding: 1.5rem;
    }
    
    footer {
        padding: 2rem 0 1rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }
}

/* Animaciones y efectos */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a6f;
}

/* Utilidades adicionales */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

.bg-light {
    background-color: var(--light-color) !important;
}

/* Mejoras de accesibilidad */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Optimizaciones de rendimiento */
.hero-bg {
    will-change: transform;
}

.service-card,
.contact-info .card {
    will-change: transform;
}

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

    .swap-button {
      margin: 1rem 0;
    }
  }
