/* ===== MODAL DE GUÍA DE TALLAS ===== */
.size-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.size-guide-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.size-guide-header {
    background: linear-gradient(135deg, #F9EBEE 0%, #E8C4CC 100%);
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.size-guide-header h2 {
    font-size: 1.8rem;
    color: #4a4d57;
    margin: 0;
    text-align: center;
    font-weight: 700;
}

.size-guide-header p {
    text-align: center;
    color: #8b8d94;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.size-guide-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4a4d57;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.size-guide-close:hover {
    background: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.size-guide-body {
    padding: 2rem;
}

/* Sección de calculadora */
.size-calculator {
    background: linear-gradient(135deg, #fefcf8 0%, #F8E8E8 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #E8C4C4;
}

.size-calculator h3 {
    color: #D4A4B0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.size-calculator h3 i {
    font-size: 1.5rem;
}

.measurement-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.input-group label {
    color: #4a4d57;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group label i {
    color: #D4A4B0;
}

.input-group small {
    color: #8b8d94;
    font-size: 0.85rem;
    margin-top: -0.3rem;
}

.measurement-input {
    padding: 0.75rem 1rem;
    border: 2px solid #E8C4C4;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.measurement-input:focus {
    outline: none;
    border-color: #D4A4B0;
    box-shadow: 0 0 0 3px rgba(232, 196, 204, 0.15);
}

.calculate-btn {
    background: linear-gradient(135deg, #E8C4CC 0%, #D4A4B0 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 196, 204, 0.35);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 196, 204, 0.4);
}

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

/* Resultado */
.size-result {
    background: linear-gradient(135deg, #C8D4C0 0%, #B8C5B0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    display: none;
}

.size-result.show {
    display: block;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.size-result h4 {
    color: #4a4d57;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.size-result-value {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.size-result p {
    color: #4a4d57;
    margin-bottom: 1rem;
}

.apply-size-btn {
    background: white;
    color: #4a4d57;
    border: 2px solid white;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-size-btn:hover {
    background: #4a4d57;
    color: white;
    transform: scale(1.05);
}

/* Tabla de medidas */
.size-chart-section {
    margin-top: 2rem;
}

.size-chart-section h3 {
    color: #4a4d57;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.size-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.size-table thead {
    background: linear-gradient(135deg, #E8C4CC 0%, #D4A4B0 100%);
}

.size-table th {
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.size-table td {
    padding: 0.8rem;
    text-align: center;
    border-bottom: 1px solid #f1f3f4;
    color: #4a4d57;
}

.size-table tbody tr:hover {
    background: #F8E8E8;
    transition: background 0.3s ease;
}

.size-table tbody tr:last-child td {
    border-bottom: none;
}

/* Instrucciones de medición */
.measurement-instructions {
    margin-top: 2rem;
    background: #fefcf8;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #D4A4B0;
}

.measurement-instructions h3 {
    color: #D4A4B0;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
}

.instruction-number {
    background: linear-gradient(135deg, #E8C4CC 0%, #D4A4B0 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.instruction-text {
    flex: 1;
}

.instruction-text strong {
    color: #4a4d57;
    display: block;
    margin-bottom: 0.3rem;
}

.instruction-text p {
    color: #8b8d94;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .size-guide-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .size-guide-header h2 {
        font-size: 1.4rem;
    }
    
    .measurement-inputs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .size-result-value {
        font-size: 2.5rem;
    }
    
    .size-table {
        font-size: 0.85rem;
    }
    
    .size-table th,
    .size-table td {
        padding: 0.6rem 0.4rem;
    }
}

/* Efecto de carga */
.calculating {
    position: relative;
    pointer-events: none;
}

.calculating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

