.ctct-auth-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ctct-auth-form .form-group {
    margin-bottom: 15px;
}

.ctct-auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.ctct-auth-form input[type="text"],
.ctct-auth-form input[type="email"],
.ctct-auth-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.ctct-auth-form .form-row {
    display: flex;
    gap: 10px;
}

.ctct-auth-form .form-row .form-group {
    flex: 1;
}

.ctct-auth-form .checkbox-group {
    display: flex;
    align-items: center;
}

.ctct-auth-form .checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
}

.ctct-auth-form .checkbox-group input {
    margin-right: 8px;
}

.ctct-submit-btn {
    width: 100%;
    padding: 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.ctct-submit-btn:hover {
    background: #005a87;
}

.ctct-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ctct-messages {
    margin-top: 15px;
}

.ctct-success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.ctct-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.ctct-links {
    text-align: center;
    margin-top: 15px;
}

.ctct-links a {
    color: #007cba;
    text-decoration: none;
}

.ctct-links a:hover {
    text-decoration: underline;
}

/* Estilos para la sección de descargas */
.ctct-download-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.ctct-download-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.ctct-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ctct-download-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.ctct-download-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ctct-file-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.ctct-file-info {
    flex-grow: 1;
}

.ctct-file-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.ctct-file-size {
    color: #6c757d;
    font-size: 0.9em;
}

.ctct-download-action {
    flex-shrink: 0;
}

.ctct-download-btn {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.ctct-download-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

/* Estilos para el mensaje de login */
.ctct-login-prompt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
}

.ctct-login-message h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.ctct-login-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.ctct-btn {
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ctct-btn-primary {
    background: white;
    color: #667eea;
}

.ctct-btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.ctct-btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.ctct-btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* ==================== OPCIONES DE ACCESO (TABS) ==================== */

.ctct-access-options {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.ctct-access-message {
    text-align: center;
    margin-bottom: 25px;
}

.ctct-access-message h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.ctct-access-message p {
    color: #6c757d;
}

/* Tabs de acceso */
.ctct-access-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.ctct-access-tab {
    padding: 12px 20px;
    background: #e9ecef;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
}

.ctct-access-tab:hover {
    background: #dee2e6;
}

.ctct-access-tab.active {
    background: #007cba;
    color: white;
}

/* Contenido de tabs */
.ctct-access-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ctct-access-content.active {
    display: block;
}

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

/* Formulario de verificación de suscriptor */
.ctct-subscriber-verify {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.ctct-subscriber-verify p {
    margin-bottom: 20px;
    color: #495057;
}

.ctct-verify-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ctct-verify-form .form-group {
    margin-bottom: 15px;
}

.ctct-verify-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.ctct-verify-form input[type="email"]:focus {
    outline: none;
    border-color: #007cba;
}

.ctct-verify-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.ctct-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ctct-verify-btn:disabled {
    background: #ccc;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Logout de suscriptor */
.ctct-logout-subscriber {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9em;
}

.ctct-logout-subscriber:hover {
    color: #dc3545;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .ctct-download-grid {
        grid-template-columns: 1fr;
    }

    .ctct-download-item {
        flex-direction: column;
        text-align: center;
    }

    .ctct-login-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ctct-btn {
        width: 200px;
    }

    .ctct-access-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .ctct-access-tab {
        text-align: center;
    }

    .ctct-access-options {
        padding: 20px 15px;
    }
}