/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f8f9fa;
    font-family: 'Segoe UI', 'Noto Sans Georgian', sans-serif;
}

/* Estilos del formulario principal */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tarjetas */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Títulos */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    color: #1c70b7;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #62bb51, #1c70b7);
    border-radius: 2px;
}

.cotiza-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin: 40px 0;
    background: linear-gradient(135deg, #1c70b7, #62bb51);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.datos-title {
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 30px;
    color: #1c70b7;
}

/* Grid layouts */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #62bb51;
}

.form-group label i {
    color: #62bb51;
    margin-right: 5px;
}

/* Inputs y selects */
input[type='text'],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

input[type='text']:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #62bb51;
    box-shadow: 0 0 0 3px rgba(98, 187, 81, 0.1);
}

input[type='text']:hover,
select:hover,
textarea:hover {
    border-color: #1c70b7;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input[type='checkbox'] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #62bb51;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #62bb51;
}

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, #62bb51, #4a9e39);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(98, 187, 81, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(98, 187, 81, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #e22e2e, #c41e1e);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226, 46, 46, 0.3);
}

.btn-add {
    background: linear-gradient(135deg, #1c70b7, #0f5a9e);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(28, 112, 183, 0.3);
}

.btn-submit {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 18px;
    margin: 30px auto 0;
    display: block;
}

/* Items dinámicos */
.dynamic-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #62bb51;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dynamic-item .btn-secondary {
    margin-top: 15px;
}

/* Separador */
.separator {
    height: 4px;
    background: linear-gradient(90deg, #62bb51, #1c70b7);
    margin: 40px 0;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 0 15px;
    }

    .card {
        padding: 20px;
    }

    .cotiza-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-submit {
        width: 100%;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease;
}

/* Estilos para el footer */
.footer-spacing {
    margin-top: 60px;
}
