/* Calculadora de Envíos - InkaBox Express */

.calculator-section {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.calculator-header {
    text-align: center;
    margin-bottom: 50px;
}

.calculator-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.calculator-icon i {
    font-size: 32px;
    color: white;
}

.calculator-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.calculator-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Formulario en filas */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Formulario */
.calculator-form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.calculator-form-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-with-dropdown {
    display: flex;
    gap: 0;
}

.input-with-dropdown input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    flex: 1;
}

.input-with-dropdown select {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-left: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background: #f8f9fa;
    font-size: 1rem;
    min-width: 80px;
    cursor: pointer;
}

.input-with-dropdown input:focus + select,
.input-with-dropdown select:focus {
    border-color: #007bff;
}

.btn-calculate {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

.btn-calculate:active {
    transform: translateY(0);
}

.btn-calculate i {
    margin-right: 8px;
}

/* Resultados */
.calculator-results-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    height: fit-content;
}

.calculator-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.results-placeholder {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
    font-style: italic;
}

.results-placeholder i {
    font-size: 2rem;
    color: #dee2e6;
    display: block;
    margin-bottom: 15px;
}

/* Tabla de resultados */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table tr {
    border-bottom: 1px solid #e9ecef;
}

.results-table tr:last-child {
    border-bottom: 2px solid #007bff;
}

.results-table td {
    padding: 15px 0;
    font-size: 1rem;
}

.results-table td:first-child {
    color: #495057;
    font-weight: 500;
}

.results-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #2c3e50;
}

.results-table .total-row td {
    font-size: 1.2rem;
    font-weight: 700;
    color: #007bff;
    padding-top: 20px;
}

.tax-exempt {
    background: #d4edda;
    color: #155724;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 15px;
}

/* Sección de información */
.calculator-info {
    margin-top: 40px;
    padding: 0 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-icon i {
    font-size: 24px;
    color: white;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.info-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Dropdown en navbar */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: #f8f9fa;
    color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-section {
        padding: 100px 0 30px;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .calculator-form-container,
    .calculator-results-container {
        padding: 25px;
    }
    
    .calculator-header h1 {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
    
    .dropdown-menu a {
        padding: 8px 0;
        border-bottom: 1px solid #e9ecef;
    }
}

@media (max-width: 480px) {
    .calculator-section {
        padding: 90px 0 30px;
    }
    
    .calculator-form-container,
    .calculator-results-container {
        padding: 20px;
        border-radius: 15px;
    }
    
    .calculator-header h1 {
        font-size: 1.8rem;
    }
    
    .calculator-icon {
        width: 60px;
        height: 60px;
    }
    
    .calculator-icon i {
        font-size: 24px;
    }
    
    .calculator-info {
        margin-top: 30px;
    }
    
    .footer {
        margin-top: 30px;
    }
}

/* Footer Mejorado */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #ecf0f1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 2rem;
    color: #3498db;
}

.footer-logo h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecf0f1;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #3498db;
    transform: translateY(-3px);
}

.footer-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section h4 i {
    color: #3498db;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-section ul li a:hover {
    color: #3498db;
    padding-left: 10px;
}

.footer-section ul li a i {
    width: 16px;
    font-size: 0.9rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-item i {
    color: #3498db;
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 16px;
}

.info-item strong {
    color: #ecf0f1;
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.info-item p {
    color: #bdc3c7;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge i {
    font-size: 0.8rem;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-info {
        align-items: center;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge {
        width: fit-content;
    }
}