/* Estilos del formulario de descarga */
.dm-download-form-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.dm-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.dm-form-header h3 {
    font-size: 28px;
    margin: 0 0 10px;
    color: #fff;
    font-weight: 700;
}

.dm-form-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 10px 0;
}

.dm-file-description {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.dm-download-form {
    margin-top: 20px;
}

.dm-form-group {
    margin-bottom: 20px;
}

.dm-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dm-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.dm-input:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.dm-submit-button {
    width: 100%;
    padding: 15px 30px;
    background: #fff;
    color: #764ba2;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dm-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.dm-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.dm-loading {
    display: inline-block;
    vertical-align: middle;
}

.dm-spinner {
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

.dm-spinner .path {
    stroke: #764ba2;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.dm-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

.dm-form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #fff;
}

.dm-form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #fff;
}

/* Compartir en redes sociales */
.dm-social-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

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

.dm-social-share p {
    margin-bottom: 15px;
    font-weight: 500;
}

.dm-social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.dm-social-buttons a {
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.dm-social-buttons a:hover {
    background: #fff;
    transform: translateY(-3px);
}

.dm-social-buttons a svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.dm-social-buttons a:hover svg {
    fill: #764ba2;
}

.dm-share-facebook:hover {
    background: #1877f2;
}

.dm-share-twitter:hover {
    background: #1da1f2;
}

.dm-share-linkedin:hover {
    background: #0077b5;
}

.dm-share-whatsapp:hover {
    background: #25d366;
}

.dm-share-facebook:hover svg,
.dm-share-twitter:hover svg,
.dm-share-linkedin:hover svg,
.dm-share-whatsapp:hover svg {
    fill: #fff;
}

/* Contador de descargas */
.dm-download-counter {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.dm-download-counter small {
    opacity: 0.9;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .dm-download-form-container {
        margin: 20px;
        padding: 20px;
    }
    
    .dm-form-header h3 {
        font-size: 24px;
    }
    
    .dm-form-header p {
        font-size: 14px;
    }
    
    .dm-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .dm-submit-button {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .dm-social-buttons {
        flex-wrap: wrap;
    }
}

/* Tema alternativo - Minimalista */
.dm-download-form-container.minimal {
    background: #fff;
    color: #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dm-download-form-container.minimal .dm-form-header h3 {
    color: #333;
}

.dm-download-form-container.minimal .dm-input {
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #333;
}

.dm-download-form-container.minimal .dm-input::placeholder {
    color: #999;
}

.dm-download-form-container.minimal .dm-submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* Tema alternativo - Dark */
.dm-download-form-container.dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #444;
}

.dm-download-form-container.dark .dm-input {
    border-color: #555;
    background: rgba(0, 0, 0, 0.3);
}

.dm-download-form-container.dark .dm-submit-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}
